OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 namespace WebCore { | 108 namespace WebCore { |
109 const WrapperTypeInfo V8TestObjectPython::wrapperTypeInfo = { gin::kEmbedderBlin
k, V8TestObjectPython::domTemplate, V8TestObjectPython::derefObject, 0, 0, 0, V8
TestObjectPython::installPerContextEnabledMethods, 0, WrapperTypeObjectPrototype
, false }; | 109 const WrapperTypeInfo V8TestObjectPython::wrapperTypeInfo = { gin::kEmbedderBlin
k, V8TestObjectPython::domTemplate, V8TestObjectPython::derefObject, 0, 0, 0, V8
TestObjectPython::installPerContextEnabledMethods, 0, WrapperTypeObjectPrototype
, false }; |
110 | 110 |
111 namespace TestObjectPythonV8Internal { | 111 namespace TestObjectPythonV8Internal { |
112 | 112 |
113 template <typename T> void V8_USE(T) { } | 113 template <typename T> void V8_USE(T) { } |
114 | 114 |
115 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 115 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
116 { | 116 { |
117 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 117 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
118 v8SetReturnValueString(info, imp->readonlyStringAttribute(), info.GetIsolate
()); | 118 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); |
119 } | 119 } |
120 | 120 |
121 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 121 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
122 { | 122 { |
123 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 123 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
124 TestObjectPythonV8Internal::readonlyStringAttributeAttributeGetter(info); | 124 TestObjectPythonV8Internal::readonlyStringAttributeAttributeGetter(info); |
125 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 125 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
126 } | 126 } |
127 | 127 |
128 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) | 128 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) |
129 { | 129 { |
130 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 130 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
131 RefPtr<TestInterfaceEmpty> result(imp->readonlyTestInterfaceEmptyAttribute()
); | 131 RefPtr<TestInterfaceEmpty> result(impl->readonlyTestInterfaceEmptyAttribute(
)); |
132 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) | 132 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) |
133 return; | 133 return; |
134 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 134 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); |
135 if (!wrapper.IsEmpty()) { | 135 if (!wrapper.IsEmpty()) { |
136 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "readonlyTestInterfaceEmptyAttribute"), wrapper); | 136 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "readonlyTestInterfaceEmptyAttribute"), wrapper); |
137 v8SetReturnValue(info, wrapper); | 137 v8SetReturnValue(info, wrapper); |
138 } | 138 } |
139 } | 139 } |
140 | 140 |
141 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 141 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
142 { | 142 { |
143 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 143 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
144 TestObjectPythonV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGett
er(info); | 144 TestObjectPythonV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGett
er(info); |
145 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 145 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
146 } | 146 } |
147 | 147 |
148 static void readonlyLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 148 static void readonlyLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
149 { | 149 { |
150 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 150 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
151 v8SetReturnValueInt(info, imp->readonlyLongAttribute()); | 151 v8SetReturnValueInt(info, impl->readonlyLongAttribute()); |
152 } | 152 } |
153 | 153 |
154 static void readonlyLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 154 static void readonlyLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
155 { | 155 { |
156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
157 TestObjectPythonV8Internal::readonlyLongAttributeAttributeGetter(info); | 157 TestObjectPythonV8Internal::readonlyLongAttributeAttributeGetter(info); |
158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
159 } | 159 } |
160 | 160 |
161 static void dateAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 161 static void dateAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
162 { | 162 { |
163 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 163 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
164 v8SetReturnValue(info, v8DateOrNull(imp->dateAttribute(), info.GetIsolate())
); | 164 v8SetReturnValue(info, v8DateOrNull(impl->dateAttribute(), info.GetIsolate()
)); |
165 } | 165 } |
166 | 166 |
167 static void dateAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 167 static void dateAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
168 { | 168 { |
169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
170 TestObjectPythonV8Internal::dateAttributeAttributeGetter(info); | 170 TestObjectPythonV8Internal::dateAttributeAttributeGetter(info); |
171 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 171 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
172 } | 172 } |
173 | 173 |
174 static void dateAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) | 174 static void dateAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) |
175 { | 175 { |
176 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 176 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
177 V8TRYCATCH_VOID(double, cppValue, toCoreDate(jsValue)); | 177 V8TRYCATCH_VOID(double, cppValue, toCoreDate(jsValue)); |
178 imp->setDateAttribute(cppValue); | 178 impl->setDateAttribute(cppValue); |
179 } | 179 } |
180 | 180 |
181 static void dateAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 181 static void dateAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
182 { | 182 { |
183 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 183 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
184 TestObjectPythonV8Internal::dateAttributeAttributeSetter(jsValue, info); | 184 TestObjectPythonV8Internal::dateAttributeAttributeSetter(jsValue, info); |
185 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 185 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
186 } | 186 } |
187 | 187 |
188 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 188 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
189 { | 189 { |
190 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 190 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
191 v8SetReturnValueString(info, imp->stringAttribute(), info.GetIsolate()); | 191 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate()); |
192 } | 192 } |
193 | 193 |
194 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 194 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
195 { | 195 { |
196 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 196 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
197 TestObjectPythonV8Internal::stringAttributeAttributeGetter(info); | 197 TestObjectPythonV8Internal::stringAttributeAttributeGetter(info); |
198 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 198 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
199 } | 199 } |
200 | 200 |
201 static void stringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v
8::PropertyCallbackInfo<void>& info) | 201 static void stringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v
8::PropertyCallbackInfo<void>& info) |
202 { | 202 { |
203 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 203 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
204 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 204 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
205 imp->setStringAttribute(cppValue); | 205 impl->setStringAttribute(cppValue); |
206 } | 206 } |
207 | 207 |
208 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 208 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
209 { | 209 { |
210 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 210 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
211 TestObjectPythonV8Internal::stringAttributeAttributeSetter(jsValue, info); | 211 TestObjectPythonV8Internal::stringAttributeAttributeSetter(jsValue, info); |
212 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 212 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
213 } | 213 } |
214 | 214 |
215 static void readonlyDOMTimeStampAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 215 static void readonlyDOMTimeStampAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
216 { | 216 { |
217 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 217 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
218 v8SetReturnValue(info, static_cast<double>(imp->readonlyDOMTimeStampAttribut
e())); | 218 v8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampAttribu
te())); |
219 } | 219 } |
220 | 220 |
221 static void readonlyDOMTimeStampAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 221 static void readonlyDOMTimeStampAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
222 { | 222 { |
223 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 223 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
224 TestObjectPythonV8Internal::readonlyDOMTimeStampAttributeAttributeGetter(inf
o); | 224 TestObjectPythonV8Internal::readonlyDOMTimeStampAttributeAttributeGetter(inf
o); |
225 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 225 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
226 } | 226 } |
227 | 227 |
228 static void booleanAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 228 static void booleanAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) |
229 { | 229 { |
230 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 230 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
231 v8SetReturnValueBool(info, imp->booleanAttribute()); | 231 v8SetReturnValueBool(info, impl->booleanAttribute()); |
232 } | 232 } |
233 | 233 |
234 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 234 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
235 { | 235 { |
236 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 236 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
237 TestObjectPythonV8Internal::booleanAttributeAttributeGetter(info); | 237 TestObjectPythonV8Internal::booleanAttributeAttributeGetter(info); |
238 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 238 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
239 } | 239 } |
240 | 240 |
241 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 241 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
242 { | 242 { |
243 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 243 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
244 V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue()); | 244 V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue()); |
245 imp->setBooleanAttribute(cppValue); | 245 impl->setBooleanAttribute(cppValue); |
246 } | 246 } |
247 | 247 |
248 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 248 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
249 { | 249 { |
250 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 250 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
251 TestObjectPythonV8Internal::booleanAttributeAttributeSetter(jsValue, info); | 251 TestObjectPythonV8Internal::booleanAttributeAttributeSetter(jsValue, info); |
252 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 252 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
253 } | 253 } |
254 | 254 |
255 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 255 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
256 { | 256 { |
257 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 257 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
258 v8SetReturnValueInt(info, imp->byteAttribute()); | 258 v8SetReturnValueInt(info, impl->byteAttribute()); |
259 } | 259 } |
260 | 260 |
261 static void byteAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 261 static void byteAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
262 { | 262 { |
263 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 263 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
264 TestObjectPythonV8Internal::byteAttributeAttributeGetter(info); | 264 TestObjectPythonV8Internal::byteAttributeAttributeGetter(info); |
265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
266 } | 266 } |
267 | 267 |
268 static void byteAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) | 268 static void byteAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) |
269 { | 269 { |
270 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute"
, "TestObjectPython", info.Holder(), info.GetIsolate()); | 270 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute"
, "TestObjectPython", info.Holder(), info.GetIsolate()); |
271 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 271 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
272 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt8(jsValue, exceptionState), ex
ceptionState); | 272 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt8(jsValue, exceptionState), ex
ceptionState); |
273 imp->setByteAttribute(cppValue); | 273 impl->setByteAttribute(cppValue); |
274 } | 274 } |
275 | 275 |
276 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 276 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
277 { | 277 { |
278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
279 TestObjectPythonV8Internal::byteAttributeAttributeSetter(jsValue, info); | 279 TestObjectPythonV8Internal::byteAttributeAttributeSetter(jsValue, info); |
280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
281 } | 281 } |
282 | 282 |
283 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 283 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
284 { | 284 { |
285 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 285 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
286 v8SetReturnValue(info, imp->doubleAttribute()); | 286 v8SetReturnValue(info, impl->doubleAttribute()); |
287 } | 287 } |
288 | 288 |
289 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 289 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
290 { | 290 { |
291 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 291 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
292 TestObjectPythonV8Internal::doubleAttributeAttributeGetter(info); | 292 TestObjectPythonV8Internal::doubleAttributeAttributeGetter(info); |
293 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 293 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
294 } | 294 } |
295 | 295 |
296 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v
8::PropertyCallbackInfo<void>& info) | 296 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v
8::PropertyCallbackInfo<void>& info) |
297 { | 297 { |
298 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 298 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
299 V8TRYCATCH_VOID(double, cppValue, static_cast<double>(jsValue->NumberValue()
)); | 299 V8TRYCATCH_VOID(double, cppValue, static_cast<double>(jsValue->NumberValue()
)); |
300 imp->setDoubleAttribute(cppValue); | 300 impl->setDoubleAttribute(cppValue); |
301 } | 301 } |
302 | 302 |
303 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 303 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
304 { | 304 { |
305 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 305 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
306 TestObjectPythonV8Internal::doubleAttributeAttributeSetter(jsValue, info); | 306 TestObjectPythonV8Internal::doubleAttributeAttributeSetter(jsValue, info); |
307 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 307 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
308 } | 308 } |
309 | 309 |
310 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 310 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
311 { | 311 { |
312 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 312 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
313 v8SetReturnValue(info, imp->floatAttribute()); | 313 v8SetReturnValue(info, impl->floatAttribute()); |
314 } | 314 } |
315 | 315 |
316 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 316 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
317 { | 317 { |
318 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 318 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
319 TestObjectPythonV8Internal::floatAttributeAttributeGetter(info); | 319 TestObjectPythonV8Internal::floatAttributeAttributeGetter(info); |
320 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 320 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
321 } | 321 } |
322 | 322 |
323 static void floatAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) | 323 static void floatAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) |
324 { | 324 { |
325 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 325 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
326 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue()))
; | 326 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue()))
; |
327 imp->setFloatAttribute(cppValue); | 327 impl->setFloatAttribute(cppValue); |
328 } | 328 } |
329 | 329 |
330 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 330 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
331 { | 331 { |
332 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 332 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
333 TestObjectPythonV8Internal::floatAttributeAttributeSetter(jsValue, info); | 333 TestObjectPythonV8Internal::floatAttributeAttributeSetter(jsValue, info); |
334 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 334 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
335 } | 335 } |
336 | 336 |
337 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 337 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
338 { | 338 { |
339 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 339 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
340 v8SetReturnValueInt(info, imp->longAttribute()); | 340 v8SetReturnValueInt(info, impl->longAttribute()); |
341 } | 341 } |
342 | 342 |
343 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 343 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
344 { | 344 { |
345 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 345 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
346 TestObjectPythonV8Internal::longAttributeAttributeGetter(info); | 346 TestObjectPythonV8Internal::longAttributeAttributeGetter(info); |
347 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 347 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
348 } | 348 } |
349 | 349 |
350 static void longAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) | 350 static void longAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) |
351 { | 351 { |
352 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute"
, "TestObjectPython", info.Holder(), info.GetIsolate()); | 352 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute"
, "TestObjectPython", info.Holder(), info.GetIsolate()); |
353 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 353 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
354 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 354 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
355 imp->setLongAttribute(cppValue); | 355 impl->setLongAttribute(cppValue); |
356 } | 356 } |
357 | 357 |
358 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 358 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
359 { | 359 { |
360 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 360 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
361 TestObjectPythonV8Internal::longAttributeAttributeSetter(jsValue, info); | 361 TestObjectPythonV8Internal::longAttributeAttributeSetter(jsValue, info); |
362 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 362 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
363 } | 363 } |
364 | 364 |
365 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 365 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) |
366 { | 366 { |
367 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 367 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
368 v8SetReturnValue(info, static_cast<double>(imp->longLongAttribute())); | 368 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); |
369 } | 369 } |
370 | 370 |
371 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 371 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
372 { | 372 { |
373 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 373 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
374 TestObjectPythonV8Internal::longLongAttributeAttributeGetter(info); | 374 TestObjectPythonV8Internal::longLongAttributeAttributeGetter(info); |
375 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 375 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
376 } | 376 } |
377 | 377 |
378 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 378 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
379 { | 379 { |
380 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib
ute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 380 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib
ute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
381 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 381 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
382 V8TRYCATCH_EXCEPTION_VOID(long long, cppValue, toInt64(jsValue, exceptionSta
te), exceptionState); | 382 V8TRYCATCH_EXCEPTION_VOID(long long, cppValue, toInt64(jsValue, exceptionSta
te), exceptionState); |
383 imp->setLongLongAttribute(cppValue); | 383 impl->setLongLongAttribute(cppValue); |
384 } | 384 } |
385 | 385 |
386 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 386 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
387 { | 387 { |
388 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 388 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
389 TestObjectPythonV8Internal::longLongAttributeAttributeSetter(jsValue, info); | 389 TestObjectPythonV8Internal::longLongAttributeAttributeSetter(jsValue, info); |
390 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 390 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
391 } | 391 } |
392 | 392 |
393 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 393 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
394 { | 394 { |
395 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 395 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
396 v8SetReturnValueUnsigned(info, imp->octetAttribute()); | 396 v8SetReturnValueUnsigned(info, impl->octetAttribute()); |
397 } | 397 } |
398 | 398 |
399 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 399 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
400 { | 400 { |
401 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 401 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
402 TestObjectPythonV8Internal::octetAttributeAttributeGetter(info); | 402 TestObjectPythonV8Internal::octetAttributeAttributeGetter(info); |
403 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 403 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
404 } | 404 } |
405 | 405 |
406 static void octetAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) | 406 static void octetAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) |
407 { | 407 { |
408 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute
", "TestObjectPython", info.Holder(), info.GetIsolate()); | 408 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute
", "TestObjectPython", info.Holder(), info.GetIsolate()); |
409 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 409 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
410 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt8(jsValue, exceptionStat
e), exceptionState); | 410 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt8(jsValue, exceptionStat
e), exceptionState); |
411 imp->setOctetAttribute(cppValue); | 411 impl->setOctetAttribute(cppValue); |
412 } | 412 } |
413 | 413 |
414 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 414 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
415 { | 415 { |
416 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 416 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
417 TestObjectPythonV8Internal::octetAttributeAttributeSetter(jsValue, info); | 417 TestObjectPythonV8Internal::octetAttributeAttributeSetter(jsValue, info); |
418 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 418 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
419 } | 419 } |
420 | 420 |
421 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 421 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
422 { | 422 { |
423 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 423 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
424 v8SetReturnValueInt(info, imp->shortAttribute()); | 424 v8SetReturnValueInt(info, impl->shortAttribute()); |
425 } | 425 } |
426 | 426 |
427 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 427 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
428 { | 428 { |
429 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 429 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
430 TestObjectPythonV8Internal::shortAttributeAttributeGetter(info); | 430 TestObjectPythonV8Internal::shortAttributeAttributeGetter(info); |
431 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 431 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
432 } | 432 } |
433 | 433 |
434 static void shortAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) | 434 static void shortAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) |
435 { | 435 { |
436 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObjectPython", info.Holder(), info.GetIsolate()); | 436 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObjectPython", info.Holder(), info.GetIsolate()); |
437 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 437 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
438 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt16(jsValue, exceptionState), e
xceptionState); | 438 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt16(jsValue, exceptionState), e
xceptionState); |
439 imp->setShortAttribute(cppValue); | 439 impl->setShortAttribute(cppValue); |
440 } | 440 } |
441 | 441 |
442 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 442 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
443 { | 443 { |
444 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 444 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
445 TestObjectPythonV8Internal::shortAttributeAttributeSetter(jsValue, info); | 445 TestObjectPythonV8Internal::shortAttributeAttributeSetter(jsValue, info); |
446 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 446 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
447 } | 447 } |
448 | 448 |
449 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 449 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
450 { | 450 { |
451 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 451 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
452 v8SetReturnValueUnsigned(info, imp->unsignedLongAttribute()); | 452 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); |
453 } | 453 } |
454 | 454 |
455 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 455 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
456 { | 456 { |
457 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 457 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
458 TestObjectPythonV8Internal::unsignedLongAttributeAttributeGetter(info); | 458 TestObjectPythonV8Internal::unsignedLongAttributeAttributeGetter(info); |
459 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 459 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
460 } | 460 } |
461 | 461 |
462 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 462 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
463 { | 463 { |
464 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt
tribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 464 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt
tribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
465 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 465 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
466 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(jsValue, exceptionSta
te), exceptionState); | 466 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(jsValue, exceptionSta
te), exceptionState); |
467 imp->setUnsignedLongAttribute(cppValue); | 467 impl->setUnsignedLongAttribute(cppValue); |
468 } | 468 } |
469 | 469 |
470 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 470 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
471 { | 471 { |
472 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 472 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
473 TestObjectPythonV8Internal::unsignedLongAttributeAttributeSetter(jsValue, in
fo); | 473 TestObjectPythonV8Internal::unsignedLongAttributeAttributeSetter(jsValue, in
fo); |
474 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 474 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
475 } | 475 } |
476 | 476 |
477 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 477 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
478 { | 478 { |
479 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 479 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
480 v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongAttribute())
); | 480 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute()
)); |
481 } | 481 } |
482 | 482 |
483 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 483 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
484 { | 484 { |
485 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 485 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
486 TestObjectPythonV8Internal::unsignedLongLongAttributeAttributeGetter(info); | 486 TestObjectPythonV8Internal::unsignedLongLongAttributeAttributeGetter(info); |
487 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 487 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
488 } | 488 } |
489 | 489 |
490 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 490 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
491 { | 491 { |
492 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo
ngAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 492 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo
ngAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
493 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 493 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
494 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(jsValue, ex
ceptionState), exceptionState); | 494 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(jsValue, ex
ceptionState), exceptionState); |
495 imp->setUnsignedLongLongAttribute(cppValue); | 495 impl->setUnsignedLongLongAttribute(cppValue); |
496 } | 496 } |
497 | 497 |
498 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 498 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
499 { | 499 { |
500 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 500 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
501 TestObjectPythonV8Internal::unsignedLongLongAttributeAttributeSetter(jsValue
, info); | 501 TestObjectPythonV8Internal::unsignedLongLongAttributeAttributeSetter(jsValue
, info); |
502 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 502 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
503 } | 503 } |
504 | 504 |
505 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 505 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
506 { | 506 { |
507 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 507 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
508 v8SetReturnValueUnsigned(info, imp->unsignedShortAttribute()); | 508 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); |
509 } | 509 } |
510 | 510 |
511 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 511 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
512 { | 512 { |
513 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 513 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
514 TestObjectPythonV8Internal::unsignedShortAttributeAttributeGetter(info); | 514 TestObjectPythonV8Internal::unsignedShortAttributeAttributeGetter(info); |
515 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 515 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
516 } | 516 } |
517 | 517 |
518 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 518 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
519 { | 519 { |
520 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA
ttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 520 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA
ttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
521 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 521 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
522 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(jsValue, exceptionSta
te), exceptionState); | 522 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(jsValue, exceptionSta
te), exceptionState); |
523 imp->setUnsignedShortAttribute(cppValue); | 523 impl->setUnsignedShortAttribute(cppValue); |
524 } | 524 } |
525 | 525 |
526 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 526 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
527 { | 527 { |
528 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 528 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
529 TestObjectPythonV8Internal::unsignedShortAttributeAttributeSetter(jsValue, i
nfo); | 529 TestObjectPythonV8Internal::unsignedShortAttributeAttributeSetter(jsValue, i
nfo); |
530 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 530 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
531 } | 531 } |
532 | 532 |
533 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 533 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
534 { | 534 { |
535 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 535 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
536 v8SetReturnValueFast(info, WTF::getPtr(imp->testInterfaceEmptyAttribute()),
imp); | 536 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()),
impl); |
537 } | 537 } |
538 | 538 |
539 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 539 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
540 { | 540 { |
541 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 541 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
542 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeGetter(info)
; | 542 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeGetter(info)
; |
543 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 543 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
544 } | 544 } |
545 | 545 |
546 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) | 546 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) |
547 { | 547 { |
548 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 548 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
549 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ
eWithTypeCheck(info.GetIsolate(), jsValue)); | 549 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ
eWithTypeCheck(info.GetIsolate(), jsValue)); |
550 imp->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); | 550 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); |
551 } | 551 } |
552 | 552 |
553 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 553 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
554 { | 554 { |
555 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 555 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
556 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeSetter(jsVal
ue, info); | 556 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeSetter(jsVal
ue, info); |
557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
558 } | 558 } |
559 | 559 |
560 static void testObjectPythonAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 560 static void testObjectPythonAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
561 { | 561 { |
562 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 562 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
563 v8SetReturnValueFast(info, WTF::getPtr(imp->testObjectPythonAttribute()), im
p); | 563 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectPythonAttribute()), i
mpl); |
564 } | 564 } |
565 | 565 |
566 static void testObjectPythonAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 566 static void testObjectPythonAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
567 { | 567 { |
568 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 568 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
569 TestObjectPythonV8Internal::testObjectPythonAttributeAttributeGetter(info); | 569 TestObjectPythonV8Internal::testObjectPythonAttributeAttributeGetter(info); |
570 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 570 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
571 } | 571 } |
572 | 572 |
573 static void testObjectPythonAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 573 static void testObjectPythonAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
574 { | 574 { |
575 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 575 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
576 V8TRYCATCH_VOID(TestObjectPython*, cppValue, V8TestObjectPython::toNativeWit
hTypeCheck(info.GetIsolate(), jsValue)); | 576 V8TRYCATCH_VOID(TestObjectPython*, cppValue, V8TestObjectPython::toNativeWit
hTypeCheck(info.GetIsolate(), jsValue)); |
577 imp->setTestObjectPythonAttribute(WTF::getPtr(cppValue)); | 577 impl->setTestObjectPythonAttribute(WTF::getPtr(cppValue)); |
578 } | 578 } |
579 | 579 |
580 static void testObjectPythonAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 580 static void testObjectPythonAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
581 { | 581 { |
582 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 582 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
583 TestObjectPythonV8Internal::testObjectPythonAttributeAttributeSetter(jsValue
, info); | 583 TestObjectPythonV8Internal::testObjectPythonAttributeAttributeSetter(jsValue
, info); |
584 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 584 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
585 } | 585 } |
586 | 586 |
587 static void voidCallbackFunctionAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 587 static void voidCallbackFunctionAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
588 { | 588 { |
589 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 589 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
590 v8SetReturnValue(info, imp->voidCallbackFunctionAttribute().v8Value()); | 590 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value()); |
591 } | 591 } |
592 | 592 |
593 static void voidCallbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 593 static void voidCallbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
594 { | 594 { |
595 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 595 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
596 TestObjectPythonV8Internal::voidCallbackFunctionAttributeAttributeGetter(inf
o); | 596 TestObjectPythonV8Internal::voidCallbackFunctionAttributeAttributeGetter(inf
o); |
597 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 597 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
598 } | 598 } |
599 | 599 |
600 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) | 600 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) |
601 { | 601 { |
602 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 602 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
603 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); | 603 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); |
604 imp->setVoidCallbackFunctionAttribute(cppValue); | 604 impl->setVoidCallbackFunctionAttribute(cppValue); |
605 } | 605 } |
606 | 606 |
607 static void voidCallbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) | 607 static void voidCallbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) |
608 { | 608 { |
609 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 609 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
610 TestObjectPythonV8Internal::voidCallbackFunctionAttributeAttributeSetter(jsV
alue, info); | 610 TestObjectPythonV8Internal::voidCallbackFunctionAttributeAttributeSetter(jsV
alue, info); |
611 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 611 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
612 } | 612 } |
613 | 613 |
614 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) | 614 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) |
615 { | 615 { |
616 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 616 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
617 v8SetReturnValue(info, imp->anyCallbackFunctionOptionalAnyArgAttribute().v8V
alue()); | 617 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8
Value()); |
618 } | 618 } |
619 | 619 |
620 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 620 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
621 { | 621 { |
622 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 622 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
623 TestObjectPythonV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttrib
uteGetter(info); | 623 TestObjectPythonV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttrib
uteGetter(info); |
624 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 624 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
625 } | 625 } |
626 | 626 |
627 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 627 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
628 { | 628 { |
629 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 629 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
630 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); | 630 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); |
631 imp->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue); | 631 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue); |
632 } | 632 } |
633 | 633 |
634 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(v8
::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInf
o<void>& info) | 634 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(v8
::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInf
o<void>& info) |
635 { | 635 { |
636 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 636 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
637 TestObjectPythonV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttrib
uteSetter(jsValue, info); | 637 TestObjectPythonV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttrib
uteSetter(jsValue, info); |
638 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 638 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
639 } | 639 } |
640 | 640 |
641 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 641 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
642 { | 642 { |
643 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 643 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
644 v8SetReturnValueInt(info, imp->cssAttribute()); | 644 v8SetReturnValueInt(info, impl->cssAttribute()); |
645 } | 645 } |
646 | 646 |
647 static void cssAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 647 static void cssAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
648 { | 648 { |
649 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 649 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
650 TestObjectPythonV8Internal::cssAttributeAttributeGetter(info); | 650 TestObjectPythonV8Internal::cssAttributeAttributeGetter(info); |
651 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 651 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
652 } | 652 } |
653 | 653 |
654 static void cssAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) | 654 static void cssAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) |
655 { | 655 { |
656 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute",
"TestObjectPython", info.Holder(), info.GetIsolate()); | 656 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute",
"TestObjectPython", info.Holder(), info.GetIsolate()); |
657 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 657 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
658 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 658 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
659 imp->setCSSAttribute(cppValue); | 659 impl->setCSSAttribute(cppValue); |
660 } | 660 } |
661 | 661 |
662 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 662 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
663 { | 663 { |
664 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 664 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
665 TestObjectPythonV8Internal::cssAttributeAttributeSetter(jsValue, info); | 665 TestObjectPythonV8Internal::cssAttributeAttributeSetter(jsValue, info); |
666 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 666 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
667 } | 667 } |
668 | 668 |
669 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 669 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
670 { | 670 { |
671 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 671 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
672 v8SetReturnValueInt(info, imp->imeAttribute()); | 672 v8SetReturnValueInt(info, impl->imeAttribute()); |
673 } | 673 } |
674 | 674 |
675 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 675 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
676 { | 676 { |
677 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 677 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
678 TestObjectPythonV8Internal::imeAttributeAttributeGetter(info); | 678 TestObjectPythonV8Internal::imeAttributeAttributeGetter(info); |
679 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 679 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
680 } | 680 } |
681 | 681 |
682 static void imeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) | 682 static void imeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) |
683 { | 683 { |
684 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute",
"TestObjectPython", info.Holder(), info.GetIsolate()); | 684 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute",
"TestObjectPython", info.Holder(), info.GetIsolate()); |
685 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 685 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
686 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 686 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
687 imp->setIMEAttribute(cppValue); | 687 impl->setIMEAttribute(cppValue); |
688 } | 688 } |
689 | 689 |
690 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 690 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
691 { | 691 { |
692 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 692 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
693 TestObjectPythonV8Internal::imeAttributeAttributeSetter(jsValue, info); | 693 TestObjectPythonV8Internal::imeAttributeAttributeSetter(jsValue, info); |
694 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 694 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
695 } | 695 } |
696 | 696 |
697 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 697 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
698 { | 698 { |
699 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 699 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
700 v8SetReturnValueInt(info, imp->svgAttribute()); | 700 v8SetReturnValueInt(info, impl->svgAttribute()); |
701 } | 701 } |
702 | 702 |
703 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 703 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
704 { | 704 { |
705 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 705 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
706 TestObjectPythonV8Internal::svgAttributeAttributeGetter(info); | 706 TestObjectPythonV8Internal::svgAttributeAttributeGetter(info); |
707 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 707 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
708 } | 708 } |
709 | 709 |
710 static void svgAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) | 710 static void svgAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) |
711 { | 711 { |
712 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute",
"TestObjectPython", info.Holder(), info.GetIsolate()); | 712 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute",
"TestObjectPython", info.Holder(), info.GetIsolate()); |
713 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 713 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
714 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 714 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
715 imp->setSVGAttribute(cppValue); | 715 impl->setSVGAttribute(cppValue); |
716 } | 716 } |
717 | 717 |
718 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 718 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
719 { | 719 { |
720 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 720 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
721 TestObjectPythonV8Internal::svgAttributeAttributeSetter(jsValue, info); | 721 TestObjectPythonV8Internal::svgAttributeAttributeSetter(jsValue, info); |
722 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 722 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
723 } | 723 } |
724 | 724 |
725 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 725 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
726 { | 726 { |
727 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 727 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
728 v8SetReturnValueInt(info, imp->xmlAttribute()); | 728 v8SetReturnValueInt(info, impl->xmlAttribute()); |
729 } | 729 } |
730 | 730 |
731 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 731 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
732 { | 732 { |
733 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 733 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
734 TestObjectPythonV8Internal::xmlAttributeAttributeGetter(info); | 734 TestObjectPythonV8Internal::xmlAttributeAttributeGetter(info); |
735 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 735 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
736 } | 736 } |
737 | 737 |
738 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) | 738 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) |
739 { | 739 { |
740 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute",
"TestObjectPython", info.Holder(), info.GetIsolate()); | 740 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute",
"TestObjectPython", info.Holder(), info.GetIsolate()); |
741 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 741 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
742 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 742 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
743 imp->setXMLAttribute(cppValue); | 743 impl->setXMLAttribute(cppValue); |
744 } | 744 } |
745 | 745 |
746 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 746 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
747 { | 747 { |
748 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 748 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
749 TestObjectPythonV8Internal::xmlAttributeAttributeSetter(jsValue, info); | 749 TestObjectPythonV8Internal::xmlAttributeAttributeSetter(jsValue, info); |
750 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 750 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
751 } | 751 } |
752 | 752 |
753 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 753 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
754 { | 754 { |
755 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 755 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
756 v8SetReturnValueFast(info, WTF::getPtr(imp->nodeFilterAttribute()), imp); | 756 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl); |
757 } | 757 } |
758 | 758 |
759 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 759 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
760 { | 760 { |
761 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 761 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
762 TestObjectPythonV8Internal::nodeFilterAttributeAttributeGetter(info); | 762 TestObjectPythonV8Internal::nodeFilterAttributeAttributeGetter(info); |
763 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 763 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
764 } | 764 } |
765 | 765 |
766 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 766 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
767 { | 767 { |
768 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 768 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
769 V8TRYCATCH_VOID(RefPtr<NodeFilter>, cppValue, toNodeFilter(jsValue, info.Get
Isolate())); | 769 V8TRYCATCH_VOID(RefPtr<NodeFilter>, cppValue, toNodeFilter(jsValue, info.Get
Isolate())); |
770 imp->setNodeFilterAttribute(WTF::getPtr(cppValue)); | 770 impl->setNodeFilterAttribute(WTF::getPtr(cppValue)); |
771 } | 771 } |
772 | 772 |
773 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 773 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
774 { | 774 { |
775 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 775 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
776 TestObjectPythonV8Internal::nodeFilterAttributeAttributeSetter(jsValue, info
); | 776 TestObjectPythonV8Internal::nodeFilterAttributeAttributeSetter(jsValue, info
); |
777 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 777 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
778 } | 778 } |
779 | 779 |
780 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 780 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
781 { | 781 { |
782 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 782 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
783 v8SetReturnValue(info, imp->serializedScriptValueAttribute() ? imp->serializ
edScriptValueAttribute()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.Ge
tIsolate()))); | 783 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial
izedScriptValueAttribute()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.
GetIsolate()))); |
784 } | 784 } |
785 | 785 |
786 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 786 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
787 { | 787 { |
788 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 788 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
789 TestObjectPythonV8Internal::serializedScriptValueAttributeAttributeGetter(in
fo); | 789 TestObjectPythonV8Internal::serializedScriptValueAttributeAttributeGetter(in
fo); |
790 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 790 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
791 } | 791 } |
792 | 792 |
793 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) | 793 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) |
794 { | 794 { |
795 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 795 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
796 V8TRYCATCH_VOID(RefPtr<SerializedScriptValue>, cppValue, SerializedScriptVal
ue::create(jsValue, info.GetIsolate())); | 796 V8TRYCATCH_VOID(RefPtr<SerializedScriptValue>, cppValue, SerializedScriptVal
ue::create(jsValue, info.GetIsolate())); |
797 imp->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); | 797 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); |
798 } | 798 } |
799 | 799 |
800 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf
o) | 800 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf
o) |
801 { | 801 { |
802 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 802 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
803 TestObjectPythonV8Internal::serializedScriptValueAttributeAttributeSetter(js
Value, info); | 803 TestObjectPythonV8Internal::serializedScriptValueAttributeAttributeSetter(js
Value, info); |
804 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 804 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
805 } | 805 } |
806 | 806 |
807 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 807 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) |
808 { | 808 { |
809 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 809 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
810 v8SetReturnValue(info, imp->anyAttribute().v8Value()); | 810 v8SetReturnValue(info, impl->anyAttribute().v8Value()); |
811 } | 811 } |
812 | 812 |
813 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 813 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8:
:PropertyCallbackInfo<v8::Value>& info) |
814 { | 814 { |
815 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 815 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
816 TestObjectPythonV8Internal::anyAttributeAttributeGetter(info); | 816 TestObjectPythonV8Internal::anyAttributeAttributeGetter(info); |
817 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 817 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
818 } | 818 } |
819 | 819 |
820 static void anyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) | 820 static void anyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::
PropertyCallbackInfo<void>& info) |
821 { | 821 { |
822 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 822 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
823 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); | 823 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); |
824 imp->setAnyAttribute(cppValue); | 824 impl->setAnyAttribute(cppValue); |
825 } | 825 } |
826 | 826 |
827 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 827 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local
<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
828 { | 828 { |
829 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 829 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
830 TestObjectPythonV8Internal::anyAttributeAttributeSetter(jsValue, info); | 830 TestObjectPythonV8Internal::anyAttributeAttributeSetter(jsValue, info); |
831 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 831 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
832 } | 832 } |
833 | 833 |
834 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 834 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) |
835 { | 835 { |
836 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 836 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
837 v8SetReturnValue(info, imp->promiseAttribute().v8Value()); | 837 v8SetReturnValue(info, impl->promiseAttribute().v8Value()); |
838 } | 838 } |
839 | 839 |
840 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 840 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
841 { | 841 { |
842 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 842 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
843 TestObjectPythonV8Internal::promiseAttributeAttributeGetter(info); | 843 TestObjectPythonV8Internal::promiseAttributeAttributeGetter(info); |
844 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 844 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
845 } | 845 } |
846 | 846 |
847 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 847 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
848 { | 848 { |
849 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 849 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
850 V8TRYCATCH_VOID(ScriptPromise, cppValue, ScriptPromise(jsValue, info.GetIsol
ate())); | 850 V8TRYCATCH_VOID(ScriptPromise, cppValue, ScriptPromise(jsValue, info.GetIsol
ate())); |
851 imp->setPromiseAttribute(cppValue); | 851 impl->setPromiseAttribute(cppValue); |
852 } | 852 } |
853 | 853 |
854 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 854 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
855 { | 855 { |
856 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 856 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
857 TestObjectPythonV8Internal::promiseAttributeAttributeSetter(jsValue, info); | 857 TestObjectPythonV8Internal::promiseAttributeAttributeSetter(jsValue, info); |
858 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 858 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
859 } | 859 } |
860 | 860 |
861 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 861 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) |
862 { | 862 { |
863 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 863 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
864 v8SetReturnValueFast(info, WTF::getPtr(imp->windowAttribute()), imp); | 864 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl); |
865 } | 865 } |
866 | 866 |
867 static void windowAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 867 static void windowAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
868 { | 868 { |
869 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 869 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
870 TestObjectPythonV8Internal::windowAttributeAttributeGetter(info); | 870 TestObjectPythonV8Internal::windowAttributeAttributeGetter(info); |
871 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 871 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
872 } | 872 } |
873 | 873 |
874 static void windowAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v
8::PropertyCallbackInfo<void>& info) | 874 static void windowAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v
8::PropertyCallbackInfo<void>& info) |
875 { | 875 { |
876 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 876 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
877 V8TRYCATCH_VOID(DOMWindow*, cppValue, toDOMWindow(jsValue, info.GetIsolate()
)); | 877 V8TRYCATCH_VOID(DOMWindow*, cppValue, toDOMWindow(jsValue, info.GetIsolate()
)); |
878 imp->setWindowAttribute(WTF::getPtr(cppValue)); | 878 impl->setWindowAttribute(WTF::getPtr(cppValue)); |
879 } | 879 } |
880 | 880 |
881 static void windowAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 881 static void windowAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
882 { | 882 { |
883 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 883 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
884 TestObjectPythonV8Internal::windowAttributeAttributeSetter(jsValue, info); | 884 TestObjectPythonV8Internal::windowAttributeAttributeSetter(jsValue, info); |
885 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 885 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
886 } | 886 } |
887 | 887 |
888 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 888 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) |
889 { | 889 { |
890 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 890 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
891 v8SetReturnValueFast(info, WTF::getPtr(imp->documentAttribute()), imp); | 891 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl); |
892 } | 892 } |
893 | 893 |
894 static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 894 static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
895 { | 895 { |
896 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 896 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
897 TestObjectPythonV8Internal::documentAttributeAttributeGetter(info); | 897 TestObjectPythonV8Internal::documentAttributeAttributeGetter(info); |
898 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 898 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
899 } | 899 } |
900 | 900 |
901 static void documentAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 901 static void documentAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
902 { | 902 { |
903 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 903 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
904 V8TRYCATCH_VOID(Document*, cppValue, V8Document::toNativeWithTypeCheck(info.
GetIsolate(), jsValue)); | 904 V8TRYCATCH_VOID(Document*, cppValue, V8Document::toNativeWithTypeCheck(info.
GetIsolate(), jsValue)); |
905 imp->setDocumentAttribute(WTF::getPtr(cppValue)); | 905 impl->setDocumentAttribute(WTF::getPtr(cppValue)); |
906 } | 906 } |
907 | 907 |
908 static void documentAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 908 static void documentAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
909 { | 909 { |
910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
911 TestObjectPythonV8Internal::documentAttributeAttributeSetter(jsValue, info); | 911 TestObjectPythonV8Internal::documentAttributeAttributeSetter(jsValue, info); |
912 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 912 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
913 } | 913 } |
914 | 914 |
915 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 915 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
916 { | 916 { |
917 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 917 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
918 v8SetReturnValueFast(info, WTF::getPtr(imp->documentFragmentAttribute()), im
p); | 918 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i
mpl); |
919 } | 919 } |
920 | 920 |
921 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 921 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
922 { | 922 { |
923 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 923 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
924 TestObjectPythonV8Internal::documentFragmentAttributeAttributeGetter(info); | 924 TestObjectPythonV8Internal::documentFragmentAttributeAttributeGetter(info); |
925 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 925 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
926 } | 926 } |
927 | 927 |
928 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 928 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
929 { | 929 { |
930 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 930 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
931 V8TRYCATCH_VOID(DocumentFragment*, cppValue, V8DocumentFragment::toNativeWit
hTypeCheck(info.GetIsolate(), jsValue)); | 931 V8TRYCATCH_VOID(DocumentFragment*, cppValue, V8DocumentFragment::toNativeWit
hTypeCheck(info.GetIsolate(), jsValue)); |
932 imp->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); | 932 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); |
933 } | 933 } |
934 | 934 |
935 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 935 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
936 { | 936 { |
937 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 937 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
938 TestObjectPythonV8Internal::documentFragmentAttributeAttributeSetter(jsValue
, info); | 938 TestObjectPythonV8Internal::documentFragmentAttributeAttributeSetter(jsValue
, info); |
939 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 939 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
940 } | 940 } |
941 | 941 |
942 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 942 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
943 { | 943 { |
944 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 944 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
945 v8SetReturnValueFast(info, WTF::getPtr(imp->documentTypeAttribute()), imp); | 945 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl)
; |
946 } | 946 } |
947 | 947 |
948 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 948 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
949 { | 949 { |
950 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 950 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
951 TestObjectPythonV8Internal::documentTypeAttributeAttributeGetter(info); | 951 TestObjectPythonV8Internal::documentTypeAttributeAttributeGetter(info); |
952 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 952 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
953 } | 953 } |
954 | 954 |
955 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 955 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
956 { | 956 { |
957 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 957 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
958 V8TRYCATCH_VOID(DocumentType*, cppValue, V8DocumentType::toNativeWithTypeChe
ck(info.GetIsolate(), jsValue)); | 958 V8TRYCATCH_VOID(DocumentType*, cppValue, V8DocumentType::toNativeWithTypeChe
ck(info.GetIsolate(), jsValue)); |
959 imp->setDocumentTypeAttribute(WTF::getPtr(cppValue)); | 959 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue)); |
960 } | 960 } |
961 | 961 |
962 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 962 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
963 { | 963 { |
964 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 964 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
965 TestObjectPythonV8Internal::documentTypeAttributeAttributeSetter(jsValue, in
fo); | 965 TestObjectPythonV8Internal::documentTypeAttributeAttributeSetter(jsValue, in
fo); |
966 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 966 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
967 } | 967 } |
968 | 968 |
969 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 969 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) |
970 { | 970 { |
971 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 971 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
972 v8SetReturnValueFast(info, WTF::getPtr(imp->elementAttribute()), imp); | 972 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl); |
973 } | 973 } |
974 | 974 |
975 static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 975 static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
976 { | 976 { |
977 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 977 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
978 TestObjectPythonV8Internal::elementAttributeAttributeGetter(info); | 978 TestObjectPythonV8Internal::elementAttributeAttributeGetter(info); |
979 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 979 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
980 } | 980 } |
981 | 981 |
982 static void elementAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 982 static void elementAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
983 { | 983 { |
984 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 984 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
985 V8TRYCATCH_VOID(Element*, cppValue, V8Element::toNativeWithTypeCheck(info.Ge
tIsolate(), jsValue)); | 985 V8TRYCATCH_VOID(Element*, cppValue, V8Element::toNativeWithTypeCheck(info.Ge
tIsolate(), jsValue)); |
986 imp->setElementAttribute(WTF::getPtr(cppValue)); | 986 impl->setElementAttribute(WTF::getPtr(cppValue)); |
987 } | 987 } |
988 | 988 |
989 static void elementAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 989 static void elementAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
990 { | 990 { |
991 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 991 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
992 TestObjectPythonV8Internal::elementAttributeAttributeSetter(jsValue, info); | 992 TestObjectPythonV8Internal::elementAttributeAttributeSetter(jsValue, info); |
993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
994 } | 994 } |
995 | 995 |
996 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 996 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
997 { | 997 { |
998 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 998 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
999 v8SetReturnValueFast(info, WTF::getPtr(imp->nodeAttribute()), imp); | 999 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl); |
1000 } | 1000 } |
1001 | 1001 |
1002 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 1002 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
1003 { | 1003 { |
1004 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1004 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1005 TestObjectPythonV8Internal::nodeAttributeAttributeGetter(info); | 1005 TestObjectPythonV8Internal::nodeAttributeAttributeGetter(info); |
1006 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1006 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1007 } | 1007 } |
1008 | 1008 |
1009 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) | 1009 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) |
1010 { | 1010 { |
1011 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1011 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1012 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); | 1012 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); |
1013 imp->setNodeAttribute(WTF::getPtr(cppValue)); | 1013 impl->setNodeAttribute(WTF::getPtr(cppValue)); |
1014 } | 1014 } |
1015 | 1015 |
1016 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1016 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1017 { | 1017 { |
1018 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1018 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1019 TestObjectPythonV8Internal::nodeAttributeAttributeSetter(jsValue, info); | 1019 TestObjectPythonV8Internal::nodeAttributeAttributeSetter(jsValue, info); |
1020 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1020 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1021 } | 1021 } |
1022 | 1022 |
1023 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1023 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
1024 { | 1024 { |
1025 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1025 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1026 v8SetReturnValueFast(info, WTF::getPtr(imp->shadowRootAttribute()), imp); | 1026 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl); |
1027 } | 1027 } |
1028 | 1028 |
1029 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1029 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
1030 { | 1030 { |
1031 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1031 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1032 TestObjectPythonV8Internal::shadowRootAttributeAttributeGetter(info); | 1032 TestObjectPythonV8Internal::shadowRootAttributeAttributeGetter(info); |
1033 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1033 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1034 } | 1034 } |
1035 | 1035 |
1036 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 1036 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
1037 { | 1037 { |
1038 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1038 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1039 V8TRYCATCH_VOID(ShadowRoot*, cppValue, V8ShadowRoot::toNativeWithTypeCheck(i
nfo.GetIsolate(), jsValue)); | 1039 V8TRYCATCH_VOID(ShadowRoot*, cppValue, V8ShadowRoot::toNativeWithTypeCheck(i
nfo.GetIsolate(), jsValue)); |
1040 imp->setShadowRootAttribute(WTF::getPtr(cppValue)); | 1040 impl->setShadowRootAttribute(WTF::getPtr(cppValue)); |
1041 } | 1041 } |
1042 | 1042 |
1043 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1043 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1044 { | 1044 { |
1045 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1045 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1046 TestObjectPythonV8Internal::shadowRootAttributeAttributeSetter(jsValue, info
); | 1046 TestObjectPythonV8Internal::shadowRootAttributeAttributeSetter(jsValue, info
); |
1047 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1047 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1048 } | 1048 } |
1049 | 1049 |
1050 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 1050 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
1051 { | 1051 { |
1052 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1052 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1053 v8SetReturnValueFast(info, WTF::getPtr(imp->arrayBufferAttribute()), imp); | 1053 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl); |
1054 } | 1054 } |
1055 | 1055 |
1056 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 1056 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
1057 { | 1057 { |
1058 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1058 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1059 TestObjectPythonV8Internal::arrayBufferAttributeAttributeGetter(info); | 1059 TestObjectPythonV8Internal::arrayBufferAttributeAttributeGetter(info); |
1060 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1060 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1061 } | 1061 } |
1062 | 1062 |
1063 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) | 1063 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) |
1064 { | 1064 { |
1065 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1065 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1066 V8TRYCATCH_VOID(ArrayBuffer*, cppValue, jsValue->IsArrayBuffer() ? V8ArrayBu
ffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(jsValue)) : 0); | 1066 V8TRYCATCH_VOID(ArrayBuffer*, cppValue, jsValue->IsArrayBuffer() ? V8ArrayBu
ffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(jsValue)) : 0); |
1067 imp->setArrayBufferAttribute(WTF::getPtr(cppValue)); | 1067 impl->setArrayBufferAttribute(WTF::getPtr(cppValue)); |
1068 } | 1068 } |
1069 | 1069 |
1070 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1070 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1071 { | 1071 { |
1072 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1072 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1073 TestObjectPythonV8Internal::arrayBufferAttributeAttributeSetter(jsValue, inf
o); | 1073 TestObjectPythonV8Internal::arrayBufferAttributeAttributeSetter(jsValue, inf
o); |
1074 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1074 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1075 } | 1075 } |
1076 | 1076 |
1077 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1077 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
1078 { | 1078 { |
1079 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1079 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1080 v8SetReturnValueFast(info, WTF::getPtr(imp->float32ArrayAttribute()), imp); | 1080 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl)
; |
1081 } | 1081 } |
1082 | 1082 |
1083 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1083 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
1084 { | 1084 { |
1085 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1085 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1086 TestObjectPythonV8Internal::float32ArrayAttributeAttributeGetter(info); | 1086 TestObjectPythonV8Internal::float32ArrayAttributeAttributeGetter(info); |
1087 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1087 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1088 } | 1088 } |
1089 | 1089 |
1090 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 1090 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
1091 { | 1091 { |
1092 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1092 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1093 V8TRYCATCH_VOID(Float32Array*, cppValue, jsValue->IsFloat32Array() ? V8Float
32Array::toNative(v8::Handle<v8::Float32Array>::Cast(jsValue)) : 0); | 1093 V8TRYCATCH_VOID(Float32Array*, cppValue, jsValue->IsFloat32Array() ? V8Float
32Array::toNative(v8::Handle<v8::Float32Array>::Cast(jsValue)) : 0); |
1094 imp->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); | 1094 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); |
1095 } | 1095 } |
1096 | 1096 |
1097 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1097 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1098 { | 1098 { |
1099 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1099 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1100 TestObjectPythonV8Internal::float32ArrayAttributeAttributeSetter(jsValue, in
fo); | 1100 TestObjectPythonV8Internal::float32ArrayAttributeAttributeSetter(jsValue, in
fo); |
1101 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1101 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1102 } | 1102 } |
1103 | 1103 |
1104 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1104 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
1105 { | 1105 { |
1106 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1106 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1107 v8SetReturnValueFast(info, WTF::getPtr(imp->uint8ArrayAttribute()), imp); | 1107 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl); |
1108 } | 1108 } |
1109 | 1109 |
1110 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1110 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
1111 { | 1111 { |
1112 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1112 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1113 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeGetter(info); | 1113 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeGetter(info); |
1114 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1114 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1115 } | 1115 } |
1116 | 1116 |
1117 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 1117 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
1118 { | 1118 { |
1119 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1119 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1120 V8TRYCATCH_VOID(Uint8Array*, cppValue, jsValue->IsUint8Array() ? V8Uint8Arra
y::toNative(v8::Handle<v8::Uint8Array>::Cast(jsValue)) : 0); | 1120 V8TRYCATCH_VOID(Uint8Array*, cppValue, jsValue->IsUint8Array() ? V8Uint8Arra
y::toNative(v8::Handle<v8::Uint8Array>::Cast(jsValue)) : 0); |
1121 imp->setUint8ArrayAttribute(WTF::getPtr(cppValue)); | 1121 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue)); |
1122 } | 1122 } |
1123 | 1123 |
1124 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1124 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1125 { | 1125 { |
1126 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1126 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1127 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeSetter(jsValue, info
); | 1127 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeSetter(jsValue, info
); |
1128 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1128 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1129 } | 1129 } |
1130 | 1130 |
1131 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 1131 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
1132 { | 1132 { |
1133 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1133 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1134 v8SetReturnValueFast(info, WTF::getPtr(imp->self()), imp); | 1134 v8SetReturnValueFast(info, WTF::getPtr(impl->self()), impl); |
1135 } | 1135 } |
1136 | 1136 |
1137 static void selfAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) | 1137 static void selfAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) |
1138 { | 1138 { |
1139 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1139 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1140 TestObjectPythonV8Internal::selfAttributeGetter(info); | 1140 TestObjectPythonV8Internal::selfAttributeGetter(info); |
1141 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1141 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1142 } | 1142 } |
1143 | 1143 |
1144 static void readonlyEventTargetAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 1144 static void readonlyEventTargetAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
1145 { | 1145 { |
1146 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1146 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1147 v8SetReturnValueFast(info, WTF::getPtr(imp->readonlyEventTargetAttribute()),
imp); | 1147 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetAttribute())
, impl); |
1148 } | 1148 } |
1149 | 1149 |
1150 static void readonlyEventTargetAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1150 static void readonlyEventTargetAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1151 { | 1151 { |
1152 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1152 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1153 TestObjectPythonV8Internal::readonlyEventTargetAttributeAttributeGetter(info
); | 1153 TestObjectPythonV8Internal::readonlyEventTargetAttributeAttributeGetter(info
); |
1154 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1154 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1155 } | 1155 } |
1156 | 1156 |
1157 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 1157 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
1158 { | 1158 { |
1159 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1159 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1160 bool isNull = false; | 1160 bool isNull = false; |
1161 RefPtr<EventTarget> jsValue = imp->readonlyEventTargetOrNullAttribute(isNull
); | 1161 RefPtr<EventTarget> jsValue = impl->readonlyEventTargetOrNullAttribute(isNul
l); |
1162 if (isNull) { | 1162 if (isNull) { |
1163 v8SetReturnValueNull(info); | 1163 v8SetReturnValueNull(info); |
1164 return; | 1164 return; |
1165 } | 1165 } |
1166 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), imp); | 1166 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), impl); |
1167 } | 1167 } |
1168 | 1168 |
1169 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1169 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1170 { | 1170 { |
1171 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1171 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1172 TestObjectPythonV8Internal::readonlyEventTargetOrNullAttributeAttributeGette
r(info); | 1172 TestObjectPythonV8Internal::readonlyEventTargetOrNullAttributeAttributeGette
r(info); |
1173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1174 } | 1174 } |
1175 | 1175 |
1176 static void readonlyWindowAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 1176 static void readonlyWindowAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
1177 { | 1177 { |
1178 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1178 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1179 v8SetReturnValueFast(info, WTF::getPtr(imp->readonlyWindowAttribute()), imp)
; | 1179 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyWindowAttribute()), imp
l); |
1180 } | 1180 } |
1181 | 1181 |
1182 static void readonlyWindowAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 1182 static void readonlyWindowAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
1183 { | 1183 { |
1184 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1184 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1185 TestObjectPythonV8Internal::readonlyWindowAttributeAttributeGetter(info); | 1185 TestObjectPythonV8Internal::readonlyWindowAttributeAttributeGetter(info); |
1186 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1186 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1187 } | 1187 } |
1188 | 1188 |
1189 static void htmlCollectionAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 1189 static void htmlCollectionAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
1190 { | 1190 { |
1191 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1191 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1192 v8SetReturnValueFast(info, WTF::getPtr(imp->htmlCollectionAttribute()), imp)
; | 1192 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlCollectionAttribute()), imp
l); |
1193 } | 1193 } |
1194 | 1194 |
1195 static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 1195 static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
1196 { | 1196 { |
1197 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1197 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1198 TestObjectPythonV8Internal::htmlCollectionAttributeAttributeGetter(info); | 1198 TestObjectPythonV8Internal::htmlCollectionAttributeAttributeGetter(info); |
1199 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1199 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1200 } | 1200 } |
1201 | 1201 |
1202 static void htmlElementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 1202 static void htmlElementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
1203 { | 1203 { |
1204 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1204 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1205 v8SetReturnValueFast(info, WTF::getPtr(imp->htmlElementAttribute()), imp); | 1205 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlElementAttribute()), impl); |
1206 } | 1206 } |
1207 | 1207 |
1208 static void htmlElementAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 1208 static void htmlElementAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
1209 { | 1209 { |
1210 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1210 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1211 TestObjectPythonV8Internal::htmlElementAttributeAttributeGetter(info); | 1211 TestObjectPythonV8Internal::htmlElementAttributeAttributeGetter(info); |
1212 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1212 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1213 } | 1213 } |
1214 | 1214 |
1215 static void stringArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 1215 static void stringArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
1216 { | 1216 { |
1217 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1217 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1218 v8SetReturnValue(info, v8Array(imp->stringArrayAttribute(), info.GetIsolate(
))); | 1218 v8SetReturnValue(info, v8Array(impl->stringArrayAttribute(), info.GetIsolate
())); |
1219 } | 1219 } |
1220 | 1220 |
1221 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 1221 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
1222 { | 1222 { |
1223 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1223 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1224 TestObjectPythonV8Internal::stringArrayAttributeAttributeGetter(info); | 1224 TestObjectPythonV8Internal::stringArrayAttributeAttributeGetter(info); |
1225 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1225 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1226 } | 1226 } |
1227 | 1227 |
1228 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) | 1228 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) |
1229 { | 1229 { |
1230 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1230 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1231 V8TRYCATCH_VOID(Vector<String>, cppValue, toNativeArray<String>(jsValue, 0,
info.GetIsolate())); | 1231 V8TRYCATCH_VOID(Vector<String>, cppValue, toNativeArray<String>(jsValue, 0,
info.GetIsolate())); |
1232 imp->setStringArrayAttribute(cppValue); | 1232 impl->setStringArrayAttribute(cppValue); |
1233 } | 1233 } |
1234 | 1234 |
1235 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1235 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1236 { | 1236 { |
1237 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1237 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1238 TestObjectPythonV8Internal::stringArrayAttributeAttributeSetter(jsValue, inf
o); | 1238 TestObjectPythonV8Internal::stringArrayAttributeAttributeSetter(jsValue, inf
o); |
1239 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1239 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1240 } | 1240 } |
1241 | 1241 |
1242 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) | 1242 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) |
1243 { | 1243 { |
1244 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1244 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1245 v8SetReturnValue(info, v8Array(imp->testInterfaceEmptyArrayAttribute(), info
.GetIsolate())); | 1245 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptyArrayAttribute(), inf
o.GetIsolate())); |
1246 } | 1246 } |
1247 | 1247 |
1248 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1248 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1249 { | 1249 { |
1250 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1250 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1251 TestObjectPythonV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(
info); | 1251 TestObjectPythonV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(
info); |
1252 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1252 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1253 } | 1253 } |
1254 | 1254 |
1255 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) | 1255 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) |
1256 { | 1256 { |
1257 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1257 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1258 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNati
veArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(jsValue, 0, info.GetIsolate())
)); | 1258 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNati
veArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(jsValue, 0, info.GetIsolate())
)); |
1259 imp->setTestInterfaceEmptyArrayAttribute(cppValue); | 1259 impl->setTestInterfaceEmptyArrayAttribute(cppValue); |
1260 } | 1260 } |
1261 | 1261 |
1262 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) | 1262 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) |
1263 { | 1263 { |
1264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1265 TestObjectPythonV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(
jsValue, info); | 1265 TestObjectPythonV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(
jsValue, info); |
1266 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1266 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1267 } | 1267 } |
1268 | 1268 |
1269 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1269 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
1270 { | 1270 { |
1271 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1271 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1272 v8SetReturnValue(info, v8Array(imp->floatArrayAttribute(), info.GetIsolate()
)); | 1272 v8SetReturnValue(info, v8Array(impl->floatArrayAttribute(), info.GetIsolate(
))); |
1273 } | 1273 } |
1274 | 1274 |
1275 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1275 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
1276 { | 1276 { |
1277 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1277 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1278 TestObjectPythonV8Internal::floatArrayAttributeAttributeGetter(info); | 1278 TestObjectPythonV8Internal::floatArrayAttributeAttributeGetter(info); |
1279 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1279 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1280 } | 1280 } |
1281 | 1281 |
1282 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 1282 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
1283 { | 1283 { |
1284 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1284 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1285 V8TRYCATCH_VOID(Vector<float>, cppValue, toNativeArray<float>(jsValue, 0, in
fo.GetIsolate())); | 1285 V8TRYCATCH_VOID(Vector<float>, cppValue, toNativeArray<float>(jsValue, 0, in
fo.GetIsolate())); |
1286 imp->setFloatArrayAttribute(cppValue); | 1286 impl->setFloatArrayAttribute(cppValue); |
1287 } | 1287 } |
1288 | 1288 |
1289 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1289 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1290 { | 1290 { |
1291 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1291 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1292 TestObjectPythonV8Internal::floatArrayAttributeAttributeSetter(jsValue, info
); | 1292 TestObjectPythonV8Internal::floatArrayAttributeAttributeSetter(jsValue, info
); |
1293 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1293 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1294 } | 1294 } |
1295 | 1295 |
1296 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1296 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
1297 { | 1297 { |
1298 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1298 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1299 bool isNull = false; | 1299 bool isNull = false; |
1300 String jsValue = imp->stringOrNullAttribute(isNull); | 1300 String jsValue = impl->stringOrNullAttribute(isNull); |
1301 if (isNull) { | 1301 if (isNull) { |
1302 v8SetReturnValueNull(info); | 1302 v8SetReturnValueNull(info); |
1303 return; | 1303 return; |
1304 } | 1304 } |
1305 v8SetReturnValueString(info, jsValue, info.GetIsolate()); | 1305 v8SetReturnValueString(info, jsValue, info.GetIsolate()); |
1306 } | 1306 } |
1307 | 1307 |
1308 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1308 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
1309 { | 1309 { |
1310 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1310 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1311 TestObjectPythonV8Internal::stringOrNullAttributeAttributeGetter(info); | 1311 TestObjectPythonV8Internal::stringOrNullAttributeAttributeGetter(info); |
1312 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1312 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1313 } | 1313 } |
1314 | 1314 |
1315 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 1315 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
1316 { | 1316 { |
1317 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1317 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1318 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 1318 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
1319 imp->setStringOrNullAttribute(cppValue); | 1319 impl->setStringOrNullAttribute(cppValue); |
1320 } | 1320 } |
1321 | 1321 |
1322 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1322 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1323 { | 1323 { |
1324 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1324 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1325 TestObjectPythonV8Internal::stringOrNullAttributeAttributeSetter(jsValue, in
fo); | 1325 TestObjectPythonV8Internal::stringOrNullAttributeAttributeSetter(jsValue, in
fo); |
1326 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1326 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1327 } | 1327 } |
1328 | 1328 |
1329 static void longOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1329 static void longOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
1330 { | 1330 { |
1331 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1331 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1332 bool isNull = false; | 1332 bool isNull = false; |
1333 int jsValue = imp->longOrNullAttribute(isNull); | 1333 int jsValue = impl->longOrNullAttribute(isNull); |
1334 if (isNull) { | 1334 if (isNull) { |
1335 v8SetReturnValueNull(info); | 1335 v8SetReturnValueNull(info); |
1336 return; | 1336 return; |
1337 } | 1337 } |
1338 v8SetReturnValueInt(info, jsValue); | 1338 v8SetReturnValueInt(info, jsValue); |
1339 } | 1339 } |
1340 | 1340 |
1341 static void longOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1341 static void longOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
1342 { | 1342 { |
1343 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1343 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1344 TestObjectPythonV8Internal::longOrNullAttributeAttributeGetter(info); | 1344 TestObjectPythonV8Internal::longOrNullAttributeAttributeGetter(info); |
1345 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1345 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1346 } | 1346 } |
1347 | 1347 |
1348 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 1348 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
1349 { | 1349 { |
1350 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr
ibute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 1350 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr
ibute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
1351 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1351 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1352 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 1352 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
1353 imp->setLongOrNullAttribute(cppValue); | 1353 impl->setLongOrNullAttribute(cppValue); |
1354 } | 1354 } |
1355 | 1355 |
1356 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1356 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1357 { | 1357 { |
1358 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1358 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1359 TestObjectPythonV8Internal::longOrNullAttributeAttributeSetter(jsValue, info
); | 1359 TestObjectPythonV8Internal::longOrNullAttributeAttributeSetter(jsValue, info
); |
1360 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1360 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1361 } | 1361 } |
1362 | 1362 |
1363 static void testInterfaceOrNullAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 1363 static void testInterfaceOrNullAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
1364 { | 1364 { |
1365 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1365 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1366 bool isNull = false; | 1366 bool isNull = false; |
1367 RefPtr<TestInterface> jsValue = imp->testInterfaceOrNullAttribute(isNull); | 1367 RefPtr<TestInterface> jsValue = impl->testInterfaceOrNullAttribute(isNull); |
1368 if (isNull) { | 1368 if (isNull) { |
1369 v8SetReturnValueNull(info); | 1369 v8SetReturnValueNull(info); |
1370 return; | 1370 return; |
1371 } | 1371 } |
1372 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), imp); | 1372 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), impl); |
1373 } | 1373 } |
1374 | 1374 |
1375 static void testInterfaceOrNullAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1375 static void testInterfaceOrNullAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1376 { | 1376 { |
1377 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1377 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1378 TestObjectPythonV8Internal::testInterfaceOrNullAttributeAttributeGetter(info
); | 1378 TestObjectPythonV8Internal::testInterfaceOrNullAttributeAttributeGetter(info
); |
1379 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1379 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1380 } | 1380 } |
1381 | 1381 |
1382 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) | 1382 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) |
1383 { | 1383 { |
1384 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1384 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1385 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC
heck(info.GetIsolate(), jsValue)); | 1385 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC
heck(info.GetIsolate(), jsValue)); |
1386 imp->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue)); | 1386 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue)); |
1387 } | 1387 } |
1388 | 1388 |
1389 static void testInterfaceOrNullAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1389 static void testInterfaceOrNullAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1390 { | 1390 { |
1391 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1391 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1392 TestObjectPythonV8Internal::testInterfaceOrNullAttributeAttributeSetter(jsVa
lue, info); | 1392 TestObjectPythonV8Internal::testInterfaceOrNullAttributeAttributeSetter(jsVa
lue, info); |
1393 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1393 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1394 } | 1394 } |
1395 | 1395 |
1396 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 1396 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) |
1397 { | 1397 { |
1398 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1398 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1399 v8SetReturnValueString(info, imp->testEnumAttribute(), info.GetIsolate()); | 1399 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate()); |
1400 } | 1400 } |
1401 | 1401 |
1402 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 1402 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
1403 { | 1403 { |
1404 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1404 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1405 TestObjectPythonV8Internal::testEnumAttributeAttributeGetter(info); | 1405 TestObjectPythonV8Internal::testEnumAttributeAttributeGetter(info); |
1406 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1406 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1407 } | 1407 } |
1408 | 1408 |
1409 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 1409 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
1410 { | 1410 { |
1411 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1411 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1412 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 1412 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
1413 String string = cppValue; | 1413 String string = cppValue; |
1414 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) | 1414 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) |
1415 return; | 1415 return; |
1416 imp->setTestEnumAttribute(cppValue); | 1416 impl->setTestEnumAttribute(cppValue); |
1417 } | 1417 } |
1418 | 1418 |
1419 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1419 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1420 { | 1420 { |
1421 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1421 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1422 TestObjectPythonV8Internal::testEnumAttributeAttributeSetter(jsValue, info); | 1422 TestObjectPythonV8Internal::testEnumAttributeAttributeSetter(jsValue, info); |
1423 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1423 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1424 } | 1424 } |
1425 | 1425 |
1426 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1426 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1469 | 1469 |
1470 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1470 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1471 { | 1471 { |
1472 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1472 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1473 TestObjectPythonV8Internal::staticLongAttributeAttributeSetter(jsValue, info
); | 1473 TestObjectPythonV8Internal::staticLongAttributeAttributeSetter(jsValue, info
); |
1474 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1474 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1475 } | 1475 } |
1476 | 1476 |
1477 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1477 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
1478 { | 1478 { |
1479 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1479 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1480 EventListener* jsValue = imp->eventHandlerAttribute(); | 1480 EventListener* jsValue = impl->eventHandlerAttribute(); |
1481 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen
er::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8::
Value>(v8::Null(info.GetIsolate()))); | 1481 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen
er::cast(jsValue)->getListenerObject(impl->executionContext())) : v8::Handle<v8:
:Value>(v8::Null(info.GetIsolate()))); |
1482 } | 1482 } |
1483 | 1483 |
1484 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1484 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
1485 { | 1485 { |
1486 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1486 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1487 TestObjectPythonV8Internal::eventHandlerAttributeAttributeGetter(info); | 1487 TestObjectPythonV8Internal::eventHandlerAttributeAttributeGetter(info); |
1488 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1488 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1489 } | 1489 } |
1490 | 1490 |
1491 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 1491 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
1492 { | 1492 { |
1493 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1493 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1494 moveEventListenerToNewWrapper(info.Holder(), imp->eventHandlerAttribute(), j
sValue, V8TestObjectPython::eventListenerCacheIndex, info.GetIsolate()); | 1494 moveEventListenerToNewWrapper(info.Holder(), impl->eventHandlerAttribute(),
jsValue, V8TestObjectPython::eventListenerCacheIndex, info.GetIsolate()); |
1495 imp->setEventHandlerAttribute(V8EventListenerList::getEventListener(jsValue,
true, ListenerFindOrCreate)); | 1495 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(jsValue
, true, ListenerFindOrCreate)); |
1496 } | 1496 } |
1497 | 1497 |
1498 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1498 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1499 { | 1499 { |
1500 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1500 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1501 TestObjectPythonV8Internal::eventHandlerAttributeAttributeSetter(jsValue, in
fo); | 1501 TestObjectPythonV8Internal::eventHandlerAttributeAttributeSetter(jsValue, in
fo); |
1502 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1502 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1503 } | 1503 } |
1504 | 1504 |
1505 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 1505 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
1506 { | 1506 { |
1507 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1507 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1508 v8SetReturnValueInt(info, imp->activityLoggingAccessForAllWorldsLongAttribut
e()); | 1508 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu
te()); |
1509 } | 1509 } |
1510 | 1510 |
1511 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1511 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1512 { | 1512 { |
1513 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1513 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1514 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1514 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
1515 if (contextData && contextData->activityLogger()) | 1515 if (contextData && contextData->activityLogger()) |
1516 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForAllWorldsLongAttribute", 0, 0, "Getter"); | 1516 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForAllWorldsLongAttribute", 0, 0, "Getter"); |
1517 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAt
tributeGetter(info); | 1517 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAt
tributeGetter(info); |
1518 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1518 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1519 } | 1519 } |
1520 | 1520 |
1521 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1521 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1522 { | 1522 { |
1523 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObjectPython", info.Holder(), info.GetIs
olate()); | 1523 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObjectPython", info.Holder(), info.GetIs
olate()); |
1524 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1524 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1525 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 1525 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
1526 imp->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); | 1526 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); |
1527 } | 1527 } |
1528 | 1528 |
1529 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac
kInfo<void>& info) | 1529 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac
kInfo<void>& info) |
1530 { | 1530 { |
1531 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1531 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1532 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1532 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
1533 if (contextData && contextData->activityLogger()) { | 1533 if (contextData && contextData->activityLogger()) { |
1534 v8::Handle<v8::Value> loggerArg[] = { jsValue }; | 1534 v8::Handle<v8::Value> loggerArg[] = { jsValue }; |
1535 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForAllWorldsLongAttribute", 1, &loggerArg[0], "Setter"); | 1535 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForAllWorldsLongAttribute", 1, &loggerArg[0], "Setter"); |
1536 } | 1536 } |
1537 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAt
tributeSetter(jsValue, info); | 1537 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAt
tributeSetter(jsValue, info); |
1538 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1538 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1539 } | 1539 } |
1540 | 1540 |
1541 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 1541 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
1542 { | 1542 { |
1543 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1543 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1544 v8SetReturnValueInt(info, imp->activityLoggingGetterForAllWorldsLongAttribut
e()); | 1544 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu
te()); |
1545 } | 1545 } |
1546 | 1546 |
1547 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1547 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1548 { | 1548 { |
1549 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1549 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1550 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1550 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
1551 if (contextData && contextData->activityLogger()) | 1551 if (contextData && contextData->activityLogger()) |
1552 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erForAllWorldsLongAttribute", 0, 0, "Getter"); | 1552 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erForAllWorldsLongAttribute", 0, 0, "Getter"); |
1553 TestObjectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAt
tributeGetter(info); | 1553 TestObjectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAt
tributeGetter(info); |
1554 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1554 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1555 } | 1555 } |
1556 | 1556 |
1557 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1557 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1558 { | 1558 { |
1559 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObjectPython", info.Holder(), info.GetIs
olate()); | 1559 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObjectPython", info.Holder(), info.GetIs
olate()); |
1560 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1560 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1561 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 1561 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
1562 imp->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); | 1562 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); |
1563 } | 1563 } |
1564 | 1564 |
1565 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac
kInfo<void>& info) | 1565 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac
kInfo<void>& info) |
1566 { | 1566 { |
1567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1568 TestObjectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAt
tributeSetter(jsValue, info); | 1568 TestObjectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAt
tributeSetter(jsValue, info); |
1569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1570 } | 1570 } |
1571 | 1571 |
1572 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 1572 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) |
1573 { | 1573 { |
1574 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1574 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1575 v8SetReturnValueInt(info, imp->activityLoggingSetterForAllWorldsLongAttribut
e()); | 1575 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu
te()); |
1576 } | 1576 } |
1577 | 1577 |
1578 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1578 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1579 { | 1579 { |
1580 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1580 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1581 TestObjectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAt
tributeGetter(info); | 1581 TestObjectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAt
tributeGetter(info); |
1582 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1582 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1583 } | 1583 } |
1584 | 1584 |
1585 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1585 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1586 { | 1586 { |
1587 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObjectPython", info.Holder(), info.GetIs
olate()); | 1587 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObjectPython", info.Holder(), info.GetIs
olate()); |
1588 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1588 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1589 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 1589 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
1590 imp->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); | 1590 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); |
1591 } | 1591 } |
1592 | 1592 |
1593 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac
kInfo<void>& info) | 1593 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac
kInfo<void>& info) |
1594 { | 1594 { |
1595 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1595 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1596 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 1596 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
1597 if (contextData && contextData->activityLogger()) { | 1597 if (contextData && contextData->activityLogger()) { |
1598 v8::Handle<v8::Value> loggerArg[] = { jsValue }; | 1598 v8::Handle<v8::Value> loggerArg[] = { jsValue }; |
1599 contextData->activityLogger()->log("TestObjectPython.activityLoggingSett
erForAllWorldsLongAttribute", 1, &loggerArg[0], "Setter"); | 1599 contextData->activityLogger()->log("TestObjectPython.activityLoggingSett
erForAllWorldsLongAttribute", 1, &loggerArg[0], "Setter"); |
1600 } | 1600 } |
1601 TestObjectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAt
tributeSetter(jsValue, info); | 1601 TestObjectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAt
tributeSetter(jsValue, info); |
1602 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1602 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1603 } | 1603 } |
1604 | 1604 |
1605 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 1605 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
1606 { | 1606 { |
1607 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac
hedAttributeAnyAttribute"); | 1607 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac
hedAttributeAnyAttribute"); |
1608 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1608 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1609 if (!imp->isValueDirty()) { | 1609 if (!impl->isValueDirty()) { |
1610 v8::Handle<v8::Value> jsValue = V8HiddenValue::getHiddenValue(info.GetIs
olate(), info.Holder(), propertyName); | 1610 v8::Handle<v8::Value> jsValue = V8HiddenValue::getHiddenValue(info.GetIs
olate(), info.Holder(), propertyName); |
1611 if (!jsValue.IsEmpty()) { | 1611 if (!jsValue.IsEmpty()) { |
1612 v8SetReturnValue(info, jsValue); | 1612 v8SetReturnValue(info, jsValue); |
1613 return; | 1613 return; |
1614 } | 1614 } |
1615 } | 1615 } |
1616 ScriptValue jsValue = imp->cachedAttributeAnyAttribute(); | 1616 ScriptValue jsValue = impl->cachedAttributeAnyAttribute(); |
1617 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), propertyName
, jsValue.v8Value()); | 1617 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), propertyName
, jsValue.v8Value()); |
1618 v8SetReturnValue(info, jsValue.v8Value()); | 1618 v8SetReturnValue(info, jsValue.v8Value()); |
1619 } | 1619 } |
1620 | 1620 |
1621 static void cachedAttributeAnyAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1621 static void cachedAttributeAnyAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1622 { | 1622 { |
1623 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1623 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1624 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeGetter(info)
; | 1624 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeGetter(info)
; |
1625 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1625 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1626 } | 1626 } |
1627 | 1627 |
1628 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) | 1628 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) |
1629 { | 1629 { |
1630 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1630 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1631 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); | 1631 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); |
1632 imp->setCachedAttributeAnyAttribute(cppValue); | 1632 impl->setCachedAttributeAnyAttribute(cppValue); |
1633 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), info.Holder(), v8AtomicS
tring(info.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cach
ed value. | 1633 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), info.Holder(), v8AtomicS
tring(info.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cach
ed value. |
1634 } | 1634 } |
1635 | 1635 |
1636 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1636 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1637 { | 1637 { |
1638 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1638 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1639 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeSetter(jsVal
ue, info); | 1639 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeSetter(jsVal
ue, info); |
1640 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1640 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1641 } | 1641 } |
1642 | 1642 |
1643 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) | 1643 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) |
1644 { | 1644 { |
1645 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1645 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1646 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 1646 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
1647 v8SetReturnValue(info, imp->callWithExecutionContextAnyAttribute(scriptConte
xt).v8Value()); | 1647 v8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(scriptCont
ext).v8Value()); |
1648 } | 1648 } |
1649 | 1649 |
1650 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1650 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1651 { | 1651 { |
1652 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1652 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1653 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeGet
ter(info); | 1653 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeGet
ter(info); |
1654 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1654 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1655 } | 1655 } |
1656 | 1656 |
1657 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va
lue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1657 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va
lue> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1658 { | 1658 { |
1659 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1659 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1660 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); | 1660 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); |
1661 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 1661 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
1662 imp->setCallWithExecutionContextAnyAttribute(scriptContext, cppValue); | 1662 impl->setCallWithExecutionContextAnyAttribute(scriptContext, cppValue); |
1663 } | 1663 } |
1664 | 1664 |
1665 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) | 1665 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) |
1666 { | 1666 { |
1667 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1667 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1668 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeSet
ter(jsValue, info); | 1668 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeSet
ter(jsValue, info); |
1669 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1669 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1670 } | 1670 } |
1671 | 1671 |
1672 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) | 1672 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) |
1673 { | 1673 { |
1674 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1674 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1675 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF
orNodeReadonlyDocumentAttribute", "TestObjectPython", info.Holder(), info.GetIso
late()); | 1675 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF
orNodeReadonlyDocumentAttribute", "TestObjectPython", info.Holder(), info.GetIso
late()); |
1676 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), imp->checkS
ecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { | 1676 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check
SecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { |
1677 v8SetReturnValueNull(info); | 1677 v8SetReturnValueNull(info); |
1678 exceptionState.throwIfNeeded(); | 1678 exceptionState.throwIfNeeded(); |
1679 return; | 1679 return; |
1680 } | 1680 } |
1681 v8SetReturnValueFast(info, WTF::getPtr(imp->checkSecurityForNodeReadonlyDocu
mentAttribute()), imp); | 1681 v8SetReturnValueFast(info, WTF::getPtr(impl->checkSecurityForNodeReadonlyDoc
umentAttribute()), impl); |
1682 } | 1682 } |
1683 | 1683 |
1684 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1684 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1685 { | 1685 { |
1686 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1686 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1687 TestObjectPythonV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAtt
ributeGetter(info); | 1687 TestObjectPythonV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAtt
ributeGetter(info); |
1688 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1688 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1689 } | 1689 } |
1690 | 1690 |
1691 #if ENABLE(CONDITION) | 1691 #if ENABLE(CONDITION) |
1692 static void conditionalLongAttributeAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) | 1692 static void conditionalLongAttributeAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) |
1693 { | 1693 { |
1694 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1694 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1695 v8SetReturnValueInt(info, imp->conditionalLongAttribute()); | 1695 v8SetReturnValueInt(info, impl->conditionalLongAttribute()); |
1696 } | 1696 } |
1697 #endif // ENABLE(CONDITION) | 1697 #endif // ENABLE(CONDITION) |
1698 | 1698 |
1699 #if ENABLE(CONDITION) | 1699 #if ENABLE(CONDITION) |
1700 static void conditionalLongAttributeAttributeGetterCallback(v8::Local<v8::String
>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1700 static void conditionalLongAttributeAttributeGetterCallback(v8::Local<v8::String
>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1701 { | 1701 { |
1702 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1702 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1703 TestObjectPythonV8Internal::conditionalLongAttributeAttributeGetter(info); | 1703 TestObjectPythonV8Internal::conditionalLongAttributeAttributeGetter(info); |
1704 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1704 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1705 } | 1705 } |
1706 #endif // ENABLE(CONDITION) | 1706 #endif // ENABLE(CONDITION) |
1707 | 1707 |
1708 #if ENABLE(CONDITION) | 1708 #if ENABLE(CONDITION) |
1709 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue
, const v8::PropertyCallbackInfo<void>& info) | 1709 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue
, const v8::PropertyCallbackInfo<void>& info) |
1710 { | 1710 { |
1711 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon
gAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 1711 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon
gAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
1712 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1712 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1713 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 1713 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
1714 imp->setConditionalLongAttribute(cppValue); | 1714 impl->setConditionalLongAttribute(cppValue); |
1715 } | 1715 } |
1716 #endif // ENABLE(CONDITION) | 1716 #endif // ENABLE(CONDITION) |
1717 | 1717 |
1718 #if ENABLE(CONDITION) | 1718 #if ENABLE(CONDITION) |
1719 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1719 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1720 { | 1720 { |
1721 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1721 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1722 TestObjectPythonV8Internal::conditionalLongAttributeAttributeSetter(jsValue,
info); | 1722 TestObjectPythonV8Internal::conditionalLongAttributeAttributeSetter(jsValue,
info); |
1723 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1723 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1724 } | 1724 } |
1725 #endif // ENABLE(CONDITION) | 1725 #endif // ENABLE(CONDITION) |
1726 | 1726 |
1727 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1727 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1728 static void conditionalAndLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 1728 static void conditionalAndLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
1729 { | 1729 { |
1730 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1730 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1731 v8SetReturnValueInt(info, imp->conditionalAndLongAttribute()); | 1731 v8SetReturnValueInt(info, impl->conditionalAndLongAttribute()); |
1732 } | 1732 } |
1733 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1733 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1734 | 1734 |
1735 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1735 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1736 static void conditionalAndLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1736 static void conditionalAndLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1737 { | 1737 { |
1738 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1738 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1739 TestObjectPythonV8Internal::conditionalAndLongAttributeAttributeGetter(info)
; | 1739 TestObjectPythonV8Internal::conditionalAndLongAttributeAttributeGetter(info)
; |
1740 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1740 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1741 } | 1741 } |
1742 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1742 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1743 | 1743 |
1744 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1744 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1745 static void conditionalAndLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) | 1745 static void conditionalAndLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) |
1746 { | 1746 { |
1747 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAnd
LongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 1747 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAnd
LongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
1748 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1748 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1749 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 1749 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
1750 imp->setConditionalAndLongAttribute(cppValue); | 1750 impl->setConditionalAndLongAttribute(cppValue); |
1751 } | 1751 } |
1752 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1752 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1753 | 1753 |
1754 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1754 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1755 static void conditionalAndLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1755 static void conditionalAndLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1756 { | 1756 { |
1757 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1757 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1758 TestObjectPythonV8Internal::conditionalAndLongAttributeAttributeSetter(jsVal
ue, info); | 1758 TestObjectPythonV8Internal::conditionalAndLongAttributeAttributeSetter(jsVal
ue, info); |
1759 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1759 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1760 } | 1760 } |
1761 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 1761 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
1762 | 1762 |
1763 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1763 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1764 static void conditionalOrLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) | 1764 static void conditionalOrLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) |
1765 { | 1765 { |
1766 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1766 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1767 v8SetReturnValueInt(info, imp->conditionalOrLongAttribute()); | 1767 v8SetReturnValueInt(info, impl->conditionalOrLongAttribute()); |
1768 } | 1768 } |
1769 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1769 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1770 | 1770 |
1771 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1771 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1772 static void conditionalOrLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1772 static void conditionalOrLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1773 { | 1773 { |
1774 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1774 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1775 TestObjectPythonV8Internal::conditionalOrLongAttributeAttributeGetter(info); | 1775 TestObjectPythonV8Internal::conditionalOrLongAttributeAttributeGetter(info); |
1776 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1776 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1777 } | 1777 } |
1778 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1778 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1779 | 1779 |
1780 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1780 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1781 static void conditionalOrLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal
ue, const v8::PropertyCallbackInfo<void>& info) | 1781 static void conditionalOrLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal
ue, const v8::PropertyCallbackInfo<void>& info) |
1782 { | 1782 { |
1783 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalOrL
ongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 1783 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalOrL
ongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
1784 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1784 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1785 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 1785 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
1786 imp->setConditionalOrLongAttribute(cppValue); | 1786 impl->setConditionalOrLongAttribute(cppValue); |
1787 } | 1787 } |
1788 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1788 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1789 | 1789 |
1790 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) | 1790 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) |
1791 static void conditionalOrLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1791 static void conditionalOrLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1792 { | 1792 { |
1793 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1793 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1794 TestObjectPythonV8Internal::conditionalOrLongAttributeAttributeSetter(jsValu
e, info); | 1794 TestObjectPythonV8Internal::conditionalOrLongAttributeAttributeSetter(jsValu
e, info); |
1795 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1795 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1796 } | 1796 } |
(...skipping 16 matching lines...) Expand all Loading... |
1813 static void customGetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1813 static void customGetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1814 { | 1814 { |
1815 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1815 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1816 V8TestObjectPython::customGetterLongAttributeAttributeGetterCustom(info); | 1816 V8TestObjectPython::customGetterLongAttributeAttributeGetterCustom(info); |
1817 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1817 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1818 } | 1818 } |
1819 | 1819 |
1820 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 1820 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
1821 { | 1821 { |
1822 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo
ngAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 1822 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo
ngAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
1823 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1823 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1824 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 1824 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
1825 imp->setCustomGetterLongAttribute(cppValue); | 1825 impl->setCustomGetterLongAttribute(cppValue); |
1826 } | 1826 } |
1827 | 1827 |
1828 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1828 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1829 { | 1829 { |
1830 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1830 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1831 TestObjectPythonV8Internal::customGetterLongAttributeAttributeSetter(jsValue
, info); | 1831 TestObjectPythonV8Internal::customGetterLongAttributeAttributeSetter(jsValue
, info); |
1832 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1832 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1833 } | 1833 } |
1834 | 1834 |
1835 static void customGetterReadonlyObjectAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1835 static void customGetterReadonlyObjectAttributeAttributeGetterCallback(v8::Local
<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1836 { | 1836 { |
1837 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1837 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1838 V8TestObjectPython::customGetterReadonlyObjectAttributeAttributeGetterCustom
(info); | 1838 V8TestObjectPython::customGetterReadonlyObjectAttributeAttributeGetterCustom
(info); |
1839 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1839 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1840 } | 1840 } |
1841 | 1841 |
1842 static void customSetterLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 1842 static void customSetterLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
1843 { | 1843 { |
1844 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1844 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1845 v8SetReturnValueInt(info, imp->customSetterLongAttribute()); | 1845 v8SetReturnValueInt(info, impl->customSetterLongAttribute()); |
1846 } | 1846 } |
1847 | 1847 |
1848 static void customSetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1848 static void customSetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1849 { | 1849 { |
1850 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1850 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1851 TestObjectPythonV8Internal::customSetterLongAttributeAttributeGetter(info); | 1851 TestObjectPythonV8Internal::customSetterLongAttributeAttributeGetter(info); |
1852 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1852 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1853 } | 1853 } |
1854 | 1854 |
1855 static void customSetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1855 static void customSetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
(...skipping 16 matching lines...) Expand all Loading... |
1872 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1872 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1873 { | 1873 { |
1874 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1874 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1875 V8TestObjectPython::customLongAttributeAttributeSetterCustom(jsValue, info); | 1875 V8TestObjectPython::customLongAttributeAttributeSetterCustom(jsValue, info); |
1876 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1876 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1877 } | 1877 } |
1878 #endif // ENABLE(CONDITION) | 1878 #endif // ENABLE(CONDITION) |
1879 | 1879 |
1880 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 1880 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
1881 { | 1881 { |
1882 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1882 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1883 v8SetReturnValueInt(info, imp->customElementsCallbacksReadonlyLongAttribute(
)); | 1883 v8SetReturnValueInt(info, impl->customElementsCallbacksReadonlyLongAttribute
()); |
1884 } | 1884 } |
1885 | 1885 |
1886 static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1886 static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1887 { | 1887 { |
1888 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1888 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1889 TestObjectPythonV8Internal::customElementsCallbacksReadonlyLongAttributeAttr
ibuteGetter(info); | 1889 TestObjectPythonV8Internal::customElementsCallbacksReadonlyLongAttributeAttr
ibuteGetter(info); |
1890 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1890 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1891 } | 1891 } |
1892 | 1892 |
1893 static void deprecatedLongAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 1893 static void deprecatedLongAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
1894 { | 1894 { |
1895 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1895 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1896 v8SetReturnValueInt(info, imp->deprecatedLongAttribute()); | 1896 v8SetReturnValueInt(info, impl->deprecatedLongAttribute()); |
1897 } | 1897 } |
1898 | 1898 |
1899 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 1899 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
1900 { | 1900 { |
1901 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1901 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1902 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::LongAttribute); | 1902 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::LongAttribute); |
1903 TestObjectPythonV8Internal::deprecatedLongAttributeAttributeGetter(info); | 1903 TestObjectPythonV8Internal::deprecatedLongAttributeAttributeGetter(info); |
1904 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1904 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1905 } | 1905 } |
1906 | 1906 |
1907 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 1907 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
1908 { | 1908 { |
1909 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong
Attribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 1909 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong
Attribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
1910 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1910 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1911 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 1911 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
1912 imp->setDeprecatedLongAttribute(cppValue); | 1912 impl->setDeprecatedLongAttribute(cppValue); |
1913 } | 1913 } |
1914 | 1914 |
1915 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1915 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1916 { | 1916 { |
1917 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1917 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1918 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::LongAttribute); | 1918 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::LongAttribute); |
1919 TestObjectPythonV8Internal::deprecatedLongAttributeAttributeSetter(jsValue,
info); | 1919 TestObjectPythonV8Internal::deprecatedLongAttributeAttributeSetter(jsValue,
info); |
1920 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1920 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1921 } | 1921 } |
1922 | 1922 |
1923 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 1923 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
1924 { | 1924 { |
1925 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1925 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1926 v8SetReturnValueInt(info, imp->enforceRangeLongAttribute()); | 1926 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute()); |
1927 } | 1927 } |
1928 | 1928 |
1929 static void enforceRangeLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1929 static void enforceRangeLongAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1930 { | 1930 { |
1931 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1931 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1932 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeGetter(info); | 1932 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeGetter(info); |
1933 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1933 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1934 } | 1934 } |
1935 | 1935 |
1936 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 1936 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
1937 { | 1937 { |
1938 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo
ngAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 1938 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo
ngAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
1939 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1939 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1940 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, EnforceRange, exce
ptionState), exceptionState); | 1940 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, EnforceRange, exce
ptionState), exceptionState); |
1941 imp->setEnforceRangeLongAttribute(cppValue); | 1941 impl->setEnforceRangeLongAttribute(cppValue); |
1942 } | 1942 } |
1943 | 1943 |
1944 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 1944 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
1945 { | 1945 { |
1946 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1946 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1947 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeSetter(jsValue
, info); | 1947 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeSetter(jsValue
, info); |
1948 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1948 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1949 } | 1949 } |
1950 | 1950 |
1951 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) | 1951 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) |
1952 { | 1952 { |
1953 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1953 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1954 v8SetReturnValueInt(info, imp->exposeJSAccessorsLongAttribute()); | 1954 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); |
1955 } | 1955 } |
1956 | 1956 |
1957 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 1957 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
1958 { | 1958 { |
1959 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1959 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1960 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(in
fo); | 1960 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(in
fo); |
1961 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1961 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1962 } | 1962 } |
1963 | 1963 |
1964 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> j
sValue, const v8::FunctionCallbackInfo<v8::Value>& info) | 1964 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> j
sValue, const v8::FunctionCallbackInfo<v8::Value>& info) |
1965 { | 1965 { |
1966 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess
orsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 1966 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess
orsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
1967 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1967 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1968 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 1968 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
1969 imp->setExposeJSAccessorsLongAttribute(cppValue); | 1969 impl->setExposeJSAccessorsLongAttribute(cppValue); |
1970 } | 1970 } |
1971 | 1971 |
1972 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 1972 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
1973 { | 1973 { |
1974 v8::Local<v8::Value> jsValue = info[0]; | 1974 v8::Local<v8::Value> jsValue = info[0]; |
1975 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 1975 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
1976 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(js
Value, info); | 1976 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(js
Value, info); |
1977 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1977 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1978 } | 1978 } |
1979 | 1979 |
1980 static void implementedAsLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) | 1980 static void implementedAsLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) |
1981 { | 1981 { |
1982 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1982 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1983 v8SetReturnValueInt(info, imp->implementedAsName()); | 1983 v8SetReturnValueInt(info, impl->implementedAsName()); |
1984 } | 1984 } |
1985 | 1985 |
1986 static void implementedAsLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1986 static void implementedAsLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1987 { | 1987 { |
1988 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 1988 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
1989 TestObjectPythonV8Internal::implementedAsLongAttributeAttributeGetter(info); | 1989 TestObjectPythonV8Internal::implementedAsLongAttributeAttributeGetter(info); |
1990 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1990 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1991 } | 1991 } |
1992 | 1992 |
1993 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal
ue, const v8::PropertyCallbackInfo<void>& info) | 1993 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal
ue, const v8::PropertyCallbackInfo<void>& info) |
1994 { | 1994 { |
1995 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL
ongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 1995 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL
ongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
1996 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 1996 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
1997 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 1997 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
1998 imp->setImplementedAsName(cppValue); | 1998 impl->setImplementedAsName(cppValue); |
1999 } | 1999 } |
2000 | 2000 |
2001 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2001 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2002 { | 2002 { |
2003 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2003 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2004 TestObjectPythonV8Internal::implementedAsLongAttributeAttributeSetter(jsValu
e, info); | 2004 TestObjectPythonV8Internal::implementedAsLongAttributeAttributeSetter(jsValu
e, info); |
2005 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2005 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2006 } | 2006 } |
2007 | 2007 |
2008 static void customImplementedAsLongAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2008 static void customImplementedAsLongAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
(...skipping 13 matching lines...) Expand all Loading... |
2022 static void customGetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2022 static void customGetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2023 { | 2023 { |
2024 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2024 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2025 V8TestObjectPython::customGetterImplementedAsLongAttributeAttributeGetterCus
tom(info); | 2025 V8TestObjectPython::customGetterImplementedAsLongAttributeAttributeGetterCus
tom(info); |
2026 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2026 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2027 } | 2027 } |
2028 | 2028 |
2029 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8::
Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2029 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8::
Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2030 { | 2030 { |
2031 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm
plementedAsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate())
; | 2031 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm
plementedAsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate())
; |
2032 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2032 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2033 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2033 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2034 imp->setImplementedAsNameWithCustomGetter(cppValue); | 2034 impl->setImplementedAsNameWithCustomGetter(cppValue); |
2035 } | 2035 } |
2036 | 2036 |
2037 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo
id>& info) | 2037 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo
id>& info) |
2038 { | 2038 { |
2039 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2039 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2040 TestObjectPythonV8Internal::customGetterImplementedAsLongAttributeAttributeS
etter(jsValue, info); | 2040 TestObjectPythonV8Internal::customGetterImplementedAsLongAttributeAttributeS
etter(jsValue, info); |
2041 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2041 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2042 } | 2042 } |
2043 | 2043 |
2044 static void customSetterImplementedAsLongAttributeAttributeGetter(const v8::Prop
ertyCallbackInfo<v8::Value>& info) | 2044 static void customSetterImplementedAsLongAttributeAttributeGetter(const v8::Prop
ertyCallbackInfo<v8::Value>& info) |
2045 { | 2045 { |
2046 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2046 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2047 v8SetReturnValueInt(info, imp->implementedAsNameWithCustomGetter()); | 2047 v8SetReturnValueInt(info, impl->implementedAsNameWithCustomGetter()); |
2048 } | 2048 } |
2049 | 2049 |
2050 static void customSetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2050 static void customSetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2051 { | 2051 { |
2052 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2052 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2053 TestObjectPythonV8Internal::customSetterImplementedAsLongAttributeAttributeG
etter(info); | 2053 TestObjectPythonV8Internal::customSetterImplementedAsLongAttributeAttributeG
etter(info); |
2054 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2054 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2055 } | 2055 } |
2056 | 2056 |
2057 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo
id>& info) | 2057 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo
id>& info) |
2058 { | 2058 { |
2059 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2059 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2060 V8TestObjectPython::customSetterImplementedAsLongAttributeAttributeSetterCus
tom(jsValue, info); | 2060 V8TestObjectPython::customSetterImplementedAsLongAttributeAttributeSetterCus
tom(jsValue, info); |
2061 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2061 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2062 } | 2062 } |
2063 | 2063 |
2064 static void measureAsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 2064 static void measureAsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
2065 { | 2065 { |
2066 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2066 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2067 v8SetReturnValueInt(info, imp->measureAsLongAttribute()); | 2067 v8SetReturnValueInt(info, impl->measureAsLongAttribute()); |
2068 } | 2068 } |
2069 | 2069 |
2070 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 2070 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
2071 { | 2071 { |
2072 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2072 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2073 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); | 2073 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); |
2074 TestObjectPythonV8Internal::measureAsLongAttributeAttributeGetter(info); | 2074 TestObjectPythonV8Internal::measureAsLongAttributeAttributeGetter(info); |
2075 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2075 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2076 } | 2076 } |
2077 | 2077 |
2078 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 2078 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
2079 { | 2079 { |
2080 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA
ttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 2080 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA
ttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
2081 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2081 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2082 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2082 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2083 imp->setMeasureAsLongAttribute(cppValue); | 2083 impl->setMeasureAsLongAttribute(cppValue); |
2084 } | 2084 } |
2085 | 2085 |
2086 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2086 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2087 { | 2087 { |
2088 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2088 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2089 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); | 2089 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); |
2090 TestObjectPythonV8Internal::measureAsLongAttributeAttributeSetter(jsValue, i
nfo); | 2090 TestObjectPythonV8Internal::measureAsLongAttributeAttributeSetter(jsValue, i
nfo); |
2091 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2091 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2092 } | 2092 } |
2093 | 2093 |
2094 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) | 2094 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) |
2095 { | 2095 { |
2096 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2096 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2097 v8SetReturnValueInt(info, imp->notEnumerableLongAttribute()); | 2097 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute()); |
2098 } | 2098 } |
2099 | 2099 |
2100 static void notEnumerableLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2100 static void notEnumerableLongAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2101 { | 2101 { |
2102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2103 TestObjectPythonV8Internal::notEnumerableLongAttributeAttributeGetter(info); | 2103 TestObjectPythonV8Internal::notEnumerableLongAttributeAttributeGetter(info); |
2104 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2104 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2105 } | 2105 } |
2106 | 2106 |
2107 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal
ue, const v8::PropertyCallbackInfo<void>& info) | 2107 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal
ue, const v8::PropertyCallbackInfo<void>& info) |
2108 { | 2108 { |
2109 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL
ongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 2109 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL
ongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
2110 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2110 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2111 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2111 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2112 imp->setNotEnumerableLongAttribute(cppValue); | 2112 impl->setNotEnumerableLongAttribute(cppValue); |
2113 } | 2113 } |
2114 | 2114 |
2115 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2115 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2116 { | 2116 { |
2117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2118 TestObjectPythonV8Internal::notEnumerableLongAttributeAttributeSetter(jsValu
e, info); | 2118 TestObjectPythonV8Internal::notEnumerableLongAttributeAttributeSetter(jsValu
e, info); |
2119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2120 } | 2120 } |
2121 | 2121 |
2122 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 2122 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
2123 { | 2123 { |
2124 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2124 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2125 v8SetReturnValueInt(info, imp->perContextEnabledLongAttribute()); | 2125 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); |
2126 } | 2126 } |
2127 | 2127 |
2128 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2128 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::
String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2129 { | 2129 { |
2130 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2130 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2131 TestObjectPythonV8Internal::perContextEnabledLongAttributeAttributeGetter(in
fo); | 2131 TestObjectPythonV8Internal::perContextEnabledLongAttributeAttributeGetter(in
fo); |
2132 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2132 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2133 } | 2133 } |
2134 | 2134 |
2135 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) | 2135 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) |
2136 { | 2136 { |
2137 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 2137 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
2138 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2138 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2139 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2139 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2140 imp->setPerContextEnabledLongAttribute(cppValue); | 2140 impl->setPerContextEnabledLongAttribute(cppValue); |
2141 } | 2141 } |
2142 | 2142 |
2143 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf
o) | 2143 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::
String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf
o) |
2144 { | 2144 { |
2145 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2145 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2146 TestObjectPythonV8Internal::perContextEnabledLongAttributeAttributeSetter(js
Value, info); | 2146 TestObjectPythonV8Internal::perContextEnabledLongAttributeAttributeSetter(js
Value, info); |
2147 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2147 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2148 } | 2148 } |
2149 | 2149 |
2150 static void perWorldBindingsLongAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 2150 static void perWorldBindingsLongAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
2151 { | 2151 { |
2152 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2152 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2153 v8SetReturnValueInt(info, imp->perWorldBindingsLongAttribute()); | 2153 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute()); |
2154 } | 2154 } |
2155 | 2155 |
2156 static void perWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2156 static void perWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2157 { | 2157 { |
2158 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2158 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2159 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeGetter(inf
o); | 2159 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeGetter(inf
o); |
2160 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2160 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2161 } | 2161 } |
2162 | 2162 |
2163 static void perWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) | 2163 static void perWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) |
2164 { | 2164 { |
2165 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin
gsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 2165 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin
gsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
2166 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2166 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2167 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2167 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2168 imp->setPerWorldBindingsLongAttribute(cppValue); | 2168 impl->setPerWorldBindingsLongAttribute(cppValue); |
2169 } | 2169 } |
2170 | 2170 |
2171 static void perWorldBindingsLongAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) | 2171 static void perWorldBindingsLongAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) |
2172 { | 2172 { |
2173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2174 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeSetter(jsV
alue, info); | 2174 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeSetter(jsV
alue, info); |
2175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2176 } | 2176 } |
2177 | 2177 |
2178 static void perWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::P
ropertyCallbackInfo<v8::Value>& info) | 2178 static void perWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::P
ropertyCallbackInfo<v8::Value>& info) |
2179 { | 2179 { |
2180 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2180 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2181 v8SetReturnValueInt(info, imp->perWorldBindingsLongAttribute()); | 2181 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute()); |
2182 } | 2182 } |
2183 | 2183 |
2184 static void perWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(v8:
:Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2184 static void perWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(v8:
:Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2185 { | 2185 { |
2186 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2186 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2187 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeGetterForM
ainWorld(info); | 2187 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeGetterForM
ainWorld(info); |
2188 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2188 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2189 } | 2189 } |
2190 | 2190 |
2191 static void perWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v
8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2191 static void perWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v
8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2192 { | 2192 { |
2193 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin
gsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 2193 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin
gsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
2194 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2194 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2195 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2195 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2196 imp->setPerWorldBindingsLongAttribute(cppValue); | 2196 impl->setPerWorldBindingsLongAttribute(cppValue); |
2197 } | 2197 } |
2198 | 2198 |
2199 static void perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld(v8:
:Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo
<void>& info) | 2199 static void perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld(v8:
:Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo
<void>& info) |
2200 { | 2200 { |
2201 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2201 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2202 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeSetterForM
ainWorld(jsValue, info); | 2202 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeSetterForM
ainWorld(jsValue, info); |
2203 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2203 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2204 } | 2204 } |
2205 | 2205 |
2206 static void perWorldBindingsReadonlyLongAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 2206 static void perWorldBindingsReadonlyLongAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
2207 { | 2207 { |
2208 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2208 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2209 v8SetReturnValueInt(info, imp->perWorldBindingsReadonlyLongAttribute()); | 2209 v8SetReturnValueInt(info, impl->perWorldBindingsReadonlyLongAttribute()); |
2210 } | 2210 } |
2211 | 2211 |
2212 static void perWorldBindingsReadonlyLongAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2212 static void perWorldBindingsReadonlyLongAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2213 { | 2213 { |
2214 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2214 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2215 TestObjectPythonV8Internal::perWorldBindingsReadonlyLongAttributeAttributeGe
tter(info); | 2215 TestObjectPythonV8Internal::perWorldBindingsReadonlyLongAttributeAttributeGe
tter(info); |
2216 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2216 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2217 } | 2217 } |
2218 | 2218 |
2219 static void perWorldBindingsReadonlyLongAttributeAttributeGetterForMainWorld(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 2219 static void perWorldBindingsReadonlyLongAttributeAttributeGetterForMainWorld(con
st v8::PropertyCallbackInfo<v8::Value>& info) |
2220 { | 2220 { |
2221 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2221 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2222 v8SetReturnValueInt(info, imp->perWorldBindingsReadonlyLongAttribute()); | 2222 v8SetReturnValueInt(info, impl->perWorldBindingsReadonlyLongAttribute()); |
2223 } | 2223 } |
2224 | 2224 |
2225 static void perWorldBindingsReadonlyLongAttributeAttributeGetterCallbackForMainW
orld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2225 static void perWorldBindingsReadonlyLongAttributeAttributeGetterCallbackForMainW
orld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2226 { | 2226 { |
2227 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2227 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2228 TestObjectPythonV8Internal::perWorldBindingsReadonlyLongAttributeAttributeGe
tterForMainWorld(info); | 2228 TestObjectPythonV8Internal::perWorldBindingsReadonlyLongAttributeAttributeGe
tterForMainWorld(info); |
2229 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2229 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2230 } | 2230 } |
2231 | 2231 |
2232 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 2232 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
2233 { | 2233 { |
2234 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2234 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2235 RefPtr<TestInterfaceEmpty> result(imp->perWorldBindingsReadonlyTestInterface
EmptyAttribute()); | 2235 RefPtr<TestInterfaceEmpty> result(impl->perWorldBindingsReadonlyTestInterfac
eEmptyAttribute()); |
2236 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) | 2236 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>(
info.GetReturnValue(), result.get())) |
2237 return; | 2237 return; |
2238 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 2238 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); |
2239 if (!wrapper.IsEmpty()) { | 2239 if (!wrapper.IsEmpty()) { |
2240 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute")
, wrapper); | 2240 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute")
, wrapper); |
2241 v8SetReturnValue(info, wrapper); | 2241 v8SetReturnValue(info, wrapper); |
2242 } | 2242 } |
2243 } | 2243 } |
2244 | 2244 |
2245 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2245 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2246 { | 2246 { |
2247 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2247 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2248 TestObjectPythonV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttrib
uteAttributeGetter(info); | 2248 TestObjectPythonV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttrib
uteAttributeGetter(info); |
2249 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2249 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2250 } | 2250 } |
2251 | 2251 |
2252 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo
rMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2252 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo
rMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2253 { | 2253 { |
2254 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2254 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2255 RefPtr<TestInterfaceEmpty> result(imp->perWorldBindingsReadonlyTestInterface
EmptyAttribute()); | 2255 RefPtr<TestInterfaceEmpty> result(impl->perWorldBindingsReadonlyTestInterfac
eEmptyAttribute()); |
2256 if (result && DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInte
rfaceEmpty>(info.GetReturnValue(), result.get())) | 2256 if (result && DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestInte
rfaceEmpty>(info.GetReturnValue(), result.get())) |
2257 return; | 2257 return; |
2258 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); | 2258 v8::Handle<v8::Value> wrapper = toV8(result.get(), info.Holder(), info.GetIs
olate()); |
2259 if (!wrapper.IsEmpty()) { | 2259 if (!wrapper.IsEmpty()) { |
2260 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute")
, wrapper); | 2260 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), v8Atomic
String(info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute")
, wrapper); |
2261 v8SetReturnValue(info, wrapper); | 2261 v8SetReturnValue(info, wrapper); |
2262 } | 2262 } |
2263 } | 2263 } |
2264 | 2264 |
2265 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 2265 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
2266 { | 2266 { |
2267 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2267 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2268 TestObjectPythonV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttrib
uteAttributeGetterForMainWorld(info); | 2268 TestObjectPythonV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttrib
uteAttributeGetterForMainWorld(info); |
2269 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2269 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2270 } | 2270 } |
2271 | 2271 |
2272 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 2272 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
2273 { | 2273 { |
2274 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2274 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2275 v8SetReturnValueInt(info, imp->activityLoggingAccessPerWorldBindingsLongAttr
ibute()); | 2275 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); |
2276 } | 2276 } |
2277 | 2277 |
2278 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2278 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2279 { | 2279 { |
2280 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2280 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2281 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2281 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2282 if (contextData && contextData->activityLogger()) | 2282 if (contextData && contextData->activityLogger()) |
2283 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2283 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
2284 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeGetter(info); | 2284 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeGetter(info); |
2285 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2285 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2286 } | 2286 } |
2287 | 2287 |
2288 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2288 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2289 { | 2289 { |
2290 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.G
etIsolate()); | 2290 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.G
etIsolate()); |
2291 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2291 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2292 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2292 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2293 imp->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2293 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2294 } | 2294 } |
2295 | 2295 |
2296 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCal
lbackInfo<void>& info) | 2296 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCal
lbackInfo<void>& info) |
2297 { | 2297 { |
2298 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2298 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2299 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2299 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2300 if (contextData && contextData->activityLogger()) { | 2300 if (contextData && contextData->activityLogger()) { |
2301 v8::Handle<v8::Value> loggerArg[] = { jsValue }; | 2301 v8::Handle<v8::Value> loggerArg[] = { jsValue }; |
2302 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); | 2302 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); |
2303 } | 2303 } |
2304 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeSetter(jsValue, info); | 2304 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeSetter(jsValue, info); |
2305 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2305 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2306 } | 2306 } |
2307 | 2307 |
2308 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2308 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2309 { | 2309 { |
2310 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2310 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2311 v8SetReturnValueInt(info, imp->activityLoggingAccessPerWorldBindingsLongAttr
ibute()); | 2311 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); |
2312 } | 2312 } |
2313 | 2313 |
2314 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 2314 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
2315 { | 2315 { |
2316 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2316 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2317 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2317 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2318 if (contextData && contextData->activityLogger()) | 2318 if (contextData && contextData->activityLogger()) |
2319 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2319 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
2320 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeGetterForMainWorld(info); | 2320 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeGetterForMainWorld(info); |
2321 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2321 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2322 } | 2322 } |
2323 | 2323 |
2324 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) | 2324 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) |
2325 { | 2325 { |
2326 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.G
etIsolate()); | 2326 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.G
etIsolate()); |
2327 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2327 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2328 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2328 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2329 imp->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 2329 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2330 } | 2330 } |
2331 | 2331 |
2332 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) | 2332 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) |
2333 { | 2333 { |
2334 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2334 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2335 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2335 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2336 if (contextData && contextData->activityLogger()) { | 2336 if (contextData && contextData->activityLogger()) { |
2337 v8::Handle<v8::Value> loggerArg[] = { jsValue }; | 2337 v8::Handle<v8::Value> loggerArg[] = { jsValue }; |
2338 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); | 2338 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); |
2339 } | 2339 } |
2340 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeSetterForMainWorld(jsValue, info); | 2340 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu
teAttributeSetterForMainWorld(jsValue, info); |
2341 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2341 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2342 } | 2342 } |
2343 | 2343 |
2344 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 2344 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
2345 { | 2345 { |
2346 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2346 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2347 v8SetReturnValueInt(info, imp->activityLoggingAccessForIsolatedWorldsPerWorl
dBindingsLongAttribute()); | 2347 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
2348 } | 2348 } |
2349 | 2349 |
2350 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) | 2350 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) |
2351 { | 2351 { |
2352 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2352 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2353 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2353 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2354 if (contextData && contextData->activityLogger()) | 2354 if (contextData && contextData->activityLogger()) |
2355 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2355 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
2356 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetter(info); | 2356 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetter(info); |
2357 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2357 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2358 } | 2358 } |
2359 | 2359 |
2360 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) | 2360 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) |
2361 { | 2361 { |
2362 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info
.Holder(), info.GetIsolate()); | 2362 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info
.Holder(), info.GetIsolate()); |
2363 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2363 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2364 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2364 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2365 imp->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute(
cppValue); | 2365 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2366 } | 2366 } |
2367 | 2367 |
2368 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) | 2368 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) |
2369 { | 2369 { |
2370 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2370 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2371 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2371 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2372 if (contextData && contextData->activityLogger()) { | 2372 if (contextData && contextData->activityLogger()) { |
2373 v8::Handle<v8::Value> loggerArg[] = { jsValue }; | 2373 v8::Handle<v8::Value> loggerArg[] = { jsValue }; |
2374 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); | 2374 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); |
2375 } | 2375 } |
2376 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetter(jsValue, info); | 2376 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetter(jsValue, info); |
2377 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2377 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2378 } | 2378 } |
2379 | 2379 |
2380 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2380 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2381 { | 2381 { |
2382 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2382 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2383 v8SetReturnValueInt(info, imp->activityLoggingAccessForIsolatedWorldsPerWorl
dBindingsLongAttribute()); | 2383 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
2384 } | 2384 } |
2385 | 2385 |
2386 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) | 2386 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) |
2387 { | 2387 { |
2388 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2388 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2389 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetterForMainWorld(info); | 2389 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetterForMainWorld(info); |
2390 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2390 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2391 } | 2391 } |
2392 | 2392 |
2393 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallb
ackInfo<void>& info) | 2393 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallb
ackInfo<void>& info) |
2394 { | 2394 { |
2395 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info
.Holder(), info.GetIsolate()); | 2395 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info
.Holder(), info.GetIsolate()); |
2396 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2396 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2397 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2397 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2398 imp->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute(
cppValue); | 2398 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2399 } | 2399 } |
2400 | 2400 |
2401 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) | 2401 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) |
2402 { | 2402 { |
2403 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2403 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2404 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info); | 2404 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info); |
2405 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2405 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2406 } | 2406 } |
2407 | 2407 |
2408 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 2408 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
2409 { | 2409 { |
2410 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2410 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2411 v8SetReturnValueInt(info, imp->activityLoggingGetterPerWorldBindingsLongAttr
ibute()); | 2411 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); |
2412 } | 2412 } |
2413 | 2413 |
2414 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2414 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2415 { | 2415 { |
2416 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2416 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2417 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2417 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2418 if (contextData && contextData->activityLogger()) | 2418 if (contextData && contextData->activityLogger()) |
2419 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2419 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
2420 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeGetter(info); | 2420 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeGetter(info); |
2421 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2421 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2422 } | 2422 } |
2423 | 2423 |
2424 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2424 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2425 { | 2425 { |
2426 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.G
etIsolate()); | 2426 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.G
etIsolate()); |
2427 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2427 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2428 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2428 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2429 imp->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 2429 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
2430 } | 2430 } |
2431 | 2431 |
2432 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCal
lbackInfo<void>& info) | 2432 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCal
lbackInfo<void>& info) |
2433 { | 2433 { |
2434 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2434 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2435 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeSetter(jsValue, info); | 2435 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeSetter(jsValue, info); |
2436 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2436 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2437 } | 2437 } |
2438 | 2438 |
2439 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2439 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2440 { | 2440 { |
2441 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2441 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2442 v8SetReturnValueInt(info, imp->activityLoggingGetterPerWorldBindingsLongAttr
ibute()); | 2442 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); |
2443 } | 2443 } |
2444 | 2444 |
2445 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 2445 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
2446 { | 2446 { |
2447 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2447 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2448 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2448 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2449 if (contextData && contextData->activityLogger()) | 2449 if (contextData && contextData->activityLogger()) |
2450 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2450 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
2451 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeGetterForMainWorld(info); | 2451 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeGetterForMainWorld(info); |
2452 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2452 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2453 } | 2453 } |
2454 | 2454 |
2455 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) | 2455 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) |
2456 { | 2456 { |
2457 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.G
etIsolate()); | 2457 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObjectPython", info.Holder(), info.G
etIsolate()); |
2458 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2458 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2459 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2459 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2460 imp->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 2460 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
2461 } | 2461 } |
2462 | 2462 |
2463 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) | 2463 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) |
2464 { | 2464 { |
2465 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2465 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2466 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeSetterForMainWorld(jsValue, info); | 2466 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu
teAttributeSetterForMainWorld(jsValue, info); |
2467 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2467 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2468 } | 2468 } |
2469 | 2469 |
2470 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 2470 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
2471 { | 2471 { |
2472 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2472 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2473 v8SetReturnValueInt(info, imp->activityLoggingGetterForIsolatedWorldsPerWorl
dBindingsLongAttribute()); | 2473 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
2474 } | 2474 } |
2475 | 2475 |
2476 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) | 2476 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8:
:Value>& info) |
2477 { | 2477 { |
2478 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2478 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2479 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 2479 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
2480 if (contextData && contextData->activityLogger()) | 2480 if (contextData && contextData->activityLogger()) |
2481 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erForIsolatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); | 2481 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett
erForIsolatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); |
2482 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetter(info); | 2482 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetter(info); |
2483 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2483 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2484 } | 2484 } |
2485 | 2485 |
2486 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) | 2486 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) |
2487 { | 2487 { |
2488 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info
.Holder(), info.GetIsolate()); | 2488 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info
.Holder(), info.GetIsolate()); |
2489 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2489 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2490 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2490 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2491 imp->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute(
cppValue); | 2491 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2492 } | 2492 } |
2493 | 2493 |
2494 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) | 2494 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) |
2495 { | 2495 { |
2496 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2496 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2497 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetter(jsValue, info); | 2497 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetter(jsValue, info); |
2498 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2498 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2499 } | 2499 } |
2500 | 2500 |
2501 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2501 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) |
2502 { | 2502 { |
2503 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2503 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2504 v8SetReturnValueInt(info, imp->activityLoggingGetterForIsolatedWorldsPerWorl
dBindingsLongAttribute()); | 2504 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
2505 } | 2505 } |
2506 | 2506 |
2507 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) | 2507 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall
backInfo<v8::Value>& info) |
2508 { | 2508 { |
2509 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2509 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2510 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetterForMainWorld(info); | 2510 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeGetterForMainWorld(info); |
2511 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2511 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2512 } | 2512 } |
2513 | 2513 |
2514 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallb
ackInfo<void>& info) | 2514 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallb
ackInfo<void>& info) |
2515 { | 2515 { |
2516 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info
.Holder(), info.GetIsolate()); | 2516 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", info
.Holder(), info.GetIsolate()); |
2517 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2517 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2518 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2518 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2519 imp->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute(
cppValue); | 2519 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
2520 } | 2520 } |
2521 | 2521 |
2522 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) | 2522 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j
sValue, const v8::PropertyCallbackInfo<void>& info) |
2523 { | 2523 { |
2524 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2524 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2525 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info); | 2525 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi
ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info); |
2526 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2526 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2527 } | 2527 } |
2528 | 2528 |
2529 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i
nfo) | 2529 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i
nfo) |
2530 { | 2530 { |
2531 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2531 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2532 v8SetReturnValueFast(info, WTF::getPtr(imp->location()), imp); | 2532 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl); |
2533 } | 2533 } |
2534 | 2534 |
2535 static void locationAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro
pertyCallbackInfo<v8::Value>& info) | 2535 static void locationAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro
pertyCallbackInfo<v8::Value>& info) |
2536 { | 2536 { |
2537 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2537 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2538 TestObjectPythonV8Internal::locationAttributeGetter(info); | 2538 TestObjectPythonV8Internal::locationAttributeGetter(info); |
2539 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2539 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2540 } | 2540 } |
2541 | 2541 |
2542 static void locationAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Prop
ertyCallbackInfo<void>& info) | 2542 static void locationAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Prop
ertyCallbackInfo<void>& info) |
2543 { | 2543 { |
2544 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 2544 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(info.Holder()); |
2545 RefPtr<TestNode> imp = WTF::getPtr(proxyImp->location()); | 2545 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); |
2546 if (!imp) | 2546 if (!impl) |
2547 return; | 2547 return; |
2548 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2548 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
2549 imp->setHref(cppValue); | 2549 impl->setHref(cppValue); |
2550 } | 2550 } |
2551 | 2551 |
2552 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2552 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8:
:Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2553 { | 2553 { |
2554 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2554 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2555 TestObjectPythonV8Internal::locationAttributeSetter(jsValue, info); | 2555 TestObjectPythonV8Internal::locationAttributeSetter(jsValue, info); |
2556 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2556 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2557 } | 2557 } |
2558 | 2558 |
2559 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 2559 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
2560 { | 2560 { |
2561 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2561 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2562 v8SetReturnValueFast(info, WTF::getPtr(imp->locationWithException()), imp); | 2562 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithException()), impl)
; |
2563 } | 2563 } |
2564 | 2564 |
2565 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 2565 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
2566 { | 2566 { |
2567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2568 TestObjectPythonV8Internal::locationWithExceptionAttributeGetter(info); | 2568 TestObjectPythonV8Internal::locationWithExceptionAttributeGetter(info); |
2569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2570 } | 2570 } |
2571 | 2571 |
2572 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) | 2572 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> jsValue, c
onst v8::PropertyCallbackInfo<void>& info) |
2573 { | 2573 { |
2574 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 2574 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(info.Holder()); |
2575 RefPtr<TestNode> imp = WTF::getPtr(proxyImp->locationWithException()); | 2575 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithException()); |
2576 if (!imp) | 2576 if (!impl) |
2577 return; | 2577 return; |
2578 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2578 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
2579 imp->setHrefThrows(cppValue); | 2579 impl->setHrefThrows(cppValue); |
2580 } | 2580 } |
2581 | 2581 |
2582 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2582 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2583 { | 2583 { |
2584 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2584 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2585 TestObjectPythonV8Internal::locationWithExceptionAttributeSetter(jsValue, in
fo); | 2585 TestObjectPythonV8Internal::locationWithExceptionAttributeSetter(jsValue, in
fo); |
2586 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2586 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2587 } | 2587 } |
2588 | 2588 |
2589 static void locationWithCallWithAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 2589 static void locationWithCallWithAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
2590 { | 2590 { |
2591 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2591 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2592 v8SetReturnValueFast(info, WTF::getPtr(imp->locationWithCallWith()), imp); | 2592 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithCallWith()), impl); |
2593 } | 2593 } |
2594 | 2594 |
2595 static void locationWithCallWithAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 2595 static void locationWithCallWithAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
2596 { | 2596 { |
2597 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2597 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2598 TestObjectPythonV8Internal::locationWithCallWithAttributeGetter(info); | 2598 TestObjectPythonV8Internal::locationWithCallWithAttributeGetter(info); |
2599 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2599 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2600 } | 2600 } |
2601 | 2601 |
2602 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) | 2602 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) |
2603 { | 2603 { |
2604 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 2604 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(info.Holder()); |
2605 RefPtr<TestNode> imp = WTF::getPtr(proxyImp->locationWithCallWith()); | 2605 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallWith()); |
2606 if (!imp) | 2606 if (!impl) |
2607 return; | 2607 return; |
2608 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2608 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
2609 imp->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(i
nfo.GetIsolate()), cppValue); | 2609 impl->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow(
info.GetIsolate()), cppValue); |
2610 } | 2610 } |
2611 | 2611 |
2612 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2612 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2613 { | 2613 { |
2614 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2614 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2615 TestObjectPythonV8Internal::locationWithCallWithAttributeSetter(jsValue, inf
o); | 2615 TestObjectPythonV8Internal::locationWithCallWithAttributeSetter(jsValue, inf
o); |
2616 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2616 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2617 } | 2617 } |
2618 | 2618 |
2619 static void locationWithPerWorldBindingsAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 2619 static void locationWithPerWorldBindingsAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
2620 { | 2620 { |
2621 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2621 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2622 v8SetReturnValueFast(info, WTF::getPtr(imp->locationWithPerWorldBindings()),
imp); | 2622 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithPerWorldBindings())
, impl); |
2623 } | 2623 } |
2624 | 2624 |
2625 static void locationWithPerWorldBindingsAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2625 static void locationWithPerWorldBindingsAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2626 { | 2626 { |
2627 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2627 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2628 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetter(info
); | 2628 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetter(info
); |
2629 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2629 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2630 } | 2630 } |
2631 | 2631 |
2632 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) | 2632 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) |
2633 { | 2633 { |
2634 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 2634 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(info.Holder()); |
2635 RefPtr<TestNode> imp = WTF::getPtr(proxyImp->locationWithPerWorldBindings())
; | 2635 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings(
)); |
2636 if (!imp) | 2636 if (!impl) |
2637 return; | 2637 return; |
2638 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2638 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
2639 imp->setHref(cppValue); | 2639 impl->setHref(cppValue); |
2640 } | 2640 } |
2641 | 2641 |
2642 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2642 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2643 { | 2643 { |
2644 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2644 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2645 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetter(jsVa
lue, info); | 2645 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetter(jsVa
lue, info); |
2646 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2646 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2647 } | 2647 } |
2648 | 2648 |
2649 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 2649 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
2650 { | 2650 { |
2651 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2651 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2652 v8SetReturnValueForMainWorld(info, WTF::getPtr(imp->locationWithPerWorldBind
ings())); | 2652 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->locationWithPerWorldBin
dings())); |
2653 } | 2653 } |
2654 | 2654 |
2655 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2655 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2656 { | 2656 { |
2657 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2657 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2658 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetterForMa
inWorld(info); | 2658 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetterForMa
inWorld(info); |
2659 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2659 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2660 } | 2660 } |
2661 | 2661 |
2662 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2662 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2663 { | 2663 { |
2664 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 2664 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(info.Holder()); |
2665 RefPtr<TestNode> imp = WTF::getPtr(proxyImp->locationWithPerWorldBindings())
; | 2665 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings(
)); |
2666 if (!imp) | 2666 if (!impl) |
2667 return; | 2667 return; |
2668 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 2668 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
2669 imp->setHref(cppValue); | 2669 impl->setHref(cppValue); |
2670 } | 2670 } |
2671 | 2671 |
2672 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8::
Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<
void>& info) | 2672 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8::
Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<
void>& info) |
2673 { | 2673 { |
2674 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2674 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2675 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetterForMa
inWorld(jsValue, info); | 2675 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetterForMa
inWorld(jsValue, info); |
2676 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2676 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2677 } | 2677 } |
2678 | 2678 |
2679 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 2679 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
2680 { | 2680 { |
2681 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2681 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2682 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 2682 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
2683 int jsValue = imp->raisesExceptionLongAttribute(exceptionState); | 2683 int jsValue = impl->raisesExceptionLongAttribute(exceptionState); |
2684 if (UNLIKELY(exceptionState.throwIfNeeded())) | 2684 if (UNLIKELY(exceptionState.throwIfNeeded())) |
2685 return; | 2685 return; |
2686 v8SetReturnValueInt(info, jsValue); | 2686 v8SetReturnValueInt(info, jsValue); |
2687 } | 2687 } |
2688 | 2688 |
2689 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2689 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2690 { | 2690 { |
2691 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2691 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2692 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeGetter(info
); | 2692 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeGetter(info
); |
2693 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2693 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2694 } | 2694 } |
2695 | 2695 |
2696 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) | 2696 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) |
2697 { | 2697 { |
2698 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 2698 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
2699 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2699 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2700 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2700 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2701 imp->setRaisesExceptionLongAttribute(cppValue, exceptionState); | 2701 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); |
2702 exceptionState.throwIfNeeded(); | 2702 exceptionState.throwIfNeeded(); |
2703 } | 2703 } |
2704 | 2704 |
2705 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2705 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2706 { | 2706 { |
2707 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2707 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2708 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeSetter(jsVa
lue, info); | 2708 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeSetter(jsVa
lue, info); |
2709 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2709 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2710 } | 2710 } |
2711 | 2711 |
2712 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 2712 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
2713 { | 2713 { |
2714 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2714 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2715 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nGetterLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 2715 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nGetterLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
2716 int jsValue = imp->raisesExceptionGetterLongAttribute(exceptionState); | 2716 int jsValue = impl->raisesExceptionGetterLongAttribute(exceptionState); |
2717 if (UNLIKELY(exceptionState.throwIfNeeded())) | 2717 if (UNLIKELY(exceptionState.throwIfNeeded())) |
2718 return; | 2718 return; |
2719 v8SetReturnValueInt(info, jsValue); | 2719 v8SetReturnValueInt(info, jsValue); |
2720 } | 2720 } |
2721 | 2721 |
2722 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2722 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2723 { | 2723 { |
2724 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2724 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2725 TestObjectPythonV8Internal::raisesExceptionGetterLongAttributeAttributeGette
r(info); | 2725 TestObjectPythonV8Internal::raisesExceptionGetterLongAttributeAttributeGette
r(info); |
2726 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2726 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2727 } | 2727 } |
2728 | 2728 |
2729 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2729 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2730 { | 2730 { |
2731 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nGetterLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 2731 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nGetterLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
2732 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2732 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2733 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2733 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2734 imp->setRaisesExceptionGetterLongAttribute(cppValue); | 2734 impl->setRaisesExceptionGetterLongAttribute(cppValue); |
2735 } | 2735 } |
2736 | 2736 |
2737 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) | 2737 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) |
2738 { | 2738 { |
2739 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2739 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2740 TestObjectPythonV8Internal::raisesExceptionGetterLongAttributeAttributeSette
r(jsValue, info); | 2740 TestObjectPythonV8Internal::raisesExceptionGetterLongAttributeAttributeSette
r(jsValue, info); |
2741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2741 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2742 } | 2742 } |
2743 | 2743 |
2744 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 2744 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
2745 { | 2745 { |
2746 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2746 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2747 v8SetReturnValueInt(info, imp->setterRaisesExceptionLongAttribute()); | 2747 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); |
2748 } | 2748 } |
2749 | 2749 |
2750 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2750 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2751 { | 2751 { |
2752 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2752 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2753 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeGette
r(info); | 2753 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeGette
r(info); |
2754 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2754 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2755 } | 2755 } |
2756 | 2756 |
2757 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2757 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2758 { | 2758 { |
2759 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx
ceptionLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 2759 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx
ceptionLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
2760 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2760 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2761 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2761 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2762 imp->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); | 2762 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); |
2763 exceptionState.throwIfNeeded(); | 2763 exceptionState.throwIfNeeded(); |
2764 } | 2764 } |
2765 | 2765 |
2766 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) | 2766 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) |
2767 { | 2767 { |
2768 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2768 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2769 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeSette
r(jsValue, info); | 2769 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeSette
r(jsValue, info); |
2770 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2770 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2771 } | 2771 } |
2772 | 2772 |
2773 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) | 2773 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) |
2774 { | 2774 { |
2775 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2775 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2776 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nTestInterfaceEmptyAttribute", "TestObjectPython", info.Holder(), info.GetIsolat
e()); | 2776 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nTestInterfaceEmptyAttribute", "TestObjectPython", info.Holder(), info.GetIsolat
e()); |
2777 RefPtr<TestInterfaceEmpty> jsValue = imp->raisesExceptionTestInterfaceEmptyA
ttribute(exceptionState); | 2777 RefPtr<TestInterfaceEmpty> jsValue = impl->raisesExceptionTestInterfaceEmpty
Attribute(exceptionState); |
2778 if (UNLIKELY(exceptionState.throwIfNeeded())) | 2778 if (UNLIKELY(exceptionState.throwIfNeeded())) |
2779 return; | 2779 return; |
2780 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), imp); | 2780 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), impl); |
2781 } | 2781 } |
2782 | 2782 |
2783 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2783 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2784 { | 2784 { |
2785 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2785 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2786 TestObjectPythonV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttrib
uteGetter(info); | 2786 TestObjectPythonV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttrib
uteGetter(info); |
2787 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2787 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2788 } | 2788 } |
2789 | 2789 |
2790 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2790 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2791 { | 2791 { |
2792 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nTestInterfaceEmptyAttribute", "TestObjectPython", info.Holder(), info.GetIsolat
e()); | 2792 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nTestInterfaceEmptyAttribute", "TestObjectPython", info.Holder(), info.GetIsolat
e()); |
2793 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2793 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2794 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ
eWithTypeCheck(info.GetIsolate(), jsValue)); | 2794 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ
eWithTypeCheck(info.GetIsolate(), jsValue)); |
2795 imp->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), ex
ceptionState); | 2795 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e
xceptionState); |
2796 exceptionState.throwIfNeeded(); | 2796 exceptionState.throwIfNeeded(); |
2797 } | 2797 } |
2798 | 2798 |
2799 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(v8
::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInf
o<void>& info) | 2799 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(v8
::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInf
o<void>& info) |
2800 { | 2800 { |
2801 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2801 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2802 TestObjectPythonV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttrib
uteSetter(jsValue, info); | 2802 TestObjectPythonV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttrib
uteSetter(jsValue, info); |
2803 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2803 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2804 } | 2804 } |
2805 | 2805 |
2806 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 2806 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
2807 { | 2807 { |
2808 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac
hedAttributeRaisesExceptionGetterAnyAttribute"); | 2808 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac
hedAttributeRaisesExceptionGetterAnyAttribute"); |
2809 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2809 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2810 if (!imp->isValueDirty()) { | 2810 if (!impl->isValueDirty()) { |
2811 v8::Handle<v8::Value> jsValue = V8HiddenValue::getHiddenValue(info.GetIs
olate(), info.Holder(), propertyName); | 2811 v8::Handle<v8::Value> jsValue = V8HiddenValue::getHiddenValue(info.GetIs
olate(), info.Holder(), propertyName); |
2812 if (!jsValue.IsEmpty()) { | 2812 if (!jsValue.IsEmpty()) { |
2813 v8SetReturnValue(info, jsValue); | 2813 v8SetReturnValue(info, jsValue); |
2814 return; | 2814 return; |
2815 } | 2815 } |
2816 } | 2816 } |
2817 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut
eRaisesExceptionGetterAnyAttribute", "TestObjectPython", info.Holder(), info.Get
Isolate()); | 2817 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut
eRaisesExceptionGetterAnyAttribute", "TestObjectPython", info.Holder(), info.Get
Isolate()); |
2818 ScriptValue jsValue = imp->cachedAttributeRaisesExceptionGetterAnyAttribute(
exceptionState); | 2818 ScriptValue jsValue = impl->cachedAttributeRaisesExceptionGetterAnyAttribute
(exceptionState); |
2819 if (UNLIKELY(exceptionState.throwIfNeeded())) | 2819 if (UNLIKELY(exceptionState.throwIfNeeded())) |
2820 return; | 2820 return; |
2821 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), propertyName
, jsValue.v8Value()); | 2821 V8HiddenValue::setHiddenValue(info.GetIsolate(), info.Holder(), propertyName
, jsValue.v8Value()); |
2822 v8SetReturnValue(info, jsValue.v8Value()); | 2822 v8SetReturnValue(info, jsValue.v8Value()); |
2823 } | 2823 } |
2824 | 2824 |
2825 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb
ack(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2825 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb
ack(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2826 { | 2826 { |
2827 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2827 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2828 TestObjectPythonV8Internal::cachedAttributeRaisesExceptionGetterAnyAttribute
AttributeGetter(info); | 2828 TestObjectPythonV8Internal::cachedAttributeRaisesExceptionGetterAnyAttribute
AttributeGetter(info); |
2829 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2829 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2830 } | 2830 } |
2831 | 2831 |
2832 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2832 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8::
Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2833 { | 2833 { |
2834 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut
eRaisesExceptionGetterAnyAttribute", "TestObjectPython", info.Holder(), info.Get
Isolate()); | 2834 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut
eRaisesExceptionGetterAnyAttribute", "TestObjectPython", info.Holder(), info.Get
Isolate()); |
2835 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2835 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2836 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); | 2836 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate(
))); |
2837 imp->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exception
State); | 2837 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio
nState); |
2838 exceptionState.throwIfNeeded(); | 2838 exceptionState.throwIfNeeded(); |
2839 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), info.Holder(), v8AtomicS
tring(info.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); /
/ Invalidate the cached value. | 2839 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), info.Holder(), v8AtomicS
tring(info.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); /
/ Invalidate the cached value. |
2840 } | 2840 } |
2841 | 2841 |
2842 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb
ack(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallb
ackInfo<void>& info) | 2842 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb
ack(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallb
ackInfo<void>& info) |
2843 { | 2843 { |
2844 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2844 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2845 TestObjectPythonV8Internal::cachedAttributeRaisesExceptionGetterAnyAttribute
AttributeSetter(jsValue, info); | 2845 TestObjectPythonV8Internal::cachedAttributeRaisesExceptionGetterAnyAttribute
AttributeSetter(jsValue, info); |
2846 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2846 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2847 } | 2847 } |
2848 | 2848 |
2849 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 2849 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
2850 { | 2850 { |
2851 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2851 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2852 v8SetReturnValueFast(info, WTF::getPtr(imp->fastGetAttribute(HTMLNames::refl
ecttestinterfaceattributeAttr)), imp); | 2852 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref
lecttestinterfaceattributeAttr)), impl); |
2853 } | 2853 } |
2854 | 2854 |
2855 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2855 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2856 { | 2856 { |
2857 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2857 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2858 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeGetter(inf
o); | 2858 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeGetter(inf
o); |
2859 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2859 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2860 } | 2860 } |
2861 | 2861 |
2862 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) | 2862 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) |
2863 { | 2863 { |
2864 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2864 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2865 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC
heck(info.GetIsolate(), jsValue)); | 2865 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC
heck(info.GetIsolate(), jsValue)); |
2866 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2866 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
2867 imp->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr(
cppValue)); | 2867 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr
(cppValue)); |
2868 } | 2868 } |
2869 | 2869 |
2870 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) | 2870 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) |
2871 { | 2871 { |
2872 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2872 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2873 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2873 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
2874 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeSetter(jsV
alue, info); | 2874 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeSetter(jsV
alue, info); |
2875 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2875 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2876 } | 2876 } |
2877 | 2877 |
2878 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) | 2878 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) |
2879 { | 2879 { |
2880 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2880 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2881 v8SetReturnValueFast(info, WTF::getPtr(imp->fastGetAttribute(HTMLNames::refl
ectedNameAttributeAttr)), imp); | 2881 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref
lectedNameAttributeAttr)), impl); |
2882 } | 2882 } |
2883 | 2883 |
2884 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2884 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8
::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2885 { | 2885 { |
2886 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2886 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2887 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib
uteGetter(info); | 2887 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib
uteGetter(info); |
2888 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2888 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2889 } | 2889 } |
2890 | 2890 |
2891 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2891 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2892 { | 2892 { |
2893 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2893 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2894 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC
heck(info.GetIsolate(), jsValue)); | 2894 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC
heck(info.GetIsolate(), jsValue)); |
2895 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2895 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
2896 imp->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppValu
e)); | 2896 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal
ue)); |
2897 } | 2897 } |
2898 | 2898 |
2899 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8
::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInf
o<void>& info) | 2899 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8
::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInf
o<void>& info) |
2900 { | 2900 { |
2901 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2901 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2902 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2902 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
2903 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib
uteSetter(jsValue, info); | 2903 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib
uteSetter(jsValue, info); |
2904 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2904 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2905 } | 2905 } |
2906 | 2906 |
2907 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 2907 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
2908 { | 2908 { |
2909 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2909 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2910 v8SetReturnValueBool(info, imp->fastHasAttribute(HTMLNames::reflectbooleanat
tributeAttr)); | 2910 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana
ttributeAttr)); |
2911 } | 2911 } |
2912 | 2912 |
2913 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 2913 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
2914 { | 2914 { |
2915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2916 TestObjectPythonV8Internal::reflectBooleanAttributeAttributeGetter(info); | 2916 TestObjectPythonV8Internal::reflectBooleanAttributeAttributeGetter(info); |
2917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2918 } | 2918 } |
2919 | 2919 |
2920 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 2920 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
2921 { | 2921 { |
2922 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2922 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2923 V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue()); | 2923 V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue()); |
2924 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2924 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
2925 imp->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue); | 2925 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue); |
2926 } | 2926 } |
2927 | 2927 |
2928 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2928 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2929 { | 2929 { |
2930 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2930 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2931 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2931 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
2932 TestObjectPythonV8Internal::reflectBooleanAttributeAttributeSetter(jsValue,
info); | 2932 TestObjectPythonV8Internal::reflectBooleanAttributeAttributeSetter(jsValue,
info); |
2933 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2933 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2934 } | 2934 } |
2935 | 2935 |
2936 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 2936 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
2937 { | 2937 { |
2938 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2938 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2939 v8SetReturnValueInt(info, imp->getIntegralAttribute(HTMLNames::reflectlongat
tributeAttr)); | 2939 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga
ttributeAttr)); |
2940 } | 2940 } |
2941 | 2941 |
2942 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 2942 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
2943 { | 2943 { |
2944 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2944 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2945 TestObjectPythonV8Internal::reflectLongAttributeAttributeGetter(info); | 2945 TestObjectPythonV8Internal::reflectLongAttributeAttributeGetter(info); |
2946 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2946 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2947 } | 2947 } |
2948 | 2948 |
2949 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) | 2949 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co
nst v8::PropertyCallbackInfo<void>& info) |
2950 { | 2950 { |
2951 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt
ribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 2951 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt
ribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
2952 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2952 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2953 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 2953 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
2954 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2954 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
2955 imp->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); | 2955 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); |
2956 } | 2956 } |
2957 | 2957 |
2958 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 2958 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
2959 { | 2959 { |
2960 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2960 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2961 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2961 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
2962 TestObjectPythonV8Internal::reflectLongAttributeAttributeSetter(jsValue, inf
o); | 2962 TestObjectPythonV8Internal::reflectLongAttributeAttributeSetter(jsValue, inf
o); |
2963 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2963 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2964 } | 2964 } |
2965 | 2965 |
2966 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 2966 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) |
2967 { | 2967 { |
2968 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2968 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2969 v8SetReturnValueUnsigned(info, std::max(0, imp->fastGetAttribute(HTMLNames::
reflectunsignedshortattributeAttr))); | 2969 v8SetReturnValueUnsigned(info, std::max(0, impl->fastGetAttribute(HTMLNames:
:reflectunsignedshortattributeAttr))); |
2970 } | 2970 } |
2971 | 2971 |
2972 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2972 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S
tring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2973 { | 2973 { |
2974 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 2974 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
2975 TestObjectPythonV8Internal::reflectUnsignedShortAttributeAttributeGetter(inf
o); | 2975 TestObjectPythonV8Internal::reflectUnsignedShortAttributeAttributeGetter(inf
o); |
2976 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2976 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2977 } | 2977 } |
2978 | 2978 |
2979 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) | 2979 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> js
Value, const v8::PropertyCallbackInfo<void>& info) |
2980 { | 2980 { |
2981 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dShortAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 2981 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dShortAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
2982 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2982 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2983 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(jsValue, exceptionSta
te), exceptionState); | 2983 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(jsValue, exceptionSta
te), exceptionState); |
2984 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2984 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
2985 imp->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); | 2985 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); |
2986 } | 2986 } |
2987 | 2987 |
2988 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) | 2988 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S
tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info
) |
2989 { | 2989 { |
2990 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 2990 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
2991 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 2991 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
2992 TestObjectPythonV8Internal::reflectUnsignedShortAttributeAttributeSetter(jsV
alue, info); | 2992 TestObjectPythonV8Internal::reflectUnsignedShortAttributeAttributeSetter(jsV
alue, info); |
2993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 2993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
2994 } | 2994 } |
2995 | 2995 |
2996 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 2996 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
2997 { | 2997 { |
2998 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 2998 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
2999 v8SetReturnValueUnsigned(info, std::max(0, imp->getIntegralAttribute(HTMLNam
es::reflectunsignedlongattributeAttr))); | 2999 v8SetReturnValueUnsigned(info, std::max(0, impl->getIntegralAttribute(HTMLNa
mes::reflectunsignedlongattributeAttr))); |
3000 } | 3000 } |
3001 | 3001 |
3002 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3002 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3003 { | 3003 { |
3004 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3004 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3005 TestObjectPythonV8Internal::reflectUnsignedLongAttributeAttributeGetter(info
); | 3005 TestObjectPythonV8Internal::reflectUnsignedLongAttributeAttributeGetter(info
); |
3006 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3006 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3007 } | 3007 } |
3008 | 3008 |
3009 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) | 3009 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) |
3010 { | 3010 { |
3011 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 3011 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
3012 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3012 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3013 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(jsValue, exceptionSta
te), exceptionState); | 3013 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(jsValue, exceptionSta
te), exceptionState); |
3014 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3014 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3015 imp->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAtt
r, cppValue); | 3015 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt
tr, cppValue); |
3016 } | 3016 } |
3017 | 3017 |
3018 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3018 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3019 { | 3019 { |
3020 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3020 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3021 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3021 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3022 TestObjectPythonV8Internal::reflectUnsignedLongAttributeAttributeSetter(jsVa
lue, info); | 3022 TestObjectPythonV8Internal::reflectUnsignedLongAttributeAttributeSetter(jsVa
lue, info); |
3023 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3023 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3024 } | 3024 } |
3025 | 3025 |
3026 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 3026 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
3027 { | 3027 { |
3028 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3028 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3029 v8SetReturnValueString(info, imp->getIdAttribute(), info.GetIsolate()); | 3029 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); |
3030 } | 3030 } |
3031 | 3031 |
3032 static void idAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyC
allbackInfo<v8::Value>& info) | 3032 static void idAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyC
allbackInfo<v8::Value>& info) |
3033 { | 3033 { |
3034 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3034 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3035 TestObjectPythonV8Internal::idAttributeGetter(info); | 3035 TestObjectPythonV8Internal::idAttributeGetter(info); |
3036 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3036 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3037 } | 3037 } |
3038 | 3038 |
3039 static void idAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCa
llbackInfo<void>& info) | 3039 static void idAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCa
llbackInfo<void>& info) |
3040 { | 3040 { |
3041 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3041 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3042 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3042 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3043 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3043 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3044 imp->setAttribute(HTMLNames::idAttr, cppValue); | 3044 impl->setAttribute(HTMLNames::idAttr, cppValue); |
3045 } | 3045 } |
3046 | 3046 |
3047 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value
> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3047 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value
> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3048 { | 3048 { |
3049 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3049 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3050 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3050 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3051 TestObjectPythonV8Internal::idAttributeSetter(jsValue, info); | 3051 TestObjectPythonV8Internal::idAttributeSetter(jsValue, info); |
3052 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3052 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3053 } | 3053 } |
3054 | 3054 |
3055 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 3055 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
3056 { | 3056 { |
3057 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3057 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3058 v8SetReturnValueString(info, imp->getNameAttribute(), info.GetIsolate()); | 3058 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); |
3059 } | 3059 } |
3060 | 3060 |
3061 static void nameAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) | 3061 static void nameAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert
yCallbackInfo<v8::Value>& info) |
3062 { | 3062 { |
3063 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3063 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3064 TestObjectPythonV8Internal::nameAttributeGetter(info); | 3064 TestObjectPythonV8Internal::nameAttributeGetter(info); |
3065 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3065 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3066 } | 3066 } |
3067 | 3067 |
3068 static void nameAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Property
CallbackInfo<void>& info) | 3068 static void nameAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Property
CallbackInfo<void>& info) |
3069 { | 3069 { |
3070 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3070 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3071 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3071 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3072 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3072 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3073 imp->setAttribute(HTMLNames::nameAttr, cppValue); | 3073 impl->setAttribute(HTMLNames::nameAttr, cppValue); |
3074 } | 3074 } |
3075 | 3075 |
3076 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3076 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val
ue> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3077 { | 3077 { |
3078 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3078 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3079 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3079 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3080 TestObjectPythonV8Internal::nameAttributeSetter(jsValue, info); | 3080 TestObjectPythonV8Internal::nameAttributeSetter(jsValue, info); |
3081 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3081 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3082 } | 3082 } |
3083 | 3083 |
3084 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info
) | 3084 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info
) |
3085 { | 3085 { |
3086 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3086 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3087 v8SetReturnValueString(info, imp->getClassAttribute(), info.GetIsolate()); | 3087 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); |
3088 } | 3088 } |
3089 | 3089 |
3090 static void classAttributeGetterCallback(v8::Local<v8::String>, const v8::Proper
tyCallbackInfo<v8::Value>& info) | 3090 static void classAttributeGetterCallback(v8::Local<v8::String>, const v8::Proper
tyCallbackInfo<v8::Value>& info) |
3091 { | 3091 { |
3092 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3092 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3093 TestObjectPythonV8Internal::classAttributeGetter(info); | 3093 TestObjectPythonV8Internal::classAttributeGetter(info); |
3094 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3094 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3095 } | 3095 } |
3096 | 3096 |
3097 static void classAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Propert
yCallbackInfo<void>& info) | 3097 static void classAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Propert
yCallbackInfo<void>& info) |
3098 { | 3098 { |
3099 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3099 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3100 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3100 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3101 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3101 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3102 imp->setAttribute(HTMLNames::classAttr, cppValue); | 3102 impl->setAttribute(HTMLNames::classAttr, cppValue); |
3103 } | 3103 } |
3104 | 3104 |
3105 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3105 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va
lue> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3106 { | 3106 { |
3107 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3107 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3108 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3108 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3109 TestObjectPythonV8Internal::classAttributeSetter(jsValue, info); | 3109 TestObjectPythonV8Internal::classAttributeSetter(jsValue, info); |
3110 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3110 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3111 } | 3111 } |
3112 | 3112 |
3113 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>
& info) | 3113 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>
& info) |
3114 { | 3114 { |
3115 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3115 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3116 v8SetReturnValueString(info, imp->getIdAttribute(), info.GetIsolate()); | 3116 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); |
3117 } | 3117 } |
3118 | 3118 |
3119 static void reflectedIdAttributeGetterCallback(v8::Local<v8::String>, const v8::
PropertyCallbackInfo<v8::Value>& info) | 3119 static void reflectedIdAttributeGetterCallback(v8::Local<v8::String>, const v8::
PropertyCallbackInfo<v8::Value>& info) |
3120 { | 3120 { |
3121 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3121 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3122 TestObjectPythonV8Internal::reflectedIdAttributeGetter(info); | 3122 TestObjectPythonV8Internal::reflectedIdAttributeGetter(info); |
3123 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3123 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3124 } | 3124 } |
3125 | 3125 |
3126 static void reflectedIdAttributeSetter(v8::Local<v8::Value> jsValue, const v8::P
ropertyCallbackInfo<void>& info) | 3126 static void reflectedIdAttributeSetter(v8::Local<v8::Value> jsValue, const v8::P
ropertyCallbackInfo<void>& info) |
3127 { | 3127 { |
3128 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3128 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3129 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3129 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3130 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3130 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3131 imp->setAttribute(HTMLNames::idAttr, cppValue); | 3131 impl->setAttribute(HTMLNames::idAttr, cppValue); |
3132 } | 3132 } |
3133 | 3133 |
3134 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3134 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local<
v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3135 { | 3135 { |
3136 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3136 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3137 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3137 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3138 TestObjectPythonV8Internal::reflectedIdAttributeSetter(jsValue, info); | 3138 TestObjectPythonV8Internal::reflectedIdAttributeSetter(jsValue, info); |
3139 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3139 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3140 } | 3140 } |
3141 | 3141 |
3142 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 3142 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) |
3143 { | 3143 { |
3144 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3144 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3145 v8SetReturnValueString(info, imp->getNameAttribute(), info.GetIsolate()); | 3145 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); |
3146 } | 3146 } |
3147 | 3147 |
3148 static void reflectedNameAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 3148 static void reflectedNameAttributeGetterCallback(v8::Local<v8::String>, const v8
::PropertyCallbackInfo<v8::Value>& info) |
3149 { | 3149 { |
3150 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3150 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3151 TestObjectPythonV8Internal::reflectedNameAttributeGetter(info); | 3151 TestObjectPythonV8Internal::reflectedNameAttributeGetter(info); |
3152 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3152 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3153 } | 3153 } |
3154 | 3154 |
3155 static void reflectedNameAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) | 3155 static void reflectedNameAttributeSetter(v8::Local<v8::Value> jsValue, const v8:
:PropertyCallbackInfo<void>& info) |
3156 { | 3156 { |
3157 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3157 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3158 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3158 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3159 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3159 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3160 imp->setAttribute(HTMLNames::nameAttr, cppValue); | 3160 impl->setAttribute(HTMLNames::nameAttr, cppValue); |
3161 } | 3161 } |
3162 | 3162 |
3163 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3163 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3164 { | 3164 { |
3165 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3165 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3166 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3166 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3167 TestObjectPythonV8Internal::reflectedNameAttributeSetter(jsValue, info); | 3167 TestObjectPythonV8Internal::reflectedNameAttributeSetter(jsValue, info); |
3168 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3168 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3169 } | 3169 } |
3170 | 3170 |
3171 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 3171 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) |
3172 { | 3172 { |
3173 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3173 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3174 v8SetReturnValueString(info, imp->getClassAttribute(), info.GetIsolate()); | 3174 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); |
3175 } | 3175 } |
3176 | 3176 |
3177 static void reflectedClassAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 3177 static void reflectedClassAttributeGetterCallback(v8::Local<v8::String>, const v
8::PropertyCallbackInfo<v8::Value>& info) |
3178 { | 3178 { |
3179 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3179 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3180 TestObjectPythonV8Internal::reflectedClassAttributeGetter(info); | 3180 TestObjectPythonV8Internal::reflectedClassAttributeGetter(info); |
3181 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3181 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3182 } | 3182 } |
3183 | 3183 |
3184 static void reflectedClassAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) | 3184 static void reflectedClassAttributeSetter(v8::Local<v8::Value> jsValue, const v8
::PropertyCallbackInfo<void>& info) |
3185 { | 3185 { |
3186 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3186 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3187 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3187 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3188 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3188 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3189 imp->setAttribute(HTMLNames::classAttr, cppValue); | 3189 impl->setAttribute(HTMLNames::classAttr, cppValue); |
3190 } | 3190 } |
3191 | 3191 |
3192 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3192 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3193 { | 3193 { |
3194 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3194 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3195 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3195 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3196 TestObjectPythonV8Internal::reflectedClassAttributeSetter(jsValue, info); | 3196 TestObjectPythonV8Internal::reflectedClassAttributeSetter(jsValue, info); |
3197 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3197 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3198 } | 3198 } |
3199 | 3199 |
3200 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 3200 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
3201 { | 3201 { |
3202 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3202 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3203 String resultValue = imp->fastGetAttribute(HTMLNames::limitedtoonlyoneattrib
uteAttr); | 3203 String resultValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattri
buteAttr); |
3204 if (resultValue.isEmpty()) { | 3204 if (resultValue.isEmpty()) { |
3205 ; | 3205 ; |
3206 } else if (equalIgnoringCase(resultValue, "unique")) { | 3206 } else if (equalIgnoringCase(resultValue, "unique")) { |
3207 resultValue = "unique"; | 3207 resultValue = "unique"; |
3208 } else { | 3208 } else { |
3209 resultValue = ""; | 3209 resultValue = ""; |
3210 } | 3210 } |
3211 v8SetReturnValueString(info, resultValue, info.GetIsolate()); | 3211 v8SetReturnValueString(info, resultValue, info.GetIsolate()); |
3212 } | 3212 } |
3213 | 3213 |
3214 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3214 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3215 { | 3215 { |
3216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3217 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); | 3217 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); |
3218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3219 } | 3219 } |
3220 | 3220 |
3221 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 3221 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
3222 { | 3222 { |
3223 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3223 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3224 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3224 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3225 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3225 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3226 imp->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); | 3226 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); |
3227 } | 3227 } |
3228 | 3228 |
3229 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3229 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3230 { | 3230 { |
3231 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3231 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3232 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3232 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3233 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeSetter(jsValue
, info); | 3233 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeSetter(jsValue
, info); |
3234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3235 } | 3235 } |
3236 | 3236 |
3237 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 3237 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
3238 { | 3238 { |
3239 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3239 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3240 String resultValue = imp->fastGetAttribute(HTMLNames::limitedtoonlyattribute
Attr); | 3240 String resultValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyattribut
eAttr); |
3241 if (resultValue.isEmpty()) { | 3241 if (resultValue.isEmpty()) { |
3242 ; | 3242 ; |
3243 } else if (equalIgnoringCase(resultValue, "Per")) { | 3243 } else if (equalIgnoringCase(resultValue, "Per")) { |
3244 resultValue = "Per"; | 3244 resultValue = "Per"; |
3245 } else if (equalIgnoringCase(resultValue, "Paal")) { | 3245 } else if (equalIgnoringCase(resultValue, "Paal")) { |
3246 resultValue = "Paal"; | 3246 resultValue = "Paal"; |
3247 } else if (equalIgnoringCase(resultValue, "Espen")) { | 3247 } else if (equalIgnoringCase(resultValue, "Espen")) { |
3248 resultValue = "Espen"; | 3248 resultValue = "Espen"; |
3249 } else { | 3249 } else { |
3250 resultValue = ""; | 3250 resultValue = ""; |
3251 } | 3251 } |
3252 v8SetReturnValueString(info, resultValue, info.GetIsolate()); | 3252 v8SetReturnValueString(info, resultValue, info.GetIsolate()); |
3253 } | 3253 } |
3254 | 3254 |
3255 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 3255 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
3256 { | 3256 { |
3257 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3257 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3258 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeGetter(info); | 3258 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeGetter(info); |
3259 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3259 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3260 } | 3260 } |
3261 | 3261 |
3262 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 3262 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
3263 { | 3263 { |
3264 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3264 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3265 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3265 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3266 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3266 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3267 imp->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); | 3267 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); |
3268 } | 3268 } |
3269 | 3269 |
3270 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3270 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3271 { | 3271 { |
3272 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3272 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3273 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3273 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3274 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeSetter(jsValue, i
nfo); | 3274 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeSetter(jsValue, i
nfo); |
3275 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3275 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3276 } | 3276 } |
3277 | 3277 |
3278 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 3278 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
3279 { | 3279 { |
3280 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3280 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3281 String resultValue = imp->fastGetAttribute(HTMLNames::OtherAttr); | 3281 String resultValue = impl->fastGetAttribute(HTMLNames::OtherAttr); |
3282 if (resultValue.isEmpty()) { | 3282 if (resultValue.isEmpty()) { |
3283 ; | 3283 ; |
3284 } else if (equalIgnoringCase(resultValue, "Value1")) { | 3284 } else if (equalIgnoringCase(resultValue, "Value1")) { |
3285 resultValue = "Value1"; | 3285 resultValue = "Value1"; |
3286 } else if (equalIgnoringCase(resultValue, "Value2")) { | 3286 } else if (equalIgnoringCase(resultValue, "Value2")) { |
3287 resultValue = "Value2"; | 3287 resultValue = "Value2"; |
3288 } else { | 3288 } else { |
3289 resultValue = ""; | 3289 resultValue = ""; |
3290 } | 3290 } |
3291 v8SetReturnValueString(info, resultValue, info.GetIsolate()); | 3291 v8SetReturnValueString(info, resultValue, info.GetIsolate()); |
3292 } | 3292 } |
3293 | 3293 |
3294 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3294 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3295 { | 3295 { |
3296 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3296 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3297 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info)
; | 3297 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info)
; |
3298 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3298 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3299 } | 3299 } |
3300 | 3300 |
3301 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) | 3301 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) |
3302 { | 3302 { |
3303 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3303 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3304 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3304 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3305 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3305 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3306 imp->setAttribute(HTMLNames::OtherAttr, cppValue); | 3306 impl->setAttribute(HTMLNames::OtherAttr, cppValue); |
3307 } | 3307 } |
3308 | 3308 |
3309 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3309 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3310 { | 3310 { |
3311 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3311 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3312 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3312 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3313 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeSetter(jsVal
ue, info); | 3313 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeSetter(jsVal
ue, info); |
3314 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3314 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3315 } | 3315 } |
3316 | 3316 |
3317 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 3317 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) |
3318 { | 3318 { |
3319 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3319 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3320 String resultValue = imp->fastGetAttribute(HTMLNames::limitedwithmissingdefa
ultattributeAttr); | 3320 String resultValue = impl->fastGetAttribute(HTMLNames::limitedwithmissingdef
aultattributeAttr); |
3321 if (resultValue.isEmpty()) { | 3321 if (resultValue.isEmpty()) { |
3322 resultValue = "rsa"; | 3322 resultValue = "rsa"; |
3323 } else if (equalIgnoringCase(resultValue, "rsa")) { | 3323 } else if (equalIgnoringCase(resultValue, "rsa")) { |
3324 resultValue = "rsa"; | 3324 resultValue = "rsa"; |
3325 } else if (equalIgnoringCase(resultValue, "dsa")) { | 3325 } else if (equalIgnoringCase(resultValue, "dsa")) { |
3326 resultValue = "dsa"; | 3326 resultValue = "dsa"; |
3327 } else { | 3327 } else { |
3328 resultValue = ""; | 3328 resultValue = ""; |
3329 } | 3329 } |
3330 v8SetReturnValueString(info, resultValue, info.GetIsolate()); | 3330 v8SetReturnValueString(info, resultValue, info.GetIsolate()); |
3331 } | 3331 } |
3332 | 3332 |
3333 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3333 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local<
v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3334 { | 3334 { |
3335 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3335 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3336 TestObjectPythonV8Internal::limitedWithMissingDefaultAttributeAttributeGette
r(info); | 3336 TestObjectPythonV8Internal::limitedWithMissingDefaultAttributeAttributeGette
r(info); |
3337 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3337 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3338 } | 3338 } |
3339 | 3339 |
3340 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3340 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3341 { | 3341 { |
3342 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3342 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3343 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3343 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3344 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3344 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3345 imp->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppValu
e); | 3345 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal
ue); |
3346 } | 3346 } |
3347 | 3347 |
3348 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) | 3348 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>&
info) |
3349 { | 3349 { |
3350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3351 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3351 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3352 TestObjectPythonV8Internal::limitedWithMissingDefaultAttributeAttributeSette
r(jsValue, info); | 3352 TestObjectPythonV8Internal::limitedWithMissingDefaultAttributeAttributeSette
r(jsValue, info); |
3353 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3353 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3354 } | 3354 } |
3355 | 3355 |
3356 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P
ropertyCallbackInfo<v8::Value>& info) | 3356 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P
ropertyCallbackInfo<v8::Value>& info) |
3357 { | 3357 { |
3358 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3358 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3359 String resultValue = imp->fastGetAttribute(HTMLNames::limitedwithinvalidmiss
ingdefaultattributeAttr); | 3359 String resultValue = impl->fastGetAttribute(HTMLNames::limitedwithinvalidmis
singdefaultattributeAttr); |
3360 if (resultValue.isEmpty()) { | 3360 if (resultValue.isEmpty()) { |
3361 resultValue = "auto"; | 3361 resultValue = "auto"; |
3362 } else if (equalIgnoringCase(resultValue, "ltr")) { | 3362 } else if (equalIgnoringCase(resultValue, "ltr")) { |
3363 resultValue = "ltr"; | 3363 resultValue = "ltr"; |
3364 } else if (equalIgnoringCase(resultValue, "rtl")) { | 3364 } else if (equalIgnoringCase(resultValue, "rtl")) { |
3365 resultValue = "rtl"; | 3365 resultValue = "rtl"; |
3366 } else if (equalIgnoringCase(resultValue, "auto")) { | 3366 } else if (equalIgnoringCase(resultValue, "auto")) { |
3367 resultValue = "auto"; | 3367 resultValue = "auto"; |
3368 } else { | 3368 } else { |
3369 resultValue = "ltr"; | 3369 resultValue = "ltr"; |
3370 } | 3370 } |
3371 v8SetReturnValueString(info, resultValue, info.GetIsolate()); | 3371 v8SetReturnValueString(info, resultValue, info.GetIsolate()); |
3372 } | 3372 } |
3373 | 3373 |
3374 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8:
:Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3374 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8:
:Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3375 { | 3375 { |
3376 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3376 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3377 TestObjectPythonV8Internal::limitedWithInvalidMissingDefaultAttributeAttribu
teGetter(info); | 3377 TestObjectPythonV8Internal::limitedWithInvalidMissingDefaultAttributeAttribu
teGetter(info); |
3378 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3378 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3379 } | 3379 } |
3380 | 3380 |
3381 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3381 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3382 { | 3382 { |
3383 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3383 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3384 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3384 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3385 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3385 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3386 imp->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); | 3386 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); |
3387 } | 3387 } |
3388 | 3388 |
3389 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo
<void>& info) | 3389 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo
<void>& info) |
3390 { | 3390 { |
3391 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3391 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3392 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3392 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3393 TestObjectPythonV8Internal::limitedWithInvalidMissingDefaultAttributeAttribu
teSetter(jsValue, info); | 3393 TestObjectPythonV8Internal::limitedWithInvalidMissingDefaultAttributeAttribu
teSetter(jsValue, info); |
3394 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3394 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3395 } | 3395 } |
3396 | 3396 |
3397 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 3397 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) |
3398 { | 3398 { |
3399 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3399 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3400 String resultValue = imp->fastGetAttribute(HTMLNames::corssettingattributeAt
tr); | 3400 String resultValue = impl->fastGetAttribute(HTMLNames::corssettingattributeA
ttr); |
3401 if (resultValue.isNull()) { | 3401 if (resultValue.isNull()) { |
3402 ; | 3402 ; |
3403 } else if (resultValue.isEmpty()) { | 3403 } else if (resultValue.isEmpty()) { |
3404 resultValue = "anonymous"; | 3404 resultValue = "anonymous"; |
3405 } else if (equalIgnoringCase(resultValue, "anonymous")) { | 3405 } else if (equalIgnoringCase(resultValue, "anonymous")) { |
3406 resultValue = "anonymous"; | 3406 resultValue = "anonymous"; |
3407 } else if (equalIgnoringCase(resultValue, "use-credentials")) { | 3407 } else if (equalIgnoringCase(resultValue, "use-credentials")) { |
3408 resultValue = "use-credentials"; | 3408 resultValue = "use-credentials"; |
3409 } else { | 3409 } else { |
3410 resultValue = "anonymous"; | 3410 resultValue = "anonymous"; |
3411 } | 3411 } |
3412 v8SetReturnValueString(info, resultValue, info.GetIsolate()); | 3412 v8SetReturnValueString(info, resultValue, info.GetIsolate()); |
3413 } | 3413 } |
3414 | 3414 |
3415 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 3415 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::String>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
3416 { | 3416 { |
3417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3417 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3418 TestObjectPythonV8Internal::corsSettingAttributeAttributeGetter(info); | 3418 TestObjectPythonV8Internal::corsSettingAttributeAttributeGetter(info); |
3419 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3419 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3420 } | 3420 } |
3421 | 3421 |
3422 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro
pertyCallbackInfo<v8::Value>& info) | 3422 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro
pertyCallbackInfo<v8::Value>& info) |
3423 { | 3423 { |
3424 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3424 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3425 String resultValue = imp->fastGetAttribute(HTMLNames::limitedwithemptymissin
ginvalidattributeAttr); | 3425 String resultValue = impl->fastGetAttribute(HTMLNames::limitedwithemptymissi
nginvalidattributeAttr); |
3426 if (resultValue.isNull()) { | 3426 if (resultValue.isNull()) { |
3427 resultValue = "missing"; | 3427 resultValue = "missing"; |
3428 } else if (resultValue.isEmpty()) { | 3428 } else if (resultValue.isEmpty()) { |
3429 resultValue = "empty"; | 3429 resultValue = "empty"; |
3430 } else if (equalIgnoringCase(resultValue, "empty")) { | 3430 } else if (equalIgnoringCase(resultValue, "empty")) { |
3431 resultValue = "empty"; | 3431 resultValue = "empty"; |
3432 } else if (equalIgnoringCase(resultValue, "missing")) { | 3432 } else if (equalIgnoringCase(resultValue, "missing")) { |
3433 resultValue = "missing"; | 3433 resultValue = "missing"; |
3434 } else if (equalIgnoringCase(resultValue, "invalid")) { | 3434 } else if (equalIgnoringCase(resultValue, "invalid")) { |
3435 resultValue = "invalid"; | 3435 resultValue = "invalid"; |
3436 } else if (equalIgnoringCase(resultValue, "a-normal")) { | 3436 } else if (equalIgnoringCase(resultValue, "a-normal")) { |
3437 resultValue = "a-normal"; | 3437 resultValue = "a-normal"; |
3438 } else { | 3438 } else { |
3439 resultValue = "invalid"; | 3439 resultValue = "invalid"; |
3440 } | 3440 } |
3441 v8SetReturnValueString(info, resultValue, info.GetIsolate()); | 3441 v8SetReturnValueString(info, resultValue, info.GetIsolate()); |
3442 } | 3442 } |
3443 | 3443 |
3444 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L
ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3444 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L
ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3445 { | 3445 { |
3446 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3446 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3447 TestObjectPythonV8Internal::limitedWithEmptyMissingInvalidAttributeAttribute
Getter(info); | 3447 TestObjectPythonV8Internal::limitedWithEmptyMissingInvalidAttributeAttribute
Getter(info); |
3448 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3448 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3449 } | 3449 } |
3450 | 3450 |
3451 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) | 3451 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) |
3452 { | 3452 { |
3453 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3453 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3454 v8SetReturnValueInt(info, imp->replaceableReadonlyLongAttribute()); | 3454 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAttribute()); |
3455 } | 3455 } |
3456 | 3456 |
3457 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3457 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3458 { | 3458 { |
3459 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3459 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3460 TestObjectPythonV8Internal::replaceableReadonlyLongAttributeAttributeGetter(
info); | 3460 TestObjectPythonV8Internal::replaceableReadonlyLongAttributeAttributeGetter(
info); |
3461 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3461 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3462 } | 3462 } |
3463 | 3463 |
3464 static void locationReplaceableAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 3464 static void locationReplaceableAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) |
3465 { | 3465 { |
3466 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3466 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3467 v8SetReturnValueFast(info, WTF::getPtr(imp->locationReplaceable()), imp); | 3467 v8SetReturnValueFast(info, WTF::getPtr(impl->locationReplaceable()), impl); |
3468 } | 3468 } |
3469 | 3469 |
3470 static void locationReplaceableAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 3470 static void locationReplaceableAttributeGetterCallback(v8::Local<v8::String>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
3471 { | 3471 { |
3472 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3472 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3473 TestObjectPythonV8Internal::locationReplaceableAttributeGetter(info); | 3473 TestObjectPythonV8Internal::locationReplaceableAttributeGetter(info); |
3474 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3474 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3475 } | 3475 } |
3476 | 3476 |
3477 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) | 3477 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> jsValue, con
st v8::PropertyCallbackInfo<void>& info) |
3478 { | 3478 { |
3479 TestObjectPython* proxyImp = V8TestObjectPython::toNative(info.Holder()); | 3479 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(info.Holder()); |
3480 RefPtr<TestNode> imp = WTF::getPtr(proxyImp->locationReplaceable()); | 3480 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceable()); |
3481 if (!imp) | 3481 if (!impl) |
3482 return; | 3482 return; |
3483 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3483 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3484 imp->setHref(cppValue); | 3484 impl->setHref(cppValue); |
3485 } | 3485 } |
3486 | 3486 |
3487 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3487 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3488 { | 3488 { |
3489 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3489 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3490 TestObjectPythonV8Internal::locationReplaceableAttributeSetter(jsValue, info
); | 3490 TestObjectPythonV8Internal::locationReplaceableAttributeSetter(jsValue, info
); |
3491 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3491 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3492 } | 3492 } |
3493 | 3493 |
3494 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 3494 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
3495 { | 3495 { |
3496 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3496 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3497 v8SetReturnValueInt(info, imp->runtimeEnabledLongAttribute()); | 3497 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); |
3498 } | 3498 } |
3499 | 3499 |
3500 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3500 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3501 { | 3501 { |
3502 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3502 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3503 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeGetter(info)
; | 3503 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeGetter(info)
; |
3504 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3504 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3505 } | 3505 } |
3506 | 3506 |
3507 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) | 3507 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa
lue, const v8::PropertyCallbackInfo<void>& info) |
3508 { | 3508 { |
3509 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 3509 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
3510 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3510 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3511 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 3511 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
3512 imp->setRuntimeEnabledLongAttribute(cppValue); | 3512 impl->setRuntimeEnabledLongAttribute(cppValue); |
3513 } | 3513 } |
3514 | 3514 |
3515 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3515 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3516 { | 3516 { |
3517 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3517 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3518 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeSetter(jsVal
ue, info); | 3518 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeSetter(jsVal
ue, info); |
3519 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3519 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3520 } | 3520 } |
3521 | 3521 |
3522 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 3522 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
3523 { | 3523 { |
3524 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3524 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3525 v8SetReturnValueInt(info, imp->perContextEnabledRuntimeEnabledLongAttribute(
)); | 3525 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute
()); |
3526 } | 3526 } |
3527 | 3527 |
3528 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3528 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3529 { | 3529 { |
3530 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3530 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3531 TestObjectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttr
ibuteGetter(info); | 3531 TestObjectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttr
ibuteGetter(info); |
3532 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3532 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3533 } | 3533 } |
3534 | 3534 |
3535 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3535 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3536 { | 3536 { |
3537 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledRuntimeEnabledLongAttribute", "TestObjectPython", info.Holder(), info.GetIsol
ate()); | 3537 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab
ledRuntimeEnabledLongAttribute", "TestObjectPython", info.Holder(), info.GetIsol
ate()); |
3538 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3538 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3539 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 3539 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
3540 imp->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); | 3540 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); |
3541 } | 3541 } |
3542 | 3542 |
3543 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI
nfo<void>& info) | 3543 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI
nfo<void>& info) |
3544 { | 3544 { |
3545 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3545 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3546 TestObjectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttr
ibuteSetter(jsValue, info); | 3546 TestObjectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttr
ibuteSetter(jsValue, info); |
3547 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3547 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3548 } | 3548 } |
3549 | 3549 |
3550 #if ENABLE(CONDITION) | 3550 #if ENABLE(CONDITION) |
3551 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop
ertyCallbackInfo<v8::Value>& info) | 3551 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop
ertyCallbackInfo<v8::Value>& info) |
3552 { | 3552 { |
3553 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3553 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3554 v8SetReturnValueInt(info, imp->conditionalRuntimeEnabledLongAttribute()); | 3554 v8SetReturnValueInt(info, impl->conditionalRuntimeEnabledLongAttribute()); |
3555 } | 3555 } |
3556 #endif // ENABLE(CONDITION) | 3556 #endif // ENABLE(CONDITION) |
3557 | 3557 |
3558 #if ENABLE(CONDITION) | 3558 #if ENABLE(CONDITION) |
3559 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3559 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3560 { | 3560 { |
3561 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3561 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3562 TestObjectPythonV8Internal::conditionalRuntimeEnabledLongAttributeAttributeG
etter(info); | 3562 TestObjectPythonV8Internal::conditionalRuntimeEnabledLongAttributeAttributeG
etter(info); |
3563 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3563 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3564 } | 3564 } |
3565 #endif // ENABLE(CONDITION) | 3565 #endif // ENABLE(CONDITION) |
3566 | 3566 |
3567 #if ENABLE(CONDITION) | 3567 #if ENABLE(CONDITION) |
3568 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3568 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3569 { | 3569 { |
3570 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun
timeEnabledLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate())
; | 3570 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun
timeEnabledLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate())
; |
3571 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3571 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3572 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 3572 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
3573 imp->setConditionalRuntimeEnabledLongAttribute(cppValue); | 3573 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); |
3574 } | 3574 } |
3575 #endif // ENABLE(CONDITION) | 3575 #endif // ENABLE(CONDITION) |
3576 | 3576 |
3577 #if ENABLE(CONDITION) | 3577 #if ENABLE(CONDITION) |
3578 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo
id>& info) | 3578 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo
id>& info) |
3579 { | 3579 { |
3580 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3580 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3581 TestObjectPythonV8Internal::conditionalRuntimeEnabledLongAttributeAttributeS
etter(jsValue, info); | 3581 TestObjectPythonV8Internal::conditionalRuntimeEnabledLongAttributeAttributeS
etter(jsValue, info); |
3582 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3582 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3583 } | 3583 } |
3584 #endif // ENABLE(CONDITION) | 3584 #endif // ENABLE(CONDITION) |
3585 | 3585 |
3586 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
er(const v8::PropertyCallbackInfo<v8::Value>& info) | 3586 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
er(const v8::PropertyCallbackInfo<v8::Value>& info) |
3587 { | 3587 { |
3588 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3588 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3589 v8SetReturnValueString(info, imp->setterCallWithActiveWindowAndFirstWindowSt
ringAttribute(), info.GetIsolate()); | 3589 v8SetReturnValueString(info, impl->setterCallWithActiveWindowAndFirstWindowS
tringAttribute(), info.GetIsolate()); |
3590 } | 3590 } |
3591 | 3591 |
3592 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
erCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& inf
o) | 3592 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
erCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& inf
o) |
3593 { | 3593 { |
3594 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3594 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3595 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt
tributeAttributeGetter(info); | 3595 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt
tributeAttributeGetter(info); |
3596 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3596 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3597 } | 3597 } |
3598 | 3598 |
3599 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3599 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3600 { | 3600 { |
3601 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3601 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3602 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3602 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3603 imp->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMWi
ndow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); | 3603 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW
indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); |
3604 } | 3604 } |
3605 | 3605 |
3606 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::Proper
tyCallbackInfo<void>& info) | 3606 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::Proper
tyCallbackInfo<void>& info) |
3607 { | 3607 { |
3608 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3608 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3609 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt
tributeAttributeSetter(jsValue, info); | 3609 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt
tributeAttributeSetter(jsValue, info); |
3610 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3610 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3611 } | 3611 } |
3612 | 3612 |
3613 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) | 3613 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) |
3614 { | 3614 { |
3615 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3615 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3616 v8SetReturnValueString(info, imp->setterCallWithExecutionContextStringAttrib
ute(), info.GetIsolate()); | 3616 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri
bute(), info.GetIsolate()); |
3617 } | 3617 } |
3618 | 3618 |
3619 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3619 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback
(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3620 { | 3620 { |
3621 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3621 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3622 TestObjectPythonV8Internal::setterCallWithExecutionContextStringAttributeAtt
ributeGetter(info); | 3622 TestObjectPythonV8Internal::setterCallWithExecutionContextStringAttributeAtt
ributeGetter(info); |
3623 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3623 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3624 } | 3624 } |
3625 | 3625 |
3626 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3626 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc
al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3627 { | 3627 { |
3628 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3628 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3629 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3629 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3630 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 3630 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
3631 imp->setSetterCallWithExecutionContextStringAttribute(scriptContext, cppValu
e); | 3631 impl->setSetterCallWithExecutionContextStringAttribute(scriptContext, cppVal
ue); |
3632 } | 3632 } |
3633 | 3633 |
3634 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallback
Info<void>& info) | 3634 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback
(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallback
Info<void>& info) |
3635 { | 3635 { |
3636 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3636 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3637 TestObjectPythonV8Internal::setterCallWithExecutionContextStringAttributeAtt
ributeSetter(jsValue, info); | 3637 TestObjectPythonV8Internal::setterCallWithExecutionContextStringAttributeAtt
ributeSetter(jsValue, info); |
3638 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3638 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3639 } | 3639 } |
3640 | 3640 |
3641 static void strictTypeCheckingFloatAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) | 3641 static void strictTypeCheckingFloatAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) |
3642 { | 3642 { |
3643 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3643 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3644 v8SetReturnValue(info, imp->strictTypeCheckingFloatAttribute()); | 3644 v8SetReturnValue(info, impl->strictTypeCheckingFloatAttribute()); |
3645 } | 3645 } |
3646 | 3646 |
3647 static void strictTypeCheckingFloatAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3647 static void strictTypeCheckingFloatAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3648 { | 3648 { |
3649 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3649 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3650 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeGetter(
info); | 3650 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeGetter(
info); |
3651 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3651 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3652 } | 3652 } |
3653 | 3653 |
3654 static void strictTypeCheckingFloatAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) | 3654 static void strictTypeCheckingFloatAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) |
3655 { | 3655 { |
3656 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3656 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3657 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue()))
; | 3657 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue()))
; |
3658 imp->setStrictTypeCheckingFloatAttribute(cppValue); | 3658 impl->setStrictTypeCheckingFloatAttribute(cppValue); |
3659 } | 3659 } |
3660 | 3660 |
3661 static void strictTypeCheckingFloatAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) | 3661 static void strictTypeCheckingFloatAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) |
3662 { | 3662 { |
3663 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3663 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3664 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeSetter(
jsValue, info); | 3664 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeSetter(
jsValue, info); |
3665 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3665 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3666 } | 3666 } |
3667 | 3667 |
3668 static void strictTypeCheckingTestInterfaceAttributeAttributeGetter(const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 3668 static void strictTypeCheckingTestInterfaceAttributeAttributeGetter(const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
3669 { | 3669 { |
3670 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3670 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3671 v8SetReturnValueFast(info, WTF::getPtr(imp->strictTypeCheckingTestInterfaceA
ttribute()), imp); | 3671 v8SetReturnValueFast(info, WTF::getPtr(impl->strictTypeCheckingTestInterface
Attribute()), impl); |
3672 } | 3672 } |
3673 | 3673 |
3674 static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3674 static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3675 { | 3675 { |
3676 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3676 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3677 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut
eGetter(info); | 3677 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut
eGetter(info); |
3678 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3678 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3679 } | 3679 } |
3680 | 3680 |
3681 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3681 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3682 { | 3682 { |
3683 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec
kingTestInterfaceAttribute", "TestObjectPython", info.Holder(), info.GetIsolate(
)); | 3683 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec
kingTestInterfaceAttribute", "TestObjectPython", info.Holder(), info.GetIsolate(
)); |
3684 if (!isUndefinedOrNull(jsValue) && !V8TestInterface::hasInstance(jsValue, in
fo.GetIsolate())) { | 3684 if (!isUndefinedOrNull(jsValue) && !V8TestInterface::hasInstance(jsValue, in
fo.GetIsolate())) { |
3685 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); | 3685 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); |
3686 exceptionState.throwIfNeeded(); | 3686 exceptionState.throwIfNeeded(); |
3687 return; | 3687 return; |
3688 } | 3688 } |
3689 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3689 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3690 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC
heck(info.GetIsolate(), jsValue)); | 3690 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC
heck(info.GetIsolate(), jsValue)); |
3691 imp->setStrictTypeCheckingTestInterfaceAttribute(WTF::getPtr(cppValue)); | 3691 impl->setStrictTypeCheckingTestInterfaceAttribute(WTF::getPtr(cppValue)); |
3692 } | 3692 } |
3693 | 3693 |
3694 static void strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<
void>& info) | 3694 static void strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<
void>& info) |
3695 { | 3695 { |
3696 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3696 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3697 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut
eSetter(jsValue, info); | 3697 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut
eSetter(jsValue, info); |
3698 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3698 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3699 } | 3699 } |
3700 | 3700 |
3701 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) | 3701 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) |
3702 { | 3702 { |
3703 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3703 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3704 v8SetReturnValueString(info, imp->treatNullAsNullStringStringAttribute(), in
fo.GetIsolate()); | 3704 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i
nfo.GetIsolate()); |
3705 } | 3705 } |
3706 | 3706 |
3707 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3707 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca
l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3708 { | 3708 { |
3709 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3709 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3710 TestObjectPythonV8Internal::treatNullAsNullStringStringAttributeAttributeGet
ter(info); | 3710 TestObjectPythonV8Internal::treatNullAsNullStringStringAttributeAttributeGet
ter(info); |
3711 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3711 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3712 } | 3712 } |
3713 | 3713 |
3714 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3714 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3715 { | 3715 { |
3716 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3716 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3717 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal
ue, jsValue); | 3717 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal
ue, jsValue); |
3718 imp->setTreatNullAsNullStringStringAttribute(cppValue); | 3718 impl->setTreatNullAsNullStringStringAttribute(cppValue); |
3719 } | 3719 } |
3720 | 3720 |
3721 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) | 3721 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca
l<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void
>& info) |
3722 { | 3722 { |
3723 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3723 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3724 TestObjectPythonV8Internal::treatNullAsNullStringStringAttributeAttributeSet
ter(jsValue, info); | 3724 TestObjectPythonV8Internal::treatNullAsNullStringStringAttributeAttributeSet
ter(jsValue, info); |
3725 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3725 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3726 } | 3726 } |
3727 | 3727 |
3728 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 3728 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
3729 { | 3729 { |
3730 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3730 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3731 v8SetReturnValueStringOrNull(info, imp->treatReturnedNullStringAsNullStringA
ttribute(), info.GetIsolate()); | 3731 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Attribute(), info.GetIsolate()); |
3732 } | 3732 } |
3733 | 3733 |
3734 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3734 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3735 { | 3735 { |
3736 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3736 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3737 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttr
ibuteGetter(info); | 3737 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttr
ibuteGetter(info); |
3738 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3738 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3739 } | 3739 } |
3740 | 3740 |
3741 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3741 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3742 { | 3742 { |
3743 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3743 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3744 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3744 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3745 imp->setTreatReturnedNullStringAsNullStringAttribute(cppValue); | 3745 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); |
3746 } | 3746 } |
3747 | 3747 |
3748 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI
nfo<void>& info) | 3748 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI
nfo<void>& info) |
3749 { | 3749 { |
3750 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3750 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3751 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttr
ibuteSetter(jsValue, info); | 3751 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttr
ibuteSetter(jsValue, info); |
3752 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3752 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3753 } | 3753 } |
3754 | 3754 |
3755 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 3755 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) |
3756 { | 3756 { |
3757 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3757 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3758 v8SetReturnValueStringOrUndefined(info, imp->treatReturnedNullStringAsUndefi
nedStringAttribute(), info.GetIsolate()); | 3758 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringAttribute(), info.GetIsolate()); |
3759 } | 3759 } |
3760 | 3760 |
3761 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3761 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3762 { | 3762 { |
3763 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3763 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3764 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttribut
eAttributeGetter(info); | 3764 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttribut
eAttributeGetter(info); |
3765 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3765 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3766 } | 3766 } |
3767 | 3767 |
3768 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3768 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3769 { | 3769 { |
3770 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3770 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3771 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3771 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3772 imp->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); | 3772 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); |
3773 } | 3773 } |
3774 | 3774 |
3775 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCall
backInfo<void>& info) | 3775 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCall
backInfo<void>& info) |
3776 { | 3776 { |
3777 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3777 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3778 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttribut
eAttributeSetter(jsValue, info); | 3778 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttribut
eAttributeSetter(jsValue, info); |
3779 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3779 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3780 } | 3780 } |
3781 | 3781 |
3782 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) | 3782 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) |
3783 { | 3783 { |
3784 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3784 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3785 v8SetReturnValueString(info, imp->getURLAttribute(HTMLNames::urlstringattrib
uteAttr), info.GetIsolate()); | 3785 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri
buteAttr), info.GetIsolate()); |
3786 } | 3786 } |
3787 | 3787 |
3788 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 3788 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) |
3789 { | 3789 { |
3790 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3790 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3791 TestObjectPythonV8Internal::urlStringAttributeAttributeGetter(info); | 3791 TestObjectPythonV8Internal::urlStringAttributeAttributeGetter(info); |
3792 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3792 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3793 } | 3793 } |
3794 | 3794 |
3795 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) | 3795 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) |
3796 { | 3796 { |
3797 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3797 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3798 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3798 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3799 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3799 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3800 imp->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); | 3800 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); |
3801 } | 3801 } |
3802 | 3802 |
3803 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3803 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3804 { | 3804 { |
3805 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3805 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3806 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3806 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3807 TestObjectPythonV8Internal::urlStringAttributeAttributeSetter(jsValue, info)
; | 3807 TestObjectPythonV8Internal::urlStringAttributeAttributeSetter(jsValue, info)
; |
3808 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3808 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3809 } | 3809 } |
3810 | 3810 |
3811 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) | 3811 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) |
3812 { | 3812 { |
3813 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3813 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3814 v8SetReturnValueString(info, imp->getURLAttribute(HTMLNames::ReflectUrlAttri
buteAttr), info.GetIsolate()); | 3814 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::ReflectUrlAttr
ibuteAttr), info.GetIsolate()); |
3815 } | 3815 } |
3816 | 3816 |
3817 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 3817 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con
st v8::PropertyCallbackInfo<v8::Value>& info) |
3818 { | 3818 { |
3819 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3819 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3820 TestObjectPythonV8Internal::urlStringAttributeAttributeGetter(info); | 3820 TestObjectPythonV8Internal::urlStringAttributeAttributeGetter(info); |
3821 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3821 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3822 } | 3822 } |
3823 | 3823 |
3824 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) | 3824 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, cons
t v8::PropertyCallbackInfo<void>& info) |
3825 { | 3825 { |
3826 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3826 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3827 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3827 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3828 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3828 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3829 imp->setAttribute(HTMLNames::ReflectUrlAttributeAttr, cppValue); | 3829 impl->setAttribute(HTMLNames::ReflectUrlAttributeAttr, cppValue); |
3830 } | 3830 } |
3831 | 3831 |
3832 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3832 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:
:Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3833 { | 3833 { |
3834 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3834 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3835 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3835 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3836 TestObjectPythonV8Internal::urlStringAttributeAttributeSetter(jsValue, info)
; | 3836 TestObjectPythonV8Internal::urlStringAttributeAttributeSetter(jsValue, info)
; |
3837 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3837 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3838 } | 3838 } |
3839 | 3839 |
3840 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) | 3840 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) |
3841 { | 3841 { |
3842 v8::Handle<v8::Object> holder = V8TestObjectPython::findInstanceInPrototypeC
hain(info.This(), info.GetIsolate()); | 3842 v8::Handle<v8::Object> holder = V8TestObjectPython::findInstanceInPrototypeC
hain(info.This(), info.GetIsolate()); |
3843 if (holder.IsEmpty()) | 3843 if (holder.IsEmpty()) |
3844 return; | 3844 return; |
3845 TestObjectPython* imp = V8TestObjectPython::toNative(holder); | 3845 TestObjectPython* impl = V8TestObjectPython::toNative(holder); |
3846 v8SetReturnValueInt(info, imp->unforgeableLongAttribute()); | 3846 v8SetReturnValueInt(info, impl->unforgeableLongAttribute()); |
3847 } | 3847 } |
3848 | 3848 |
3849 static void unforgeableLongAttributeAttributeGetterCallback(v8::Local<v8::String
>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3849 static void unforgeableLongAttributeAttributeGetterCallback(v8::Local<v8::String
>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3850 { | 3850 { |
3851 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3851 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3852 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeGetter(info); | 3852 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeGetter(info); |
3853 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3853 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3854 } | 3854 } |
3855 | 3855 |
3856 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue
, const v8::PropertyCallbackInfo<void>& info) | 3856 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue
, const v8::PropertyCallbackInfo<void>& info) |
3857 { | 3857 { |
3858 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon
gAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); | 3858 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon
gAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()); |
3859 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3859 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3860 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); | 3860 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e
xceptionState); |
3861 imp->setUnforgeableLongAttribute(cppValue); | 3861 impl->setUnforgeableLongAttribute(cppValue); |
3862 } | 3862 } |
3863 | 3863 |
3864 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3864 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String
>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3865 { | 3865 { |
3866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3867 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeSetter(jsValue,
info); | 3867 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeSetter(jsValue,
info); |
3868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3869 } | 3869 } |
3870 | 3870 |
3871 static void anotherStringAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 3871 static void anotherStringAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
3872 { | 3872 { |
3873 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3873 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3874 v8SetReturnValueString(info, imp->fastGetAttribute(HTMLNames::ReflectUrlAttr
ibuteAsAStringAttr), info.GetIsolate()); | 3874 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::ReflectUrlAtt
ributeAsAStringAttr), info.GetIsolate()); |
3875 } | 3875 } |
3876 | 3876 |
3877 static void anotherStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 3877 static void anotherStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
3878 { | 3878 { |
3879 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3879 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3880 TestObjectPythonV8Internal::anotherStringAttributeAttributeGetter(info); | 3880 TestObjectPythonV8Internal::anotherStringAttributeAttributeGetter(info); |
3881 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3881 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3882 } | 3882 } |
3883 | 3883 |
3884 static void anotherStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 3884 static void anotherStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
3885 { | 3885 { |
3886 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3886 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3887 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 3887 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
3888 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3888 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3889 imp->setAttribute(HTMLNames::ReflectUrlAttributeAsAStringAttr, cppValue); | 3889 impl->setAttribute(HTMLNames::ReflectUrlAttributeAsAStringAttr, cppValue); |
3890 } | 3890 } |
3891 | 3891 |
3892 static void anotherStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3892 static void anotherStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3893 { | 3893 { |
3894 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3894 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3895 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 3895 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
3896 TestObjectPythonV8Internal::anotherStringAttributeAttributeSetter(jsValue, i
nfo); | 3896 TestObjectPythonV8Internal::anotherStringAttributeAttributeSetter(jsValue, i
nfo); |
3897 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3897 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3898 } | 3898 } |
3899 | 3899 |
3900 static void testInterfacePythonAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 3900 static void testInterfacePythonAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) |
3901 { | 3901 { |
3902 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3902 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3903 v8SetReturnValueFast(info, WTF::getPtr(imp->testInterfacePythonAttribute()),
imp); | 3903 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfacePythonAttribute())
, impl); |
3904 } | 3904 } |
3905 | 3905 |
3906 static void testInterfacePythonAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3906 static void testInterfacePythonAttributeAttributeGetterCallback(v8::Local<v8::St
ring>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3907 { | 3907 { |
3908 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3908 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3909 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeGetter(info
); | 3909 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeGetter(info
); |
3910 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3910 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3911 } | 3911 } |
3912 | 3912 |
3913 static void testInterfacePythonAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) | 3913 static void testInterfacePythonAttributeAttributeSetter(v8::Local<v8::Value> jsV
alue, const v8::PropertyCallbackInfo<void>& info) |
3914 { | 3914 { |
3915 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3915 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3916 V8TRYCATCH_VOID(TestInterfacePythonImplementation*, cppValue, V8TestInterfac
ePython::toNativeWithTypeCheck(info.GetIsolate(), jsValue)); | 3916 V8TRYCATCH_VOID(TestInterfacePythonImplementation*, cppValue, V8TestInterfac
ePython::toNativeWithTypeCheck(info.GetIsolate(), jsValue)); |
3917 imp->setTestInterfacePythonAttribute(WTF::getPtr(cppValue)); | 3917 impl->setTestInterfacePythonAttribute(WTF::getPtr(cppValue)); |
3918 } | 3918 } |
3919 | 3919 |
3920 static void testInterfacePythonAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3920 static void testInterfacePythonAttributeAttributeSetterCallback(v8::Local<v8::St
ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3921 { | 3921 { |
3922 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3922 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3923 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeSetter(jsVa
lue, info); | 3923 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeSetter(jsVa
lue, info); |
3924 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3924 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3925 } | 3925 } |
3926 | 3926 |
3927 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 3927 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) |
3928 { | 3928 { |
3929 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3929 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3930 v8SetReturnValueFast(info, WTF::getPtr(imp->testInterfaceWillBeGarbageCollec
tedAttribute()), imp); | 3930 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle
ctedAttribute()), impl); |
3931 } | 3931 } |
3932 | 3932 |
3933 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3933 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback(
v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3934 { | 3934 { |
3935 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3935 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3936 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttr
ibuteGetter(info); | 3936 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttr
ibuteGetter(info); |
3937 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3937 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3938 } | 3938 } |
3939 | 3939 |
3940 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3940 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3941 { | 3941 { |
3942 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3942 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3943 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf
aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), jsValue)); | 3943 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf
aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), jsValue)); |
3944 imp->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue)); | 3944 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue))
; |
3945 } | 3945 } |
3946 | 3946 |
3947 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI
nfo<void>& info) | 3947 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI
nfo<void>& info) |
3948 { | 3948 { |
3949 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3949 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3950 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttr
ibuteSetter(jsValue, info); | 3950 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttr
ibuteSetter(jsValue, info); |
3951 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3951 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3952 } | 3952 } |
3953 | 3953 |
3954 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 3954 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) |
3955 { | 3955 { |
3956 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3956 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3957 bool isNull = false; | 3957 bool isNull = false; |
3958 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> jsValue = imp->testI
nterfaceWillBeGarbageCollectedOrNullAttribute(isNull); | 3958 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> jsValue = impl->test
InterfaceWillBeGarbageCollectedOrNullAttribute(isNull); |
3959 if (isNull) { | 3959 if (isNull) { |
3960 v8SetReturnValueNull(info); | 3960 v8SetReturnValueNull(info); |
3961 return; | 3961 return; |
3962 } | 3962 } |
3963 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), imp); | 3963 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), impl); |
3964 } | 3964 } |
3965 | 3965 |
3966 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3966 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal
lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
3967 { | 3967 { |
3968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 3968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
3969 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttribu
teAttributeGetter(info); | 3969 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttribu
teAttributeGetter(info); |
3970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3971 } | 3971 } |
3972 | 3972 |
3973 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 3973 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8
::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
3974 { | 3974 { |
3975 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 3975 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
3976 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf
aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), jsValue)); | 3976 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf
aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), jsValue)); |
3977 imp->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppVa
lue)); | 3977 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV
alue)); |
3978 } | 3978 } |
3979 | 3979 |
3980 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCal
lbackInfo<void>& info) | 3980 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal
lback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCal
lbackInfo<void>& info) |
3981 { | 3981 { |
3982 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 3982 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
3983 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttribu
teAttributeSetter(jsValue, info); | 3983 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttribu
teAttributeSetter(jsValue, info); |
3984 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 3984 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
3985 } | 3985 } |
3986 | 3986 |
3987 static void TestObjectPythonConstructorGetter(v8::Local<v8::String>, const v8::P
ropertyCallbackInfo<v8::Value>& info) | 3987 static void TestObjectPythonConstructorGetter(v8::Local<v8::String>, const v8::P
ropertyCallbackInfo<v8::Value>& info) |
(...skipping 11 matching lines...) Expand all Loading... |
3999 info.This()->ForceSet(name, jsValue); | 3999 info.This()->ForceSet(name, jsValue); |
4000 } | 4000 } |
4001 | 4001 |
4002 static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str
ing> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) | 4002 static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str
ing> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i
nfo) |
4003 { | 4003 { |
4004 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name,
jsValue, info); | 4004 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name,
jsValue, info); |
4005 } | 4005 } |
4006 | 4006 |
4007 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4007 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4008 { | 4008 { |
4009 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4009 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4010 imp->voidMethod(); | 4010 impl->voidMethod(); |
4011 } | 4011 } |
4012 | 4012 |
4013 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4013 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4014 { | 4014 { |
4015 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4015 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4016 TestObjectPythonV8Internal::voidMethodMethod(info); | 4016 TestObjectPythonV8Internal::voidMethodMethod(info); |
4017 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4017 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4018 } | 4018 } |
4019 | 4019 |
4020 static void staticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 4020 static void staticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
4021 { | 4021 { |
4022 TestObjectPython::staticVoidMethod(); | 4022 TestObjectPython::staticVoidMethod(); |
4023 } | 4023 } |
4024 | 4024 |
4025 static void staticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4025 static void staticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
4026 { | 4026 { |
4027 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4027 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4028 TestObjectPythonV8Internal::staticVoidMethodMethod(info); | 4028 TestObjectPythonV8Internal::staticVoidMethodMethod(info); |
4029 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4029 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4030 } | 4030 } |
4031 | 4031 |
4032 static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4032 static void dateMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4033 { | 4033 { |
4034 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4034 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4035 v8SetReturnValue(info, v8DateOrNull(imp->dateMethod(), info.GetIsolate())); | 4035 v8SetReturnValue(info, v8DateOrNull(impl->dateMethod(), info.GetIsolate())); |
4036 } | 4036 } |
4037 | 4037 |
4038 static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4038 static void dateMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4039 { | 4039 { |
4040 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4040 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4041 TestObjectPythonV8Internal::dateMethodMethod(info); | 4041 TestObjectPythonV8Internal::dateMethodMethod(info); |
4042 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4042 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4043 } | 4043 } |
4044 | 4044 |
4045 static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4045 static void stringMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4046 { | 4046 { |
4047 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4047 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4048 v8SetReturnValueString(info, imp->stringMethod(), info.GetIsolate()); | 4048 v8SetReturnValueString(info, impl->stringMethod(), info.GetIsolate()); |
4049 } | 4049 } |
4050 | 4050 |
4051 static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) | 4051 static void stringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) |
4052 { | 4052 { |
4053 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4053 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4054 TestObjectPythonV8Internal::stringMethodMethod(info); | 4054 TestObjectPythonV8Internal::stringMethodMethod(info); |
4055 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4055 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4056 } | 4056 } |
4057 | 4057 |
4058 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4058 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4059 { | 4059 { |
4060 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4060 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4061 v8SetReturnValue(info, static_cast<double>(imp->readonlyDOMTimeStampMethod()
)); | 4061 v8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampMethod(
))); |
4062 } | 4062 } |
4063 | 4063 |
4064 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 4064 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
4065 { | 4065 { |
4066 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4066 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4067 TestObjectPythonV8Internal::readonlyDOMTimeStampMethodMethod(info); | 4067 TestObjectPythonV8Internal::readonlyDOMTimeStampMethodMethod(info); |
4068 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4068 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4069 } | 4069 } |
4070 | 4070 |
4071 static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4071 static void booleanMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4072 { | 4072 { |
4073 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4073 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4074 v8SetReturnValueBool(info, imp->booleanMethod()); | 4074 v8SetReturnValueBool(info, impl->booleanMethod()); |
4075 } | 4075 } |
4076 | 4076 |
4077 static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) | 4077 static void booleanMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) |
4078 { | 4078 { |
4079 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4079 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4080 TestObjectPythonV8Internal::booleanMethodMethod(info); | 4080 TestObjectPythonV8Internal::booleanMethodMethod(info); |
4081 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4081 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4082 } | 4082 } |
4083 | 4083 |
4084 static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4084 static void byteMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4085 { | 4085 { |
4086 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4086 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4087 v8SetReturnValueInt(info, imp->byteMethod()); | 4087 v8SetReturnValueInt(info, impl->byteMethod()); |
4088 } | 4088 } |
4089 | 4089 |
4090 static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4090 static void byteMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4091 { | 4091 { |
4092 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4092 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4093 TestObjectPythonV8Internal::byteMethodMethod(info); | 4093 TestObjectPythonV8Internal::byteMethodMethod(info); |
4094 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4094 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4095 } | 4095 } |
4096 | 4096 |
4097 static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4097 static void doubleMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4098 { | 4098 { |
4099 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4099 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4100 v8SetReturnValue(info, imp->doubleMethod()); | 4100 v8SetReturnValue(info, impl->doubleMethod()); |
4101 } | 4101 } |
4102 | 4102 |
4103 static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) | 4103 static void doubleMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>
& info) |
4104 { | 4104 { |
4105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4106 TestObjectPythonV8Internal::doubleMethodMethod(info); | 4106 TestObjectPythonV8Internal::doubleMethodMethod(info); |
4107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4108 } | 4108 } |
4109 | 4109 |
4110 static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4110 static void floatMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4111 { | 4111 { |
4112 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4112 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4113 v8SetReturnValue(info, imp->floatMethod()); | 4113 v8SetReturnValue(info, impl->floatMethod()); |
4114 } | 4114 } |
4115 | 4115 |
4116 static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4116 static void floatMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4117 { | 4117 { |
4118 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4118 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4119 TestObjectPythonV8Internal::floatMethodMethod(info); | 4119 TestObjectPythonV8Internal::floatMethodMethod(info); |
4120 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4120 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4121 } | 4121 } |
4122 | 4122 |
4123 static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4123 static void longMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4124 { | 4124 { |
4125 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4125 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4126 v8SetReturnValueInt(info, imp->longMethod()); | 4126 v8SetReturnValueInt(info, impl->longMethod()); |
4127 } | 4127 } |
4128 | 4128 |
4129 static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4129 static void longMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4130 { | 4130 { |
4131 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4131 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4132 TestObjectPythonV8Internal::longMethodMethod(info); | 4132 TestObjectPythonV8Internal::longMethodMethod(info); |
4133 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4133 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4134 } | 4134 } |
4135 | 4135 |
4136 static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info
) | 4136 static void longLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info
) |
4137 { | 4137 { |
4138 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4138 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4139 v8SetReturnValue(info, static_cast<double>(imp->longLongMethod())); | 4139 v8SetReturnValue(info, static_cast<double>(impl->longLongMethod())); |
4140 } | 4140 } |
4141 | 4141 |
4142 static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 4142 static void longLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
4143 { | 4143 { |
4144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4145 TestObjectPythonV8Internal::longLongMethodMethod(info); | 4145 TestObjectPythonV8Internal::longLongMethodMethod(info); |
4146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4147 } | 4147 } |
4148 | 4148 |
4149 static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4149 static void octetMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4150 { | 4150 { |
4151 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4151 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4152 v8SetReturnValueUnsigned(info, imp->octetMethod()); | 4152 v8SetReturnValueUnsigned(info, impl->octetMethod()); |
4153 } | 4153 } |
4154 | 4154 |
4155 static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4155 static void octetMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4156 { | 4156 { |
4157 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4157 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4158 TestObjectPythonV8Internal::octetMethodMethod(info); | 4158 TestObjectPythonV8Internal::octetMethodMethod(info); |
4159 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4159 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4160 } | 4160 } |
4161 | 4161 |
4162 static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4162 static void shortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4163 { | 4163 { |
4164 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4164 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4165 v8SetReturnValueInt(info, imp->shortMethod()); | 4165 v8SetReturnValueInt(info, impl->shortMethod()); |
4166 } | 4166 } |
4167 | 4167 |
4168 static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4168 static void shortMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4169 { | 4169 { |
4170 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4170 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4171 TestObjectPythonV8Internal::shortMethodMethod(info); | 4171 TestObjectPythonV8Internal::shortMethodMethod(info); |
4172 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4172 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4173 } | 4173 } |
4174 | 4174 |
4175 static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4175 static void unsignedLongMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4176 { | 4176 { |
4177 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4177 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4178 v8SetReturnValueUnsigned(info, imp->unsignedLongMethod()); | 4178 v8SetReturnValueUnsigned(info, impl->unsignedLongMethod()); |
4179 } | 4179 } |
4180 | 4180 |
4181 static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4181 static void unsignedLongMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4182 { | 4182 { |
4183 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4183 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4184 TestObjectPythonV8Internal::unsignedLongMethodMethod(info); | 4184 TestObjectPythonV8Internal::unsignedLongMethodMethod(info); |
4185 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4185 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4186 } | 4186 } |
4187 | 4187 |
4188 static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 4188 static void unsignedLongLongMethodMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
4189 { | 4189 { |
4190 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4190 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4191 v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongMethod())); | 4191 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongMethod())); |
4192 } | 4192 } |
4193 | 4193 |
4194 static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 4194 static void unsignedLongLongMethodMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
4195 { | 4195 { |
4196 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4196 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4197 TestObjectPythonV8Internal::unsignedLongLongMethodMethod(info); | 4197 TestObjectPythonV8Internal::unsignedLongLongMethodMethod(info); |
4198 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4198 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4199 } | 4199 } |
4200 | 4200 |
4201 static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4201 static void unsignedShortMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4202 { | 4202 { |
4203 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4203 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4204 v8SetReturnValueUnsigned(info, imp->unsignedShortMethod()); | 4204 v8SetReturnValueUnsigned(info, impl->unsignedShortMethod()); |
4205 } | 4205 } |
4206 | 4206 |
4207 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4207 static void unsignedShortMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
4208 { | 4208 { |
4209 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4209 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4210 TestObjectPythonV8Internal::unsignedShortMethodMethod(info); | 4210 TestObjectPythonV8Internal::unsignedShortMethodMethod(info); |
4211 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4211 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4212 } | 4212 } |
4213 | 4213 |
4214 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4214 static void voidMethodDateArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4215 { | 4215 { |
4216 if (UNLIKELY(info.Length() < 1)) { | 4216 if (UNLIKELY(info.Length() < 1)) { |
4217 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDateArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 4217 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDateArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
4218 return; | 4218 return; |
4219 } | 4219 } |
4220 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4220 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4221 V8TRYCATCH_VOID(double, dateArg, toCoreDate(info[0])); | 4221 V8TRYCATCH_VOID(double, dateArg, toCoreDate(info[0])); |
4222 imp->voidMethodDateArg(dateArg); | 4222 impl->voidMethodDateArg(dateArg); |
4223 } | 4223 } |
4224 | 4224 |
4225 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4225 static void voidMethodDateArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4226 { | 4226 { |
4227 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4227 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4228 TestObjectPythonV8Internal::voidMethodDateArgMethod(info); | 4228 TestObjectPythonV8Internal::voidMethodDateArgMethod(info); |
4229 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4229 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4230 } | 4230 } |
4231 | 4231 |
4232 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4232 static void voidMethodStringArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4233 { | 4233 { |
4234 if (UNLIKELY(info.Length() < 1)) { | 4234 if (UNLIKELY(info.Length() < 1)) { |
4235 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i
nfo.GetIsolate()); | 4235 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i
nfo.GetIsolate()); |
4236 return; | 4236 return; |
4237 } | 4237 } |
4238 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4238 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4239 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 4239 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; |
4240 imp->voidMethodStringArg(stringArg); | 4240 impl->voidMethodStringArg(stringArg); |
4241 } | 4241 } |
4242 | 4242 |
4243 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4243 static void voidMethodStringArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
4244 { | 4244 { |
4245 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4245 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4246 TestObjectPythonV8Internal::voidMethodStringArgMethod(info); | 4246 TestObjectPythonV8Internal::voidMethodStringArgMethod(info); |
4247 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4247 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4248 } | 4248 } |
4249 | 4249 |
4250 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 4250 static void voidMethodBooleanArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
4251 { | 4251 { |
4252 if (UNLIKELY(info.Length() < 1)) { | 4252 if (UNLIKELY(info.Length() < 1)) { |
4253 throwTypeError(ExceptionMessages::failedToExecute("voidMethodBooleanArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); | 4253 throwTypeError(ExceptionMessages::failedToExecute("voidMethodBooleanArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
4254 return; | 4254 return; |
4255 } | 4255 } |
4256 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4256 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4257 V8TRYCATCH_VOID(bool, booleanArg, info[0]->BooleanValue()); | 4257 V8TRYCATCH_VOID(bool, booleanArg, info[0]->BooleanValue()); |
4258 imp->voidMethodBooleanArg(booleanArg); | 4258 impl->voidMethodBooleanArg(booleanArg); |
4259 } | 4259 } |
4260 | 4260 |
4261 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 4261 static void voidMethodBooleanArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
4262 { | 4262 { |
4263 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4263 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4264 TestObjectPythonV8Internal::voidMethodBooleanArgMethod(info); | 4264 TestObjectPythonV8Internal::voidMethodBooleanArgMethod(info); |
4265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4265 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4266 } | 4266 } |
4267 | 4267 |
4268 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4268 static void voidMethodByteArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4269 { | 4269 { |
4270 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 4270 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodB
yteArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4271 if (UNLIKELY(info.Length() < 1)) { | 4271 if (UNLIKELY(info.Length() < 1)) { |
4272 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4272 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4273 exceptionState.throwIfNeeded(); | 4273 exceptionState.throwIfNeeded(); |
4274 return; | 4274 return; |
4275 } | 4275 } |
4276 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4276 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4277 V8TRYCATCH_EXCEPTION_VOID(int, byteArg, toInt8(info[0], exceptionState), exc
eptionState); | 4277 V8TRYCATCH_EXCEPTION_VOID(int, byteArg, toInt8(info[0], exceptionState), exc
eptionState); |
4278 imp->voidMethodByteArg(byteArg); | 4278 impl->voidMethodByteArg(byteArg); |
4279 } | 4279 } |
4280 | 4280 |
4281 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4281 static void voidMethodByteArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4282 { | 4282 { |
4283 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4283 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4284 TestObjectPythonV8Internal::voidMethodByteArgMethod(info); | 4284 TestObjectPythonV8Internal::voidMethodByteArgMethod(info); |
4285 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4285 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4286 } | 4286 } |
4287 | 4287 |
4288 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4288 static void voidMethodDoubleArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4289 { | 4289 { |
4290 if (UNLIKELY(info.Length() < 1)) { | 4290 if (UNLIKELY(info.Length() < 1)) { |
4291 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i
nfo.GetIsolate()); | 4291 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDoubleArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), i
nfo.GetIsolate()); |
4292 return; | 4292 return; |
4293 } | 4293 } |
4294 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4294 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4295 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue(
))); | 4295 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue(
))); |
4296 imp->voidMethodDoubleArg(doubleArg); | 4296 impl->voidMethodDoubleArg(doubleArg); |
4297 } | 4297 } |
4298 | 4298 |
4299 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 4299 static void voidMethodDoubleArgMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
4300 { | 4300 { |
4301 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4301 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4302 TestObjectPythonV8Internal::voidMethodDoubleArgMethod(info); | 4302 TestObjectPythonV8Internal::voidMethodDoubleArgMethod(info); |
4303 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4303 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4304 } | 4304 } |
4305 | 4305 |
4306 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4306 static void voidMethodFloatArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4307 { | 4307 { |
4308 if (UNLIKELY(info.Length() < 1)) { | 4308 if (UNLIKELY(info.Length() < 1)) { |
4309 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloatArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); | 4309 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloatArg",
"TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); |
4310 return; | 4310 return; |
4311 } | 4311 } |
4312 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4312 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4313 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue()))
; | 4313 V8TRYCATCH_VOID(float, floatArg, static_cast<float>(info[0]->NumberValue()))
; |
4314 imp->voidMethodFloatArg(floatArg); | 4314 impl->voidMethodFloatArg(floatArg); |
4315 } | 4315 } |
4316 | 4316 |
4317 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4317 static void voidMethodFloatArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4318 { | 4318 { |
4319 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4319 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4320 TestObjectPythonV8Internal::voidMethodFloatArgMethod(info); | 4320 TestObjectPythonV8Internal::voidMethodFloatArgMethod(info); |
4321 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4321 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4322 } | 4322 } |
4323 | 4323 |
4324 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4324 static void voidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4325 { | 4325 { |
4326 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 4326 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4327 if (UNLIKELY(info.Length() < 1)) { | 4327 if (UNLIKELY(info.Length() < 1)) { |
4328 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4328 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4329 exceptionState.throwIfNeeded(); | 4329 exceptionState.throwIfNeeded(); |
4330 return; | 4330 return; |
4331 } | 4331 } |
4332 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4332 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4333 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 4333 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
4334 imp->voidMethodLongArg(longArg); | 4334 impl->voidMethodLongArg(longArg); |
4335 } | 4335 } |
4336 | 4336 |
4337 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4337 static void voidMethodLongArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4338 { | 4338 { |
4339 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4339 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4340 TestObjectPythonV8Internal::voidMethodLongArgMethod(info); | 4340 TestObjectPythonV8Internal::voidMethodLongArgMethod(info); |
4341 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4341 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4342 } | 4342 } |
4343 | 4343 |
4344 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 4344 static void voidMethodLongLongArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
4345 { | 4345 { |
4346 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 4346 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4347 if (UNLIKELY(info.Length() < 1)) { | 4347 if (UNLIKELY(info.Length() < 1)) { |
4348 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4348 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4349 exceptionState.throwIfNeeded(); | 4349 exceptionState.throwIfNeeded(); |
4350 return; | 4350 return; |
4351 } | 4351 } |
4352 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4352 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4353 V8TRYCATCH_EXCEPTION_VOID(long long, longLongArg, toInt64(info[0], exception
State), exceptionState); | 4353 V8TRYCATCH_EXCEPTION_VOID(long long, longLongArg, toInt64(info[0], exception
State), exceptionState); |
4354 imp->voidMethodLongLongArg(longLongArg); | 4354 impl->voidMethodLongLongArg(longLongArg); |
4355 } | 4355 } |
4356 | 4356 |
4357 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4357 static void voidMethodLongLongArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
4358 { | 4358 { |
4359 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4359 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4360 TestObjectPythonV8Internal::voidMethodLongLongArgMethod(info); | 4360 TestObjectPythonV8Internal::voidMethodLongLongArgMethod(info); |
4361 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4361 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4362 } | 4362 } |
4363 | 4363 |
4364 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4364 static void voidMethodOctetArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4365 { | 4365 { |
4366 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 4366 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ctetArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4367 if (UNLIKELY(info.Length() < 1)) { | 4367 if (UNLIKELY(info.Length() < 1)) { |
4368 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4368 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4369 exceptionState.throwIfNeeded(); | 4369 exceptionState.throwIfNeeded(); |
4370 return; | 4370 return; |
4371 } | 4371 } |
4372 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4372 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4373 V8TRYCATCH_EXCEPTION_VOID(unsigned, octetArg, toUInt8(info[0], exceptionStat
e), exceptionState); | 4373 V8TRYCATCH_EXCEPTION_VOID(unsigned, octetArg, toUInt8(info[0], exceptionStat
e), exceptionState); |
4374 imp->voidMethodOctetArg(octetArg); | 4374 impl->voidMethodOctetArg(octetArg); |
4375 } | 4375 } |
4376 | 4376 |
4377 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4377 static void voidMethodOctetArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4378 { | 4378 { |
4379 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4379 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4380 TestObjectPythonV8Internal::voidMethodOctetArgMethod(info); | 4380 TestObjectPythonV8Internal::voidMethodOctetArgMethod(info); |
4381 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4381 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4382 } | 4382 } |
4383 | 4383 |
4384 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4384 static void voidMethodShortArgMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4385 { | 4385 { |
4386 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 4386 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
hortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4387 if (UNLIKELY(info.Length() < 1)) { | 4387 if (UNLIKELY(info.Length() < 1)) { |
4388 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4388 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4389 exceptionState.throwIfNeeded(); | 4389 exceptionState.throwIfNeeded(); |
4390 return; | 4390 return; |
4391 } | 4391 } |
4392 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4392 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4393 V8TRYCATCH_EXCEPTION_VOID(int, shortArg, toInt16(info[0], exceptionState), e
xceptionState); | 4393 V8TRYCATCH_EXCEPTION_VOID(int, shortArg, toInt16(info[0], exceptionState), e
xceptionState); |
4394 imp->voidMethodShortArg(shortArg); | 4394 impl->voidMethodShortArg(shortArg); |
4395 } | 4395 } |
4396 | 4396 |
4397 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4397 static void voidMethodShortArgMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4398 { | 4398 { |
4399 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4399 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4400 TestObjectPythonV8Internal::voidMethodShortArgMethod(info); | 4400 TestObjectPythonV8Internal::voidMethodShortArgMethod(info); |
4401 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4401 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4402 } | 4402 } |
4403 | 4403 |
4404 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4404 static void voidMethodUnsignedLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4405 { | 4405 { |
4406 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 4406 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4407 if (UNLIKELY(info.Length() < 1)) { | 4407 if (UNLIKELY(info.Length() < 1)) { |
4408 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4408 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4409 exceptionState.throwIfNeeded(); | 4409 exceptionState.throwIfNeeded(); |
4410 return; | 4410 return; |
4411 } | 4411 } |
4412 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4412 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4413 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedLongArg, toUInt32(info[0], excep
tionState), exceptionState); | 4413 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedLongArg, toUInt32(info[0], excep
tionState), exceptionState); |
4414 imp->voidMethodUnsignedLongArg(unsignedLongArg); | 4414 impl->voidMethodUnsignedLongArg(unsignedLongArg); |
4415 } | 4415 } |
4416 | 4416 |
4417 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4417 static void voidMethodUnsignedLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
4418 { | 4418 { |
4419 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4419 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4420 TestObjectPythonV8Internal::voidMethodUnsignedLongArgMethod(info); | 4420 TestObjectPythonV8Internal::voidMethodUnsignedLongArgMethod(info); |
4421 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4421 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4422 } | 4422 } |
4423 | 4423 |
4424 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4424 static void voidMethodUnsignedLongLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
4425 { | 4425 { |
4426 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 4426 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedLongLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4427 if (UNLIKELY(info.Length() < 1)) { | 4427 if (UNLIKELY(info.Length() < 1)) { |
4428 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4428 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4429 exceptionState.throwIfNeeded(); | 4429 exceptionState.throwIfNeeded(); |
4430 return; | 4430 return; |
4431 } | 4431 } |
4432 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4432 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4433 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, unsignedLongLongArg, toUInt64(
info[0], exceptionState), exceptionState); | 4433 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, unsignedLongLongArg, toUInt64(
info[0], exceptionState), exceptionState); |
4434 imp->voidMethodUnsignedLongLongArg(unsignedLongLongArg); | 4434 impl->voidMethodUnsignedLongLongArg(unsignedLongLongArg); |
4435 } | 4435 } |
4436 | 4436 |
4437 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 4437 static void voidMethodUnsignedLongLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
4438 { | 4438 { |
4439 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4439 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4440 TestObjectPythonV8Internal::voidMethodUnsignedLongLongArgMethod(info); | 4440 TestObjectPythonV8Internal::voidMethodUnsignedLongLongArgMethod(info); |
4441 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4441 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4442 } | 4442 } |
4443 | 4443 |
4444 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4444 static void voidMethodUnsignedShortArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4445 { | 4445 { |
4446 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 4446 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nsignedShortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
4447 if (UNLIKELY(info.Length() < 1)) { | 4447 if (UNLIKELY(info.Length() < 1)) { |
4448 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 4448 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
4449 exceptionState.throwIfNeeded(); | 4449 exceptionState.throwIfNeeded(); |
4450 return; | 4450 return; |
4451 } | 4451 } |
4452 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4452 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4453 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedShortArg, toUInt16(info[0], exce
ptionState), exceptionState); | 4453 V8TRYCATCH_EXCEPTION_VOID(unsigned, unsignedShortArg, toUInt16(info[0], exce
ptionState), exceptionState); |
4454 imp->voidMethodUnsignedShortArg(unsignedShortArg); | 4454 impl->voidMethodUnsignedShortArg(unsignedShortArg); |
4455 } | 4455 } |
4456 | 4456 |
4457 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 4457 static void voidMethodUnsignedShortArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
4458 { | 4458 { |
4459 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4459 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4460 TestObjectPythonV8Internal::voidMethodUnsignedShortArgMethod(info); | 4460 TestObjectPythonV8Internal::voidMethodUnsignedShortArgMethod(info); |
4461 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4461 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4462 } | 4462 } |
4463 | 4463 |
4464 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4464 static void testInterfaceEmptyMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
4465 { | 4465 { |
4466 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4466 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4467 v8SetReturnValue(info, imp->testInterfaceEmptyMethod()); | 4467 v8SetReturnValue(info, impl->testInterfaceEmptyMethod()); |
4468 } | 4468 } |
4469 | 4469 |
4470 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 4470 static void testInterfaceEmptyMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
4471 { | 4471 { |
4472 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4472 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4473 TestObjectPythonV8Internal::testInterfaceEmptyMethodMethod(info); | 4473 TestObjectPythonV8Internal::testInterfaceEmptyMethodMethod(info); |
4474 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4474 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4475 } | 4475 } |
4476 | 4476 |
4477 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 4477 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
4478 { | 4478 { |
4479 if (UNLIKELY(info.Length() < 1)) { | 4479 if (UNLIKELY(info.Length() < 1)) { |
4480 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); | 4480 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); |
4481 return; | 4481 return; |
4482 } | 4482 } |
4483 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4483 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4484 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 4484 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
4485 imp->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 4485 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
4486 } | 4486 } |
4487 | 4487 |
4488 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 4488 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
4489 { | 4489 { |
4490 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4490 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4491 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); | 4491 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgMethod(info); |
4492 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4492 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4493 } | 4493 } |
4494 | 4494 |
4495 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 4495 static void voidMethodLongArgTestInterfaceEmptyArgMethod(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
4496 { | 4496 { |
4497 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate
()); | 4497 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.GetIsolate
()); |
4498 if (UNLIKELY(info.Length() < 2)) { | 4498 if (UNLIKELY(info.Length() < 2)) { |
4499 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); | 4499 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); |
4500 exceptionState.throwIfNeeded(); | 4500 exceptionState.throwIfNeeded(); |
4501 return; | 4501 return; |
4502 } | 4502 } |
4503 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4503 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4504 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 4504 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
4505 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); | 4505 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); |
4506 imp->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg); | 4506 impl->voidMethodLongArgTestInterfaceEmptyArg(longArg, testInterfaceEmptyArg)
; |
4507 } | 4507 } |
4508 | 4508 |
4509 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 4509 static void voidMethodLongArgTestInterfaceEmptyArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
4510 { | 4510 { |
4511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4512 TestObjectPythonV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(inf
o); | 4512 TestObjectPythonV8Internal::voidMethodLongArgTestInterfaceEmptyArgMethod(inf
o); |
4513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4514 } | 4514 } |
4515 | 4515 |
4516 static void voidCallbackFunctionMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4516 static void voidCallbackFunctionMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4517 { | 4517 { |
4518 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4518 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4519 v8SetReturnValue(info, imp->voidCallbackFunctionMethod().v8Value()); | 4519 v8SetReturnValue(info, impl->voidCallbackFunctionMethod().v8Value()); |
4520 } | 4520 } |
4521 | 4521 |
4522 static void voidCallbackFunctionMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 4522 static void voidCallbackFunctionMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
4523 { | 4523 { |
4524 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4524 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4525 TestObjectPythonV8Internal::voidCallbackFunctionMethodMethod(info); | 4525 TestObjectPythonV8Internal::voidCallbackFunctionMethodMethod(info); |
4526 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4526 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4527 } | 4527 } |
4528 | 4528 |
4529 static void anyCallbackFunctionOptionalAnyArgMethodMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 4529 static void anyCallbackFunctionOptionalAnyArgMethodMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
4530 { | 4530 { |
4531 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4531 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4532 v8SetReturnValue(info, imp->anyCallbackFunctionOptionalAnyArgMethod().v8Valu
e()); | 4532 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgMethod().v8Val
ue()); |
4533 } | 4533 } |
4534 | 4534 |
4535 static void anyCallbackFunctionOptionalAnyArgMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 4535 static void anyCallbackFunctionOptionalAnyArgMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
4536 { | 4536 { |
4537 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4537 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4538 TestObjectPythonV8Internal::anyCallbackFunctionOptionalAnyArgMethodMethod(in
fo); | 4538 TestObjectPythonV8Internal::anyCallbackFunctionOptionalAnyArgMethodMethod(in
fo); |
4539 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4539 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4540 } | 4540 } |
4541 | 4541 |
4542 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4542 static void voidMethodVoidCallbackFunctionArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
4543 { | 4543 { |
4544 if (UNLIKELY(info.Length() < 1)) { | 4544 if (UNLIKELY(info.Length() < 1)) { |
4545 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVoidCallbac
kFunctionArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info
.Length())), info.GetIsolate()); | 4545 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVoidCallbac
kFunctionArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info
.Length())), info.GetIsolate()); |
4546 return; | 4546 return; |
4547 } | 4547 } |
4548 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4548 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4549 V8TRYCATCH_VOID(ScriptValue, voidCallbackFunctionArg, ScriptValue(info[0], i
nfo.GetIsolate())); | 4549 V8TRYCATCH_VOID(ScriptValue, voidCallbackFunctionArg, ScriptValue(info[0], i
nfo.GetIsolate())); |
4550 imp->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); | 4550 impl->voidMethodVoidCallbackFunctionArg(voidCallbackFunctionArg); |
4551 } | 4551 } |
4552 | 4552 |
4553 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 4553 static void voidMethodVoidCallbackFunctionArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
4554 { | 4554 { |
4555 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4555 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4556 TestObjectPythonV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); | 4556 TestObjectPythonV8Internal::voidMethodVoidCallbackFunctionArgMethod(info); |
4557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4558 } | 4558 } |
4559 | 4559 |
4560 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function
CallbackInfo<v8::Value>& info) | 4560 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethod(const v8::Function
CallbackInfo<v8::Value>& info) |
4561 { | 4561 { |
4562 if (UNLIKELY(info.Length() < 1)) { | 4562 if (UNLIKELY(info.Length() < 1)) { |
4563 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyCallback
FunctionOptionalAnyArg", "TestObjectPython", ExceptionMessages::notEnoughArgumen
ts(1, info.Length())), info.GetIsolate()); | 4563 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyCallback
FunctionOptionalAnyArg", "TestObjectPython", ExceptionMessages::notEnoughArgumen
ts(1, info.Length())), info.GetIsolate()); |
4564 return; | 4564 return; |
4565 } | 4565 } |
4566 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4566 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4567 V8TRYCATCH_VOID(ScriptValue, anyCallbackFunctionOptionalAnyArgArg, ScriptVal
ue(info[0], info.GetIsolate())); | 4567 V8TRYCATCH_VOID(ScriptValue, anyCallbackFunctionOptionalAnyArgArg, ScriptVal
ue(info[0], info.GetIsolate())); |
4568 imp->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptional
AnyArgArg); | 4568 impl->voidMethodAnyCallbackFunctionOptionalAnyArg(anyCallbackFunctionOptiona
lAnyArgArg); |
4569 } | 4569 } |
4570 | 4570 |
4571 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) | 4571 static void voidMethodAnyCallbackFunctionOptionalAnyArgMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
4572 { | 4572 { |
4573 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4573 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4574 TestObjectPythonV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMetho
d(info); | 4574 TestObjectPythonV8Internal::voidMethodAnyCallbackFunctionOptionalAnyArgMetho
d(info); |
4575 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4575 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4576 } | 4576 } |
4577 | 4577 |
4578 static void compareHowMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 4578 static void compareHowMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
4579 { | 4579 { |
4580 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4580 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4581 v8SetReturnValue(info, imp->compareHowMethod()); | 4581 v8SetReturnValue(info, impl->compareHowMethod()); |
4582 } | 4582 } |
4583 | 4583 |
4584 static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4584 static void compareHowMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
4585 { | 4585 { |
4586 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4586 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4587 TestObjectPythonV8Internal::compareHowMethodMethod(info); | 4587 TestObjectPythonV8Internal::compareHowMethodMethod(info); |
4588 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4588 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4589 } | 4589 } |
4590 | 4590 |
4591 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 4591 static void anyMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
4592 { | 4592 { |
4593 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4593 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4594 v8SetReturnValue(info, imp->anyMethod().v8Value()); | 4594 v8SetReturnValue(info, impl->anyMethod().v8Value()); |
4595 } | 4595 } |
4596 | 4596 |
4597 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4597 static void anyMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4598 { | 4598 { |
4599 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4599 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4600 TestObjectPythonV8Internal::anyMethodMethod(info); | 4600 TestObjectPythonV8Internal::anyMethodMethod(info); |
4601 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4601 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4602 } | 4602 } |
4603 | 4603 |
4604 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 4604 static void voidMethodCompareHowArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
4605 { | 4605 { |
4606 if (UNLIKELY(info.Length() < 1)) { | 4606 if (UNLIKELY(info.Length() < 1)) { |
4607 throwTypeError(ExceptionMessages::failedToExecute("voidMethodCompareHowA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); | 4607 throwTypeError(ExceptionMessages::failedToExecute("voidMethodCompareHowA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
4608 return; | 4608 return; |
4609 } | 4609 } |
4610 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4610 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4611 V8TRYCATCH_VOID(Range::CompareHow, compareHowArg, static_cast<Range::Compare
How>(info[0]->Int32Value())); | 4611 V8TRYCATCH_VOID(Range::CompareHow, compareHowArg, static_cast<Range::Compare
How>(info[0]->Int32Value())); |
4612 imp->voidMethodCompareHowArg(compareHowArg); | 4612 impl->voidMethodCompareHowArg(compareHowArg); |
4613 } | 4613 } |
4614 | 4614 |
4615 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 4615 static void voidMethodCompareHowArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
4616 { | 4616 { |
4617 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4617 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4618 TestObjectPythonV8Internal::voidMethodCompareHowArgMethod(info); | 4618 TestObjectPythonV8Internal::voidMethodCompareHowArgMethod(info); |
4619 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4619 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4620 } | 4620 } |
4621 | 4621 |
4622 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4622 static void voidMethodEventTargetArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
4623 { | 4623 { |
4624 if (UNLIKELY(info.Length() < 1)) { | 4624 if (UNLIKELY(info.Length() < 1)) { |
4625 throwTypeError(ExceptionMessages::failedToExecute("voidMethodEventTarget
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); | 4625 throwTypeError(ExceptionMessages::failedToExecute("voidMethodEventTarget
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); |
4626 return; | 4626 return; |
4627 } | 4627 } |
4628 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4628 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4629 V8TRYCATCH_VOID(EventTarget*, eventTargetArg, V8DOMWrapper::isDOMWrapper(inf
o[0]) ? toWrapperTypeInfo(v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget(
v8::Handle<v8::Object>::Cast(info[0])) : 0); | 4629 V8TRYCATCH_VOID(EventTarget*, eventTargetArg, V8DOMWrapper::isDOMWrapper(inf
o[0]) ? toWrapperTypeInfo(v8::Handle<v8::Object>::Cast(info[0]))->toEventTarget(
v8::Handle<v8::Object>::Cast(info[0])) : 0); |
4630 imp->voidMethodEventTargetArg(eventTargetArg); | 4630 impl->voidMethodEventTargetArg(eventTargetArg); |
4631 } | 4631 } |
4632 | 4632 |
4633 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 4633 static void voidMethodEventTargetArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
4634 { | 4634 { |
4635 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4635 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4636 TestObjectPythonV8Internal::voidMethodEventTargetArgMethod(info); | 4636 TestObjectPythonV8Internal::voidMethodEventTargetArgMethod(info); |
4637 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4637 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4638 } | 4638 } |
4639 | 4639 |
4640 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 4640 static void voidMethodMediaQueryListListenerArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
4641 { | 4641 { |
4642 if (UNLIKELY(info.Length() < 1)) { | 4642 if (UNLIKELY(info.Length() < 1)) { |
4643 throwTypeError(ExceptionMessages::failedToExecute("voidMethodMediaQueryL
istListenerArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, in
fo.Length())), info.GetIsolate()); | 4643 throwTypeError(ExceptionMessages::failedToExecute("voidMethodMediaQueryL
istListenerArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, in
fo.Length())), info.GetIsolate()); |
4644 return; | 4644 return; |
4645 } | 4645 } |
4646 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4646 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4647 V8TRYCATCH_VOID(RefPtrWillBeRawPtr<MediaQueryListListener>, mediaQueryListLi
stenerArg, MediaQueryListListener::create(ScriptValue(info[0], info.GetIsolate()
))); | 4647 V8TRYCATCH_VOID(RefPtrWillBeRawPtr<MediaQueryListListener>, mediaQueryListLi
stenerArg, MediaQueryListListener::create(ScriptValue(info[0], info.GetIsolate()
))); |
4648 imp->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); | 4648 impl->voidMethodMediaQueryListListenerArg(mediaQueryListListenerArg); |
4649 } | 4649 } |
4650 | 4650 |
4651 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 4651 static void voidMethodMediaQueryListListenerArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
4652 { | 4652 { |
4653 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4653 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4654 TestObjectPythonV8Internal::voidMethodMediaQueryListListenerArgMethod(info); | 4654 TestObjectPythonV8Internal::voidMethodMediaQueryListListenerArgMethod(info); |
4655 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4655 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4656 } | 4656 } |
4657 | 4657 |
4658 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 4658 static void voidMethodAnyArgMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
4659 { | 4659 { |
4660 if (UNLIKELY(info.Length() < 1)) { | 4660 if (UNLIKELY(info.Length() < 1)) { |
4661 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyArg", "T
estObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info
.GetIsolate()); | 4661 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAnyArg", "T
estObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), info
.GetIsolate()); |
4662 return; | 4662 return; |
4663 } | 4663 } |
4664 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4664 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4665 V8TRYCATCH_VOID(ScriptValue, anyArg, ScriptValue(info[0], info.GetIsolate())
); | 4665 V8TRYCATCH_VOID(ScriptValue, anyArg, ScriptValue(info[0], info.GetIsolate())
); |
4666 imp->voidMethodAnyArg(anyArg); | 4666 impl->voidMethodAnyArg(anyArg); |
4667 } | 4667 } |
4668 | 4668 |
4669 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4669 static void voidMethodAnyArgMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
4670 { | 4670 { |
4671 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4671 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4672 TestObjectPythonV8Internal::voidMethodAnyArgMethod(info); | 4672 TestObjectPythonV8Internal::voidMethodAnyArgMethod(info); |
4673 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4673 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4674 } | 4674 } |
4675 | 4675 |
4676 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4676 static void voidMethodAttrArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4677 { | 4677 { |
4678 if (UNLIKELY(info.Length() < 1)) { | 4678 if (UNLIKELY(info.Length() < 1)) { |
4679 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAttrArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 4679 throwTypeError(ExceptionMessages::failedToExecute("voidMethodAttrArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
4680 return; | 4680 return; |
4681 } | 4681 } |
4682 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4682 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4683 V8TRYCATCH_VOID(Attr*, attrArg, V8Attr::toNativeWithTypeCheck(info.GetIsolat
e(), info[0])); | 4683 V8TRYCATCH_VOID(Attr*, attrArg, V8Attr::toNativeWithTypeCheck(info.GetIsolat
e(), info[0])); |
4684 imp->voidMethodAttrArg(attrArg); | 4684 impl->voidMethodAttrArg(attrArg); |
4685 } | 4685 } |
4686 | 4686 |
4687 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4687 static void voidMethodAttrArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4688 { | 4688 { |
4689 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4689 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4690 TestObjectPythonV8Internal::voidMethodAttrArgMethod(info); | 4690 TestObjectPythonV8Internal::voidMethodAttrArgMethod(info); |
4691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4692 } | 4692 } |
4693 | 4693 |
4694 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 4694 static void voidMethodDocumentArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
4695 { | 4695 { |
4696 if (UNLIKELY(info.Length() < 1)) { | 4696 if (UNLIKELY(info.Length() < 1)) { |
4697 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); | 4697 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
4698 return; | 4698 return; |
4699 } | 4699 } |
4700 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4700 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4701 V8TRYCATCH_VOID(Document*, documentArg, V8Document::toNativeWithTypeCheck(in
fo.GetIsolate(), info[0])); | 4701 V8TRYCATCH_VOID(Document*, documentArg, V8Document::toNativeWithTypeCheck(in
fo.GetIsolate(), info[0])); |
4702 imp->voidMethodDocumentArg(documentArg); | 4702 impl->voidMethodDocumentArg(documentArg); |
4703 } | 4703 } |
4704 | 4704 |
4705 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4705 static void voidMethodDocumentArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
4706 { | 4706 { |
4707 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4707 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4708 TestObjectPythonV8Internal::voidMethodDocumentArgMethod(info); | 4708 TestObjectPythonV8Internal::voidMethodDocumentArgMethod(info); |
4709 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4709 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4710 } | 4710 } |
4711 | 4711 |
4712 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4712 static void voidMethodDocumentTypeArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4713 { | 4713 { |
4714 if (UNLIKELY(info.Length() < 1)) { | 4714 if (UNLIKELY(info.Length() < 1)) { |
4715 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentTyp
eArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); | 4715 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDocumentTyp
eArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); |
4716 return; | 4716 return; |
4717 } | 4717 } |
4718 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4718 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4719 V8TRYCATCH_VOID(DocumentType*, documentTypeArg, V8DocumentType::toNativeWith
TypeCheck(info.GetIsolate(), info[0])); | 4719 V8TRYCATCH_VOID(DocumentType*, documentTypeArg, V8DocumentType::toNativeWith
TypeCheck(info.GetIsolate(), info[0])); |
4720 imp->voidMethodDocumentTypeArg(documentTypeArg); | 4720 impl->voidMethodDocumentTypeArg(documentTypeArg); |
4721 } | 4721 } |
4722 | 4722 |
4723 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4723 static void voidMethodDocumentTypeArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
4724 { | 4724 { |
4725 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4725 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4726 TestObjectPythonV8Internal::voidMethodDocumentTypeArgMethod(info); | 4726 TestObjectPythonV8Internal::voidMethodDocumentTypeArgMethod(info); |
4727 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4727 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4728 } | 4728 } |
4729 | 4729 |
4730 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 4730 static void voidMethodElementArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
4731 { | 4731 { |
4732 if (UNLIKELY(info.Length() < 1)) { | 4732 if (UNLIKELY(info.Length() < 1)) { |
4733 throwTypeError(ExceptionMessages::failedToExecute("voidMethodElementArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); | 4733 throwTypeError(ExceptionMessages::failedToExecute("voidMethodElementArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
4734 return; | 4734 return; |
4735 } | 4735 } |
4736 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4736 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4737 V8TRYCATCH_VOID(Element*, elementArg, V8Element::toNativeWithTypeCheck(info.
GetIsolate(), info[0])); | 4737 V8TRYCATCH_VOID(Element*, elementArg, V8Element::toNativeWithTypeCheck(info.
GetIsolate(), info[0])); |
4738 imp->voidMethodElementArg(elementArg); | 4738 impl->voidMethodElementArg(elementArg); |
4739 } | 4739 } |
4740 | 4740 |
4741 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 4741 static void voidMethodElementArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
4742 { | 4742 { |
4743 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4743 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4744 TestObjectPythonV8Internal::voidMethodElementArgMethod(info); | 4744 TestObjectPythonV8Internal::voidMethodElementArgMethod(info); |
4745 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4745 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4746 } | 4746 } |
4747 | 4747 |
4748 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4748 static void voidMethodNodeArgMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4749 { | 4749 { |
4750 if (UNLIKELY(info.Length() < 1)) { | 4750 if (UNLIKELY(info.Length() < 1)) { |
4751 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 4751 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeArg", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
4752 return; | 4752 return; |
4753 } | 4753 } |
4754 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4754 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4755 V8TRYCATCH_VOID(Node*, nodeArg, V8Node::toNativeWithTypeCheck(info.GetIsolat
e(), info[0])); | 4755 V8TRYCATCH_VOID(Node*, nodeArg, V8Node::toNativeWithTypeCheck(info.GetIsolat
e(), info[0])); |
4756 imp->voidMethodNodeArg(nodeArg); | 4756 impl->voidMethodNodeArg(nodeArg); |
4757 } | 4757 } |
4758 | 4758 |
4759 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4759 static void voidMethodNodeArgMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4760 { | 4760 { |
4761 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4761 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4762 TestObjectPythonV8Internal::voidMethodNodeArgMethod(info); | 4762 TestObjectPythonV8Internal::voidMethodNodeArgMethod(info); |
4763 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4763 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4764 } | 4764 } |
4765 | 4765 |
4766 static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4766 static void arrayBufferMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4767 { | 4767 { |
4768 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4768 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4769 v8SetReturnValue(info, imp->arrayBufferMethod()); | 4769 v8SetReturnValue(info, impl->arrayBufferMethod()); |
4770 } | 4770 } |
4771 | 4771 |
4772 static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4772 static void arrayBufferMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4773 { | 4773 { |
4774 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4774 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4775 TestObjectPythonV8Internal::arrayBufferMethodMethod(info); | 4775 TestObjectPythonV8Internal::arrayBufferMethodMethod(info); |
4776 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4776 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4777 } | 4777 } |
4778 | 4778 |
4779 static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 4779 static void arrayBufferViewMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
4780 { | 4780 { |
4781 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4781 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4782 v8SetReturnValue(info, imp->arrayBufferViewMethod()); | 4782 v8SetReturnValue(info, impl->arrayBufferViewMethod()); |
4783 } | 4783 } |
4784 | 4784 |
4785 static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4785 static void arrayBufferViewMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
4786 { | 4786 { |
4787 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4787 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4788 TestObjectPythonV8Internal::arrayBufferViewMethodMethod(info); | 4788 TestObjectPythonV8Internal::arrayBufferViewMethodMethod(info); |
4789 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4789 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4790 } | 4790 } |
4791 | 4791 |
4792 static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 4792 static void float32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
4793 { | 4793 { |
4794 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4794 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4795 v8SetReturnValue(info, imp->float32ArrayMethod()); | 4795 v8SetReturnValue(info, impl->float32ArrayMethod()); |
4796 } | 4796 } |
4797 | 4797 |
4798 static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4798 static void float32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4799 { | 4799 { |
4800 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4800 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4801 TestObjectPythonV8Internal::float32ArrayMethodMethod(info); | 4801 TestObjectPythonV8Internal::float32ArrayMethodMethod(info); |
4802 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4802 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4803 } | 4803 } |
4804 | 4804 |
4805 static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 4805 static void int32ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
4806 { | 4806 { |
4807 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4807 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4808 v8SetReturnValue(info, imp->int32ArrayMethod()); | 4808 v8SetReturnValue(info, impl->int32ArrayMethod()); |
4809 } | 4809 } |
4810 | 4810 |
4811 static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4811 static void int32ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
4812 { | 4812 { |
4813 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4813 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4814 TestObjectPythonV8Internal::int32ArrayMethodMethod(info); | 4814 TestObjectPythonV8Internal::int32ArrayMethodMethod(info); |
4815 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4815 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4816 } | 4816 } |
4817 | 4817 |
4818 static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 4818 static void uint8ArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
4819 { | 4819 { |
4820 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4820 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4821 v8SetReturnValue(info, imp->uint8ArrayMethod()); | 4821 v8SetReturnValue(info, impl->uint8ArrayMethod()); |
4822 } | 4822 } |
4823 | 4823 |
4824 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4824 static void uint8ArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
4825 { | 4825 { |
4826 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4826 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4827 TestObjectPythonV8Internal::uint8ArrayMethodMethod(info); | 4827 TestObjectPythonV8Internal::uint8ArrayMethodMethod(info); |
4828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4829 } | 4829 } |
4830 | 4830 |
4831 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4831 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
4832 { | 4832 { |
4833 if (UNLIKELY(info.Length() < 1)) { | 4833 if (UNLIKELY(info.Length() < 1)) { |
4834 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); | 4834 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); |
4835 return; | 4835 return; |
4836 } | 4836 } |
4837 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4837 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4838 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A
rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); | 4838 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A
rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); |
4839 imp->voidMethodArrayBufferArg(arrayBufferArg); | 4839 impl->voidMethodArrayBufferArg(arrayBufferArg); |
4840 } | 4840 } |
4841 | 4841 |
4842 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 4842 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
4843 { | 4843 { |
4844 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4844 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4845 TestObjectPythonV8Internal::voidMethodArrayBufferArgMethod(info); | 4845 TestObjectPythonV8Internal::voidMethodArrayBufferArgMethod(info); |
4846 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4846 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4847 } | 4847 } |
4848 | 4848 |
4849 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 4849 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
4850 { | 4850 { |
4851 if (UNLIKELY(info.Length() < 1)) { | 4851 if (UNLIKELY(info.Length() < 1)) { |
4852 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
OrNullArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Le
ngth())), info.GetIsolate()); | 4852 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
OrNullArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Le
ngth())), info.GetIsolate()); |
4853 return; | 4853 return; |
4854 } | 4854 } |
4855 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4855 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4856 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A
rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); | 4856 V8TRYCATCH_VOID(ArrayBuffer*, arrayBufferArg, info[0]->IsArrayBuffer() ? V8A
rrayBuffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(info[0])) : 0); |
4857 imp->voidMethodArrayBufferOrNullArg(arrayBufferArg); | 4857 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); |
4858 } | 4858 } |
4859 | 4859 |
4860 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 4860 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
4861 { | 4861 { |
4862 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4862 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4863 TestObjectPythonV8Internal::voidMethodArrayBufferOrNullArgMethod(info); | 4863 TestObjectPythonV8Internal::voidMethodArrayBufferOrNullArgMethod(info); |
4864 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4864 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4865 } | 4865 } |
4866 | 4866 |
4867 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 4867 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
4868 { | 4868 { |
4869 if (UNLIKELY(info.Length() < 1)) { | 4869 if (UNLIKELY(info.Length() < 1)) { |
4870 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
ViewArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng
th())), info.GetIsolate()); | 4870 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayBuffer
ViewArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng
th())), info.GetIsolate()); |
4871 return; | 4871 return; |
4872 } | 4872 } |
4873 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4873 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4874 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBuffer
View() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[
0])) : 0); | 4874 V8TRYCATCH_VOID(ArrayBufferView*, arrayBufferViewArg, info[0]->IsArrayBuffer
View() ? V8ArrayBufferView::toNative(v8::Handle<v8::ArrayBufferView>::Cast(info[
0])) : 0); |
4875 imp->voidMethodArrayBufferViewArg(arrayBufferViewArg); | 4875 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); |
4876 } | 4876 } |
4877 | 4877 |
4878 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 4878 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
4879 { | 4879 { |
4880 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4880 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4881 TestObjectPythonV8Internal::voidMethodArrayBufferViewArgMethod(info); | 4881 TestObjectPythonV8Internal::voidMethodArrayBufferViewArgMethod(info); |
4882 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4882 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4883 } | 4883 } |
4884 | 4884 |
4885 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4885 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4886 { | 4886 { |
4887 if (UNLIKELY(info.Length() < 1)) { | 4887 if (UNLIKELY(info.Length() < 1)) { |
4888 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloat32Arra
yArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); | 4888 throwTypeError(ExceptionMessages::failedToExecute("voidMethodFloat32Arra
yArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); |
4889 return; | 4889 return; |
4890 } | 4890 } |
4891 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4891 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4892 V8TRYCATCH_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ?
V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); | 4892 V8TRYCATCH_VOID(Float32Array*, float32ArrayArg, info[0]->IsFloat32Array() ?
V8Float32Array::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0); |
4893 imp->voidMethodFloat32ArrayArg(float32ArrayArg); | 4893 impl->voidMethodFloat32ArrayArg(float32ArrayArg); |
4894 } | 4894 } |
4895 | 4895 |
4896 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 4896 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
4897 { | 4897 { |
4898 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4898 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4899 TestObjectPythonV8Internal::voidMethodFloat32ArrayArgMethod(info); | 4899 TestObjectPythonV8Internal::voidMethodFloat32ArrayArgMethod(info); |
4900 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4900 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4901 } | 4901 } |
4902 | 4902 |
4903 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 4903 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
4904 { | 4904 { |
4905 if (UNLIKELY(info.Length() < 1)) { | 4905 if (UNLIKELY(info.Length() < 1)) { |
4906 throwTypeError(ExceptionMessages::failedToExecute("voidMethodInt32ArrayA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); | 4906 throwTypeError(ExceptionMessages::failedToExecute("voidMethodInt32ArrayA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
4907 return; | 4907 return; |
4908 } | 4908 } |
4909 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4909 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4910 V8TRYCATCH_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int3
2Array::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); | 4910 V8TRYCATCH_VOID(Int32Array*, int32ArrayArg, info[0]->IsInt32Array() ? V8Int3
2Array::toNative(v8::Handle<v8::Int32Array>::Cast(info[0])) : 0); |
4911 imp->voidMethodInt32ArrayArg(int32ArrayArg); | 4911 impl->voidMethodInt32ArrayArg(int32ArrayArg); |
4912 } | 4912 } |
4913 | 4913 |
4914 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 4914 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
4915 { | 4915 { |
4916 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4916 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4917 TestObjectPythonV8Internal::voidMethodInt32ArrayArgMethod(info); | 4917 TestObjectPythonV8Internal::voidMethodInt32ArrayArgMethod(info); |
4918 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4918 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4919 } | 4919 } |
4920 | 4920 |
4921 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 4921 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
4922 { | 4922 { |
4923 if (UNLIKELY(info.Length() < 1)) { | 4923 if (UNLIKELY(info.Length() < 1)) { |
4924 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUint8ArrayA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); | 4924 throwTypeError(ExceptionMessages::failedToExecute("voidMethodUint8ArrayA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
4925 return; | 4925 return; |
4926 } | 4926 } |
4927 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4927 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4928 V8TRYCATCH_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint
8Array::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); | 4928 V8TRYCATCH_VOID(Uint8Array*, uint8ArrayArg, info[0]->IsUint8Array() ? V8Uint
8Array::toNative(v8::Handle<v8::Uint8Array>::Cast(info[0])) : 0); |
4929 imp->voidMethodUint8ArrayArg(uint8ArrayArg); | 4929 impl->voidMethodUint8ArrayArg(uint8ArrayArg); |
4930 } | 4930 } |
4931 | 4931 |
4932 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 4932 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
4933 { | 4933 { |
4934 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4934 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4935 TestObjectPythonV8Internal::voidMethodUint8ArrayArgMethod(info); | 4935 TestObjectPythonV8Internal::voidMethodUint8ArrayArgMethod(info); |
4936 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4936 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4937 } | 4937 } |
4938 | 4938 |
4939 static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& inf
o) | 4939 static void longArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& inf
o) |
4940 { | 4940 { |
4941 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4941 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4942 v8SetReturnValue(info, v8Array(imp->longArrayMethod(), info.GetIsolate())); | 4942 v8SetReturnValue(info, v8Array(impl->longArrayMethod(), info.GetIsolate())); |
4943 } | 4943 } |
4944 | 4944 |
4945 static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 4945 static void longArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
4946 { | 4946 { |
4947 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4947 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4948 TestObjectPythonV8Internal::longArrayMethodMethod(info); | 4948 TestObjectPythonV8Internal::longArrayMethodMethod(info); |
4949 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4949 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4950 } | 4950 } |
4951 | 4951 |
4952 static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 4952 static void stringArrayMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
4953 { | 4953 { |
4954 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4954 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4955 v8SetReturnValue(info, v8Array(imp->stringArrayMethod(), info.GetIsolate()))
; | 4955 v8SetReturnValue(info, v8Array(impl->stringArrayMethod(), info.GetIsolate())
); |
4956 } | 4956 } |
4957 | 4957 |
4958 static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 4958 static void stringArrayMethodMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4959 { | 4959 { |
4960 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4960 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4961 TestObjectPythonV8Internal::stringArrayMethodMethod(info); | 4961 TestObjectPythonV8Internal::stringArrayMethodMethod(info); |
4962 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4962 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4963 } | 4963 } |
4964 | 4964 |
4965 static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 4965 static void testInterfaceEmptyArrayMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
4966 { | 4966 { |
4967 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4967 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4968 v8SetReturnValue(info, v8Array(imp->testInterfaceEmptyArrayMethod(), info.Ge
tIsolate())); | 4968 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptyArrayMethod(), info.G
etIsolate())); |
4969 } | 4969 } |
4970 | 4970 |
4971 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 4971 static void testInterfaceEmptyArrayMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
4972 { | 4972 { |
4973 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4973 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4974 TestObjectPythonV8Internal::testInterfaceEmptyArrayMethodMethod(info); | 4974 TestObjectPythonV8Internal::testInterfaceEmptyArrayMethodMethod(info); |
4975 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4975 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4976 } | 4976 } |
4977 | 4977 |
4978 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 4978 static void voidMethodArrayLongArgMethod(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
4979 { | 4979 { |
4980 if (UNLIKELY(info.Length() < 1)) { | 4980 if (UNLIKELY(info.Length() < 1)) { |
4981 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayLongAr
g", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()))
, info.GetIsolate()); | 4981 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayLongAr
g", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()))
, info.GetIsolate()); |
4982 return; | 4982 return; |
4983 } | 4983 } |
4984 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 4984 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
4985 V8TRYCATCH_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, in
fo.GetIsolate())); | 4985 V8TRYCATCH_VOID(Vector<int>, arrayLongArg, toNativeArray<int>(info[0], 1, in
fo.GetIsolate())); |
4986 imp->voidMethodArrayLongArg(arrayLongArg); | 4986 impl->voidMethodArrayLongArg(arrayLongArg); |
4987 } | 4987 } |
4988 | 4988 |
4989 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 4989 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
4990 { | 4990 { |
4991 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4991 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4992 TestObjectPythonV8Internal::voidMethodArrayLongArgMethod(info); | 4992 TestObjectPythonV8Internal::voidMethodArrayLongArgMethod(info); |
4993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4994 } | 4994 } |
4995 | 4995 |
4996 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4996 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
4997 { | 4997 { |
4998 if (UNLIKELY(info.Length() < 1)) { | 4998 if (UNLIKELY(info.Length() < 1)) { |
4999 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayString
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); | 4999 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayString
Arg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length()
)), info.GetIsolate()); |
5000 return; | 5000 return; |
5001 } | 5001 } |
5002 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5002 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5003 V8TRYCATCH_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0
], 1, info.GetIsolate())); | 5003 V8TRYCATCH_VOID(Vector<String>, arrayStringArg, toNativeArray<String>(info[0
], 1, info.GetIsolate())); |
5004 imp->voidMethodArrayStringArg(arrayStringArg); | 5004 impl->voidMethodArrayStringArg(arrayStringArg); |
5005 } | 5005 } |
5006 | 5006 |
5007 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5007 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
5008 { | 5008 { |
5009 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5009 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5010 TestObjectPythonV8Internal::voidMethodArrayStringArgMethod(info); | 5010 TestObjectPythonV8Internal::voidMethodArrayStringArgMethod(info); |
5011 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5011 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5012 } | 5012 } |
5013 | 5013 |
5014 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 5014 static void voidMethodArrayTestInterfaceEmptyArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
5015 { | 5015 { |
5016 if (UNLIKELY(info.Length() < 1)) { | 5016 if (UNLIKELY(info.Length() < 1)) { |
5017 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayTestIn
terfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i
nfo.Length())), info.GetIsolate()); | 5017 throwTypeError(ExceptionMessages::failedToExecute("voidMethodArrayTestIn
terfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i
nfo.Length())), info.GetIsolate()); |
5018 return; | 5018 return; |
5019 } | 5019 } |
5020 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5020 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5021 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmpty
Arg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1,
info.GetIsolate()))); | 5021 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, arrayTestInterfaceEmpty
Arg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1,
info.GetIsolate()))); |
5022 imp->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); | 5022 impl->voidMethodArrayTestInterfaceEmptyArg(arrayTestInterfaceEmptyArg); |
5023 } | 5023 } |
5024 | 5024 |
5025 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 5025 static void voidMethodArrayTestInterfaceEmptyArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
5026 { | 5026 { |
5027 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5027 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5028 TestObjectPythonV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info)
; | 5028 TestObjectPythonV8Internal::voidMethodArrayTestInterfaceEmptyArgMethod(info)
; |
5029 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5029 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5030 } | 5030 } |
5031 | 5031 |
5032 static void longSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5032 static void longSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5033 { | 5033 { |
5034 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5034 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5035 v8SetReturnValue(info, v8Array(imp->longSequenceMethod(), info.GetIsolate())
); | 5035 v8SetReturnValue(info, v8Array(impl->longSequenceMethod(), info.GetIsolate()
)); |
5036 } | 5036 } |
5037 | 5037 |
5038 static void longSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5038 static void longSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5039 { | 5039 { |
5040 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5040 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5041 TestObjectPythonV8Internal::longSequenceMethodMethod(info); | 5041 TestObjectPythonV8Internal::longSequenceMethodMethod(info); |
5042 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5042 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5043 } | 5043 } |
5044 | 5044 |
5045 static void stringSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 5045 static void stringSequenceMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
5046 { | 5046 { |
5047 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5047 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5048 v8SetReturnValue(info, v8Array(imp->stringSequenceMethod(), info.GetIsolate(
))); | 5048 v8SetReturnValue(info, v8Array(impl->stringSequenceMethod(), info.GetIsolate
())); |
5049 } | 5049 } |
5050 | 5050 |
5051 static void stringSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5051 static void stringSequenceMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
5052 { | 5052 { |
5053 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5053 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5054 TestObjectPythonV8Internal::stringSequenceMethodMethod(info); | 5054 TestObjectPythonV8Internal::stringSequenceMethodMethod(info); |
5055 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5055 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5056 } | 5056 } |
5057 | 5057 |
5058 static void testInterfaceEmptySequenceMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5058 static void testInterfaceEmptySequenceMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
5059 { | 5059 { |
5060 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5060 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5061 v8SetReturnValue(info, v8Array(imp->testInterfaceEmptySequenceMethod(), info
.GetIsolate())); | 5061 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptySequenceMethod(), inf
o.GetIsolate())); |
5062 } | 5062 } |
5063 | 5063 |
5064 static void testInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 5064 static void testInterfaceEmptySequenceMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
5065 { | 5065 { |
5066 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5066 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5067 TestObjectPythonV8Internal::testInterfaceEmptySequenceMethodMethod(info); | 5067 TestObjectPythonV8Internal::testInterfaceEmptySequenceMethodMethod(info); |
5068 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5068 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5069 } | 5069 } |
5070 | 5070 |
5071 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5071 static void voidMethodSequenceLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5072 { | 5072 { |
5073 if (UNLIKELY(info.Length() < 1)) { | 5073 if (UNLIKELY(info.Length() < 1)) { |
5074 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceLon
gArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); | 5074 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceLon
gArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length(
))), info.GetIsolate()); |
5075 return; | 5075 return; |
5076 } | 5076 } |
5077 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5077 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5078 V8TRYCATCH_VOID(Vector<int>, longSequenceArg, toNativeArray<int>(info[0], 1,
info.GetIsolate())); | 5078 V8TRYCATCH_VOID(Vector<int>, longSequenceArg, toNativeArray<int>(info[0], 1,
info.GetIsolate())); |
5079 imp->voidMethodSequenceLongArg(longSequenceArg); | 5079 impl->voidMethodSequenceLongArg(longSequenceArg); |
5080 } | 5080 } |
5081 | 5081 |
5082 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5082 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5083 { | 5083 { |
5084 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5084 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5085 TestObjectPythonV8Internal::voidMethodSequenceLongArgMethod(info); | 5085 TestObjectPythonV8Internal::voidMethodSequenceLongArgMethod(info); |
5086 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5086 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5087 } | 5087 } |
5088 | 5088 |
5089 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5089 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5090 { | 5090 { |
5091 if (UNLIKELY(info.Length() < 1)) { | 5091 if (UNLIKELY(info.Length() < 1)) { |
5092 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceStr
ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Lengt
h())), info.GetIsolate()); | 5092 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceStr
ingArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Lengt
h())), info.GetIsolate()); |
5093 return; | 5093 return; |
5094 } | 5094 } |
5095 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5095 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5096 V8TRYCATCH_VOID(Vector<String>, stringSequenceArg, toNativeArray<String>(inf
o[0], 1, info.GetIsolate())); | 5096 V8TRYCATCH_VOID(Vector<String>, stringSequenceArg, toNativeArray<String>(inf
o[0], 1, info.GetIsolate())); |
5097 imp->voidMethodSequenceStringArg(stringSequenceArg); | 5097 impl->voidMethodSequenceStringArg(stringSequenceArg); |
5098 } | 5098 } |
5099 | 5099 |
5100 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 5100 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5101 { | 5101 { |
5102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5103 TestObjectPythonV8Internal::voidMethodSequenceStringArgMethod(info); | 5103 TestObjectPythonV8Internal::voidMethodSequenceStringArgMethod(info); |
5104 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5104 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5105 } | 5105 } |
5106 | 5106 |
5107 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 5107 static void voidMethodSequenceTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
5108 { | 5108 { |
5109 if (UNLIKELY(info.Length() < 1)) { | 5109 if (UNLIKELY(info.Length() < 1)) { |
5110 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceTes
tInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1
, info.Length())), info.GetIsolate()); | 5110 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceTes
tInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1
, info.Length())), info.GetIsolate()); |
5111 return; | 5111 return; |
5112 } | 5112 } |
5113 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5113 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5114 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, testInterfaceEmptySeque
nceArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0],
1, info.GetIsolate()))); | 5114 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, testInterfaceEmptySeque
nceArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0],
1, info.GetIsolate()))); |
5115 imp->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg); | 5115 impl->voidMethodSequenceTestInterfaceEmptyArg(testInterfaceEmptySequenceArg)
; |
5116 } | 5116 } |
5117 | 5117 |
5118 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5118 static void voidMethodSequenceTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
5119 { | 5119 { |
5120 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5120 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5121 TestObjectPythonV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(in
fo); | 5121 TestObjectPythonV8Internal::voidMethodSequenceTestInterfaceEmptyArgMethod(in
fo); |
5122 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5122 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5123 } | 5123 } |
5124 | 5124 |
5125 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 5125 static void voidMethodTestInterfaceEmptyOrNullArgMethod(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
5126 { | 5126 { |
5127 if (UNLIKELY(info.Length() < 1)) { | 5127 if (UNLIKELY(info.Length() < 1)) { |
5128 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyOrNullArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1,
info.Length())), info.GetIsolate()); | 5128 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyOrNullArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1,
info.Length())), info.GetIsolate()); |
5129 return; | 5129 return; |
5130 } | 5130 } |
5131 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5131 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5132 V8TRYCATCH_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 5132 V8TRYCATCH_VOID(TestInterfaceEmpty*, nullableTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
5133 imp->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg); | 5133 impl->voidMethodTestInterfaceEmptyOrNullArg(nullableTestInterfaceEmptyArg); |
5134 } | 5134 } |
5135 | 5135 |
5136 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) | 5136 static void voidMethodTestInterfaceEmptyOrNullArgMethodCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
5137 { | 5137 { |
5138 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5138 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5139 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info
); | 5139 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyOrNullArgMethod(info
); |
5140 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5140 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5141 } | 5141 } |
5142 | 5142 |
5143 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5143 static void voidMethodTestCallbackInterfaceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
5144 { | 5144 { |
5145 if (UNLIKELY(info.Length() < 1)) { | 5145 if (UNLIKELY(info.Length() < 1)) { |
5146 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, inf
o.Length())), info.GetIsolate()); | 5146 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, inf
o.Length())), info.GetIsolate()); |
5147 return; | 5147 return; |
5148 } | 5148 } |
5149 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5149 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5150 if (info.Length() <= 0 || !info[0]->IsFunction()) { | 5150 if (info.Length() <= 0 || !info[0]->IsFunction()) { |
5151 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceArg", "TestObjectPython", "The callback provided as parameter 1 is not
a function."), info.GetIsolate()); | 5151 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceArg", "TestObjectPython", "The callback provided as parameter 1 is not
a function."), info.GetIsolate()); |
5152 return; | 5152 return; |
5153 } | 5153 } |
5154 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); | 5154 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); |
5155 imp->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg.release()); | 5155 impl->voidMethodTestCallbackInterfaceArg(testCallbackInterfaceArg.release())
; |
5156 } | 5156 } |
5157 | 5157 |
5158 static void voidMethodTestCallbackInterfaceArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 5158 static void voidMethodTestCallbackInterfaceArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
5159 { | 5159 { |
5160 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5160 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5161 TestObjectPythonV8Internal::voidMethodTestCallbackInterfaceArgMethod(info); | 5161 TestObjectPythonV8Internal::voidMethodTestCallbackInterfaceArgMethod(info); |
5162 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5162 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5163 } | 5163 } |
5164 | 5164 |
5165 static void voidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionC
allbackInfo<v8::Value>& info) | 5165 static void voidMethodOptionalTestCallbackInterfaceArgMethod(const v8::FunctionC
allbackInfo<v8::Value>& info) |
5166 { | 5166 { |
5167 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5167 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5168 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg; | 5168 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg; |
5169 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { | 5169 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { |
5170 if (!info[0]->IsFunction()) { | 5170 if (!info[0]->IsFunction()) { |
5171 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptiona
lTestCallbackInterfaceArg", "TestObjectPython", "The callback provided as parame
ter 1 is not a function."), info.GetIsolate()); | 5171 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptiona
lTestCallbackInterfaceArg", "TestObjectPython", "The callback provided as parame
ter 1 is not a function."), info.GetIsolate()); |
5172 return; | 5172 return; |
5173 } | 5173 } |
5174 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::H
andle<v8::Function>::Cast(info[0]), currentExecutionContext(info.GetIsolate())); | 5174 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::H
andle<v8::Function>::Cast(info[0]), currentExecutionContext(info.GetIsolate())); |
5175 } | 5175 } |
5176 imp->voidMethodOptionalTestCallbackInterfaceArg(optionalTestCallbackInterfac
eArg.release()); | 5176 impl->voidMethodOptionalTestCallbackInterfaceArg(optionalTestCallbackInterfa
ceArg.release()); |
5177 } | 5177 } |
5178 | 5178 |
5179 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) | 5179 static void voidMethodOptionalTestCallbackInterfaceArgMethodCallback(const v8::F
unctionCallbackInfo<v8::Value>& info) |
5180 { | 5180 { |
5181 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5181 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5182 TestObjectPythonV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod
(info); | 5182 TestObjectPythonV8Internal::voidMethodOptionalTestCallbackInterfaceArgMethod
(info); |
5183 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5183 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5184 } | 5184 } |
5185 | 5185 |
5186 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 5186 static void voidMethodTestCallbackInterfaceOrNullArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
5187 { | 5187 { |
5188 if (UNLIKELY(info.Length() < 1)) { | 5188 if (UNLIKELY(info.Length() < 1)) { |
5189 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceOrNullArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(
1, info.Length())), info.GetIsolate()); | 5189 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceOrNullArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(
1, info.Length())), info.GetIsolate()); |
5190 return; | 5190 return; |
5191 } | 5191 } |
5192 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5192 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5193 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) { | 5193 if (info.Length() <= 0 || !(info[0]->IsFunction() || info[0]->IsNull())) { |
5194 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceOrNullArg", "TestObjectPython", "The callback provided as parameter 1
is not a function."), info.GetIsolate()); | 5194 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestCallbac
kInterfaceOrNullArg", "TestObjectPython", "The callback provided as parameter 1
is not a function."), info.GetIsolate()); |
5195 return; | 5195 return; |
5196 } | 5196 } |
5197 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = info[0]->IsNull() ?
nullptr : V8TestCallbackInterface::create(v8::Handle<v8::Function>::Cast(info[0
]), currentExecutionContext(info.GetIsolate())); | 5197 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = info[0]->IsNull() ?
nullptr : V8TestCallbackInterface::create(v8::Handle<v8::Function>::Cast(info[0
]), currentExecutionContext(info.GetIsolate())); |
5198 imp->voidMethodTestCallbackInterfaceOrNullArg(testCallbackInterfaceArg.relea
se()); | 5198 impl->voidMethodTestCallbackInterfaceOrNullArg(testCallbackInterfaceArg.rele
ase()); |
5199 } | 5199 } |
5200 | 5200 |
5201 static void voidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 5201 static void voidMethodTestCallbackInterfaceOrNullArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
5202 { | 5202 { |
5203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5204 TestObjectPythonV8Internal::voidMethodTestCallbackInterfaceOrNullArgMethod(i
nfo); | 5204 TestObjectPythonV8Internal::voidMethodTestCallbackInterfaceOrNullArgMethod(i
nfo); |
5205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5206 } | 5206 } |
5207 | 5207 |
5208 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info
) | 5208 static void testEnumMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info
) |
5209 { | 5209 { |
5210 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5210 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5211 v8SetReturnValueString(info, imp->testEnumMethod(), info.GetIsolate()); | 5211 v8SetReturnValueString(info, impl->testEnumMethod(), info.GetIsolate()); |
5212 } | 5212 } |
5213 | 5213 |
5214 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) | 5214 static void testEnumMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
5215 { | 5215 { |
5216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5217 TestObjectPythonV8Internal::testEnumMethodMethod(info); | 5217 TestObjectPythonV8Internal::testEnumMethodMethod(info); |
5218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5219 } | 5219 } |
5220 | 5220 |
5221 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 5221 static void voidMethodTestEnumArgMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
5222 { | 5222 { |
5223 if (UNLIKELY(info.Length() < 1)) { | 5223 if (UNLIKELY(info.Length() < 1)) { |
5224 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); | 5224 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
5225 return; | 5225 return; |
5226 } | 5226 } |
5227 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5227 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5228 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, testEnumTypeArg, in
fo[0]); | 5228 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, testEnumTypeArg, in
fo[0]); |
5229 String string = testEnumTypeArg; | 5229 String string = testEnumTypeArg; |
5230 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) { | 5230 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st
ring == "EnumValue3")) { |
5231 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObjectPython", "parameter 1 ('" + string + "') is not a valid enum value
."), info.GetIsolate()); | 5231 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestEnumArg
", "TestObjectPython", "parameter 1 ('" + string + "') is not a valid enum value
."), info.GetIsolate()); |
5232 return; | 5232 return; |
5233 } | 5233 } |
5234 imp->voidMethodTestEnumArg(testEnumTypeArg); | 5234 impl->voidMethodTestEnumArg(testEnumTypeArg); |
5235 } | 5235 } |
5236 | 5236 |
5237 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5237 static void voidMethodTestEnumArgMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
5238 { | 5238 { |
5239 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5239 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5240 TestObjectPythonV8Internal::voidMethodTestEnumArgMethod(info); | 5240 TestObjectPythonV8Internal::voidMethodTestEnumArgMethod(info); |
5241 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5241 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5242 } | 5242 } |
5243 | 5243 |
5244 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 5244 static void dictionaryMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
5245 { | 5245 { |
5246 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5246 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5247 v8SetReturnValue(info, imp->dictionaryMethod()); | 5247 v8SetReturnValue(info, impl->dictionaryMethod()); |
5248 } | 5248 } |
5249 | 5249 |
5250 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5250 static void dictionaryMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
5251 { | 5251 { |
5252 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5252 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5253 TestObjectPythonV8Internal::dictionaryMethodMethod(info); | 5253 TestObjectPythonV8Internal::dictionaryMethodMethod(info); |
5254 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5254 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5255 } | 5255 } |
5256 | 5256 |
5257 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) | 5257 static void nodeFilterMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
5258 { | 5258 { |
5259 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5259 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5260 v8SetReturnValue(info, imp->nodeFilterMethod()); | 5260 v8SetReturnValue(info, impl->nodeFilterMethod()); |
5261 } | 5261 } |
5262 | 5262 |
5263 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 5263 static void nodeFilterMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
5264 { | 5264 { |
5265 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5265 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5266 TestObjectPythonV8Internal::nodeFilterMethodMethod(info); | 5266 TestObjectPythonV8Internal::nodeFilterMethodMethod(info); |
5267 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5267 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5268 } | 5268 } |
5269 | 5269 |
5270 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 5270 static void promiseMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
5271 { | 5271 { |
5272 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5272 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5273 v8SetReturnValue(info, imp->promiseMethod().v8Value()); | 5273 v8SetReturnValue(info, impl->promiseMethod().v8Value()); |
5274 } | 5274 } |
5275 | 5275 |
5276 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) | 5276 static void promiseMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) |
5277 { | 5277 { |
5278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5279 TestObjectPythonV8Internal::promiseMethodMethod(info); | 5279 TestObjectPythonV8Internal::promiseMethodMethod(info); |
5280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5281 } | 5281 } |
5282 | 5282 |
5283 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5283 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5284 { | 5284 { |
5285 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5285 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5286 v8SetReturnValue(info, imp->serializedScriptValueMethod() ? imp->serializedS
criptValueMethod()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.GetIsola
te()))); | 5286 v8SetReturnValue(info, impl->serializedScriptValueMethod() ? impl->serialize
dScriptValueMethod()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.GetIso
late()))); |
5287 } | 5287 } |
5288 | 5288 |
5289 static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 5289 static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5290 { | 5290 { |
5291 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5291 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5292 TestObjectPythonV8Internal::serializedScriptValueMethodMethod(info); | 5292 TestObjectPythonV8Internal::serializedScriptValueMethodMethod(info); |
5293 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5293 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5294 } | 5294 } |
5295 | 5295 |
5296 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 5296 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
5297 { | 5297 { |
5298 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5298 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5299 v8SetReturnValue(info, imp->xPathNSResolverMethod()); | 5299 v8SetReturnValue(info, impl->xPathNSResolverMethod()); |
5300 } | 5300 } |
5301 | 5301 |
5302 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 5302 static void xPathNSResolverMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
5303 { | 5303 { |
5304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5305 TestObjectPythonV8Internal::xPathNSResolverMethodMethod(info); | 5305 TestObjectPythonV8Internal::xPathNSResolverMethodMethod(info); |
5306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5307 } | 5307 } |
5308 | 5308 |
5309 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5309 static void voidMethodDictionaryArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
5310 { | 5310 { |
5311 if (UNLIKELY(info.Length() < 1)) { | 5311 if (UNLIKELY(info.Length() < 1)) { |
5312 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); | 5312 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
5313 return; | 5313 return; |
5314 } | 5314 } |
5315 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5315 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5316 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola
te())); | 5316 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[0], info.GetIsola
te())); |
5317 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { | 5317 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { |
5318 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObjectPython", "parameter 1 ('dictionaryArg') is not an object."), inf
o.GetIsolate()); | 5318 throwTypeError(ExceptionMessages::failedToExecute("voidMethodDictionaryA
rg", "TestObjectPython", "parameter 1 ('dictionaryArg') is not an object."), inf
o.GetIsolate()); |
5319 return; | 5319 return; |
5320 } | 5320 } |
5321 imp->voidMethodDictionaryArg(dictionaryArg); | 5321 impl->voidMethodDictionaryArg(dictionaryArg); |
5322 } | 5322 } |
5323 | 5323 |
5324 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5324 static void voidMethodDictionaryArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5325 { | 5325 { |
5326 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5326 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5327 TestObjectPythonV8Internal::voidMethodDictionaryArgMethod(info); | 5327 TestObjectPythonV8Internal::voidMethodDictionaryArgMethod(info); |
5328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5329 } | 5329 } |
5330 | 5330 |
5331 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 5331 static void voidMethodNodeFilterArgMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
5332 { | 5332 { |
5333 if (UNLIKELY(info.Length() < 1)) { | 5333 if (UNLIKELY(info.Length() < 1)) { |
5334 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeFilterA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); | 5334 throwTypeError(ExceptionMessages::failedToExecute("voidMethodNodeFilterA
rg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())
), info.GetIsolate()); |
5335 return; | 5335 return; |
5336 } | 5336 } |
5337 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5337 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5338 V8TRYCATCH_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], inf
o.GetIsolate())); | 5338 V8TRYCATCH_VOID(RefPtr<NodeFilter>, nodeFilterArg, toNodeFilter(info[0], inf
o.GetIsolate())); |
5339 imp->voidMethodNodeFilterArg(nodeFilterArg.release()); | 5339 impl->voidMethodNodeFilterArg(nodeFilterArg.release()); |
5340 } | 5340 } |
5341 | 5341 |
5342 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5342 static void voidMethodNodeFilterArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5343 { | 5343 { |
5344 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5344 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5345 TestObjectPythonV8Internal::voidMethodNodeFilterArgMethod(info); | 5345 TestObjectPythonV8Internal::voidMethodNodeFilterArgMethod(info); |
5346 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5346 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5347 } | 5347 } |
5348 | 5348 |
5349 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 5349 static void voidMethodPromiseArgMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
5350 { | 5350 { |
5351 if (UNLIKELY(info.Length() < 1)) { | 5351 if (UNLIKELY(info.Length() < 1)) { |
5352 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); | 5352 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())),
info.GetIsolate()); |
5353 return; | 5353 return; |
5354 } | 5354 } |
5355 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5355 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5356 V8TRYCATCH_VOID(ScriptPromise, promiseArg, ScriptPromise(info[0], info.GetIs
olate())); | 5356 V8TRYCATCH_VOID(ScriptPromise, promiseArg, ScriptPromise(info[0], info.GetIs
olate())); |
5357 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { | 5357 if (!promiseArg.isUndefinedOrNull() && !promiseArg.isObject()) { |
5358 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObjectPython", "parameter 1 ('promiseArg') is not an object."), info.GetI
solate()); | 5358 throwTypeError(ExceptionMessages::failedToExecute("voidMethodPromiseArg"
, "TestObjectPython", "parameter 1 ('promiseArg') is not an object."), info.GetI
solate()); |
5359 return; | 5359 return; |
5360 } | 5360 } |
5361 imp->voidMethodPromiseArg(promiseArg); | 5361 impl->voidMethodPromiseArg(promiseArg); |
5362 } | 5362 } |
5363 | 5363 |
5364 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5364 static void voidMethodPromiseArgMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
5365 { | 5365 { |
5366 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5366 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5367 TestObjectPythonV8Internal::voidMethodPromiseArgMethod(info); | 5367 TestObjectPythonV8Internal::voidMethodPromiseArgMethod(info); |
5368 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5368 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5369 } | 5369 } |
5370 | 5370 |
5371 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5371 static void voidMethodSerializedScriptValueArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
5372 { | 5372 { |
5373 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 5373 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
erializedScriptValueArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5374 if (UNLIKELY(info.Length() < 1)) { | 5374 if (UNLIKELY(info.Length() < 1)) { |
5375 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5375 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5376 exceptionState.throwIfNeeded(); | 5376 exceptionState.throwIfNeeded(); |
5377 return; | 5377 return; |
5378 } | 5378 } |
5379 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5379 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5380 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal
ue::create(info[0], 0, 0, exceptionState, info.GetIsolate()); | 5380 RefPtr<SerializedScriptValue> serializedScriptValueArg = SerializedScriptVal
ue::create(info[0], 0, 0, exceptionState, info.GetIsolate()); |
5381 if (exceptionState.throwIfNeeded()) | 5381 if (exceptionState.throwIfNeeded()) |
5382 return; | 5382 return; |
5383 imp->voidMethodSerializedScriptValueArg(serializedScriptValueArg); | 5383 impl->voidMethodSerializedScriptValueArg(serializedScriptValueArg); |
5384 } | 5384 } |
5385 | 5385 |
5386 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 5386 static void voidMethodSerializedScriptValueArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
5387 { | 5387 { |
5388 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5388 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5389 TestObjectPythonV8Internal::voidMethodSerializedScriptValueArgMethod(info); | 5389 TestObjectPythonV8Internal::voidMethodSerializedScriptValueArgMethod(info); |
5390 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5390 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5391 } | 5391 } |
5392 | 5392 |
5393 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 5393 static void voidMethodXPathNSResolverArgMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
5394 { | 5394 { |
5395 if (UNLIKELY(info.Length() < 1)) { | 5395 if (UNLIKELY(info.Length() < 1)) { |
5396 throwTypeError(ExceptionMessages::failedToExecute("voidMethodXPathNSReso
lverArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng
th())), info.GetIsolate()); | 5396 throwTypeError(ExceptionMessages::failedToExecute("voidMethodXPathNSReso
lverArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Leng
th())), info.GetIsolate()); |
5397 return; | 5397 return; |
5398 } | 5398 } |
5399 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5399 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5400 V8TRYCATCH_VOID(RefPtrWillBeRawPtr<XPathNSResolver>, xPathNSResolverArg, toX
PathNSResolver(info[0], info.GetIsolate())); | 5400 V8TRYCATCH_VOID(RefPtrWillBeRawPtr<XPathNSResolver>, xPathNSResolverArg, toX
PathNSResolver(info[0], info.GetIsolate())); |
5401 imp->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); | 5401 impl->voidMethodXPathNSResolverArg(xPathNSResolverArg.release()); |
5402 } | 5402 } |
5403 | 5403 |
5404 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 5404 static void voidMethodXPathNSResolverArgMethodCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
5405 { | 5405 { |
5406 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5406 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5407 TestObjectPythonV8Internal::voidMethodXPathNSResolverArgMethod(info); | 5407 TestObjectPythonV8Internal::voidMethodXPathNSResolverArgMethod(info); |
5408 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5408 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5409 } | 5409 } |
5410 | 5410 |
5411 static void voidMethodSequenceDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5411 static void voidMethodSequenceDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5412 { | 5412 { |
5413 if (UNLIKELY(info.Length() < 1)) { | 5413 if (UNLIKELY(info.Length() < 1)) { |
5414 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceDic
tionaryArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); | 5414 throwTypeError(ExceptionMessages::failedToExecute("voidMethodSequenceDic
tionaryArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.L
ength())), info.GetIsolate()); |
5415 return; | 5415 return; |
5416 } | 5416 } |
5417 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5417 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5418 V8TRYCATCH_VOID(Vector<Dictionary>, dictionarySequenceArg, toNativeArray<Dic
tionary>(info[0], 1, info.GetIsolate())); | 5418 V8TRYCATCH_VOID(Vector<Dictionary>, dictionarySequenceArg, toNativeArray<Dic
tionary>(info[0], 1, info.GetIsolate())); |
5419 imp->voidMethodSequenceDictionaryArg(dictionarySequenceArg); | 5419 impl->voidMethodSequenceDictionaryArg(dictionarySequenceArg); |
5420 } | 5420 } |
5421 | 5421 |
5422 static void voidMethodSequenceDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 5422 static void voidMethodSequenceDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
5423 { | 5423 { |
5424 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5424 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5425 TestObjectPythonV8Internal::voidMethodSequenceDictionaryArgMethod(info); | 5425 TestObjectPythonV8Internal::voidMethodSequenceDictionaryArgMethod(info); |
5426 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5426 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5427 } | 5427 } |
5428 | 5428 |
5429 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 5429 static void voidMethodStringArgLongArgMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
5430 { | 5430 { |
5431 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 5431 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
tringArgLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5432 if (UNLIKELY(info.Length() < 2)) { | 5432 if (UNLIKELY(info.Length() < 2)) { |
5433 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); | 5433 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); |
5434 exceptionState.throwIfNeeded(); | 5434 exceptionState.throwIfNeeded(); |
5435 return; | 5435 return; |
5436 } | 5436 } |
5437 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5437 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5438 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 5438 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; |
5439 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex
ceptionState); | 5439 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex
ceptionState); |
5440 imp->voidMethodStringArgLongArg(stringArg, longArg); | 5440 impl->voidMethodStringArgLongArg(stringArg, longArg); |
5441 } | 5441 } |
5442 | 5442 |
5443 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 5443 static void voidMethodStringArgLongArgMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
5444 { | 5444 { |
5445 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5445 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5446 TestObjectPythonV8Internal::voidMethodStringArgLongArgMethod(info); | 5446 TestObjectPythonV8Internal::voidMethodStringArgLongArgMethod(info); |
5447 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5447 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5448 } | 5448 } |
5449 | 5449 |
5450 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5450 static void voidMethodOptionalStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5451 { | 5451 { |
5452 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5452 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5453 if (UNLIKELY(info.Length() <= 0)) { | 5453 if (UNLIKELY(info.Length() <= 0)) { |
5454 imp->voidMethodOptionalStringArg(); | 5454 impl->voidMethodOptionalStringArg(); |
5455 return; | 5455 return; |
5456 } | 5456 } |
5457 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, optionalStringArg,
info[0]); | 5457 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, optionalStringArg,
info[0]); |
5458 imp->voidMethodOptionalStringArg(optionalStringArg); | 5458 impl->voidMethodOptionalStringArg(optionalStringArg); |
5459 } | 5459 } |
5460 | 5460 |
5461 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 5461 static void voidMethodOptionalStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5462 { | 5462 { |
5463 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5463 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5464 TestObjectPythonV8Internal::voidMethodOptionalStringArgMethod(info); | 5464 TestObjectPythonV8Internal::voidMethodOptionalStringArgMethod(info); |
5465 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5465 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5466 } | 5466 } |
5467 | 5467 |
5468 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 5468 static void voidMethodOptionalTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
5469 { | 5469 { |
5470 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5470 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5471 if (UNLIKELY(info.Length() <= 0)) { | 5471 if (UNLIKELY(info.Length() <= 0)) { |
5472 imp->voidMethodOptionalTestInterfaceEmptyArg(); | 5472 impl->voidMethodOptionalTestInterfaceEmptyArg(); |
5473 return; | 5473 return; |
5474 } | 5474 } |
5475 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 5475 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
5476 imp->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg); | 5476 impl->voidMethodOptionalTestInterfaceEmptyArg(optionalTestInterfaceEmptyArg)
; |
5477 } | 5477 } |
5478 | 5478 |
5479 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5479 static void voidMethodOptionalTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
5480 { | 5480 { |
5481 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5481 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5482 TestObjectPythonV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(in
fo); | 5482 TestObjectPythonV8Internal::voidMethodOptionalTestInterfaceEmptyArgMethod(in
fo); |
5483 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5483 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5484 } | 5484 } |
5485 | 5485 |
5486 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5486 static void voidMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5487 { | 5487 { |
5488 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 5488 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodO
ptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5489 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5489 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5490 if (UNLIKELY(info.Length() <= 0)) { | 5490 if (UNLIKELY(info.Length() <= 0)) { |
5491 imp->voidMethodOptionalLongArg(); | 5491 impl->voidMethodOptionalLongArg(); |
5492 return; | 5492 return; |
5493 } | 5493 } |
5494 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); | 5494 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); |
5495 imp->voidMethodOptionalLongArg(optionalLongArg); | 5495 impl->voidMethodOptionalLongArg(optionalLongArg); |
5496 } | 5496 } |
5497 | 5497 |
5498 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5498 static void voidMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5499 { | 5499 { |
5500 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5500 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5501 TestObjectPythonV8Internal::voidMethodOptionalLongArgMethod(info); | 5501 TestObjectPythonV8Internal::voidMethodOptionalLongArgMethod(info); |
5502 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5502 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5503 } | 5503 } |
5504 | 5504 |
5505 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5505 static void stringMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5506 { | 5506 { |
5507 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 5507 ExceptionState exceptionState(ExceptionState::ExecutionContext, "stringMetho
dOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5508 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5508 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5509 if (UNLIKELY(info.Length() <= 0)) { | 5509 if (UNLIKELY(info.Length() <= 0)) { |
5510 v8SetReturnValueString(info, imp->stringMethodOptionalLongArg(), info.Ge
tIsolate()); | 5510 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(), info.G
etIsolate()); |
5511 return; | 5511 return; |
5512 } | 5512 } |
5513 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); | 5513 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); |
5514 v8SetReturnValueString(info, imp->stringMethodOptionalLongArg(optionalLongAr
g), info.GetIsolate()); | 5514 v8SetReturnValueString(info, impl->stringMethodOptionalLongArg(optionalLongA
rg), info.GetIsolate()); |
5515 } | 5515 } |
5516 | 5516 |
5517 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 5517 static void stringMethodOptionalLongArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5518 { | 5518 { |
5519 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5519 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5520 TestObjectPythonV8Internal::stringMethodOptionalLongArgMethod(info); | 5520 TestObjectPythonV8Internal::stringMethodOptionalLongArgMethod(info); |
5521 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5521 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5522 } | 5522 } |
5523 | 5523 |
5524 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 5524 static void testInterfaceEmptyMethodOptionalLongArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
5525 { | 5525 { |
5526 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolat
e()); | 5526 ExceptionState exceptionState(ExceptionState::ExecutionContext, "testInterfa
ceEmptyMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolat
e()); |
5527 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5527 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5528 if (UNLIKELY(info.Length() <= 0)) { | 5528 if (UNLIKELY(info.Length() <= 0)) { |
5529 v8SetReturnValue(info, imp->testInterfaceEmptyMethodOptionalLongArg()); | 5529 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg()); |
5530 return; | 5530 return; |
5531 } | 5531 } |
5532 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); | 5532 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); |
5533 v8SetReturnValue(info, imp->testInterfaceEmptyMethodOptionalLongArg(optional
LongArg)); | 5533 v8SetReturnValue(info, impl->testInterfaceEmptyMethodOptionalLongArg(optiona
lLongArg)); |
5534 } | 5534 } |
5535 | 5535 |
5536 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5536 static void testInterfaceEmptyMethodOptionalLongArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
5537 { | 5537 { |
5538 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5538 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5539 TestObjectPythonV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(in
fo); | 5539 TestObjectPythonV8Internal::testInterfaceEmptyMethodOptionalLongArgMethod(in
fo); |
5540 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5540 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5541 } | 5541 } |
5542 | 5542 |
5543 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5543 static void longMethodOptionalLongArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
5544 { | 5544 { |
5545 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO
ptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 5545 ExceptionState exceptionState(ExceptionState::ExecutionContext, "longMethodO
ptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5546 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5546 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5547 if (UNLIKELY(info.Length() <= 0)) { | 5547 if (UNLIKELY(info.Length() <= 0)) { |
5548 v8SetReturnValueInt(info, imp->longMethodOptionalLongArg()); | 5548 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg()); |
5549 return; | 5549 return; |
5550 } | 5550 } |
5551 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); | 5551 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); |
5552 v8SetReturnValueInt(info, imp->longMethodOptionalLongArg(optionalLongArg)); | 5552 v8SetReturnValueInt(info, impl->longMethodOptionalLongArg(optionalLongArg)); |
5553 } | 5553 } |
5554 | 5554 |
5555 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 5555 static void longMethodOptionalLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5556 { | 5556 { |
5557 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5557 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5558 TestObjectPythonV8Internal::longMethodOptionalLongArgMethod(info); | 5558 TestObjectPythonV8Internal::longMethodOptionalLongArgMethod(info); |
5559 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5559 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5560 } | 5560 } |
5561 | 5561 |
5562 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 5562 static void voidMethodLongArgOptionalLongArgMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
5563 { | 5563 { |
5564 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 5564 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5565 if (UNLIKELY(info.Length() < 1)) { | 5565 if (UNLIKELY(info.Length() < 1)) { |
5566 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5566 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5567 exceptionState.throwIfNeeded(); | 5567 exceptionState.throwIfNeeded(); |
5568 return; | 5568 return; |
5569 } | 5569 } |
5570 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5570 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5571 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 5571 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
5572 if (UNLIKELY(info.Length() <= 1)) { | 5572 if (UNLIKELY(info.Length() <= 1)) { |
5573 imp->voidMethodLongArgOptionalLongArg(longArg); | 5573 impl->voidMethodLongArgOptionalLongArg(longArg); |
5574 return; | 5574 return; |
5575 } | 5575 } |
5576 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[1], exceptionSt
ate), exceptionState); | 5576 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[1], exceptionSt
ate), exceptionState); |
5577 imp->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); | 5577 impl->voidMethodLongArgOptionalLongArg(longArg, optionalLongArg); |
5578 } | 5578 } |
5579 | 5579 |
5580 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 5580 static void voidMethodLongArgOptionalLongArgMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
5581 { | 5581 { |
5582 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5582 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5583 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgMethod(info); | 5583 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgMethod(info); |
5584 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5584 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5585 } | 5585 } |
5586 | 5586 |
5587 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5587 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
5588 { | 5588 { |
5589 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObjectPython", info.Holder(), info.G
etIsolate()); | 5589 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalLongArgOptionalLongArg", "TestObjectPython", info.Holder(), info.G
etIsolate()); |
5590 if (UNLIKELY(info.Length() < 1)) { | 5590 if (UNLIKELY(info.Length() < 1)) { |
5591 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5591 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5592 exceptionState.throwIfNeeded(); | 5592 exceptionState.throwIfNeeded(); |
5593 return; | 5593 return; |
5594 } | 5594 } |
5595 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5595 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5596 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 5596 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
5597 if (UNLIKELY(info.Length() <= 1)) { | 5597 if (UNLIKELY(info.Length() <= 1)) { |
5598 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); | 5598 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg); |
5599 return; | 5599 return; |
5600 } | 5600 } |
5601 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg1, toInt32(info[1], exceptionS
tate), exceptionState); | 5601 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg1, toInt32(info[1], exceptionS
tate), exceptionState); |
5602 if (UNLIKELY(info.Length() <= 2)) { | 5602 if (UNLIKELY(info.Length() <= 2)) { |
5603 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLo
ngArg1); | 5603 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalL
ongArg1); |
5604 return; | 5604 return; |
5605 } | 5605 } |
5606 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg2, toInt32(info[2], exceptionS
tate), exceptionState); | 5606 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg2, toInt32(info[2], exceptionS
tate), exceptionState); |
5607 imp->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongAr
g1, optionalLongArg2); | 5607 impl->voidMethodLongArgOptionalLongArgOptionalLongArg(longArg, optionalLongA
rg1, optionalLongArg2); |
5608 } | 5608 } |
5609 | 5609 |
5610 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 5610 static void voidMethodLongArgOptionalLongArgOptionalLongArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
5611 { | 5611 { |
5612 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5612 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5613 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgM
ethod(info); | 5613 TestObjectPythonV8Internal::voidMethodLongArgOptionalLongArgOptionalLongArgM
ethod(info); |
5614 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5614 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5615 } | 5615 } |
5616 | 5616 |
5617 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 5617 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
5618 { | 5618 { |
5619 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.Ge
tIsolate()); | 5619 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodL
ongArgOptionalTestInterfaceEmptyArg", "TestObjectPython", info.Holder(), info.Ge
tIsolate()); |
5620 if (UNLIKELY(info.Length() < 1)) { | 5620 if (UNLIKELY(info.Length() < 1)) { |
5621 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5621 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5622 exceptionState.throwIfNeeded(); | 5622 exceptionState.throwIfNeeded(); |
5623 return; | 5623 return; |
5624 } | 5624 } |
5625 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5625 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5626 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 5626 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
5627 if (UNLIKELY(info.Length() <= 1)) { | 5627 if (UNLIKELY(info.Length() <= 1)) { |
5628 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); | 5628 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg); |
5629 return; | 5629 return; |
5630 } | 5630 } |
5631 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); | 5631 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); |
5632 imp->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestInt
erfaceEmpty); | 5632 impl->voidMethodLongArgOptionalTestInterfaceEmptyArg(longArg, optionalTestIn
terfaceEmpty); |
5633 } | 5633 } |
5634 | 5634 |
5635 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 5635 static void voidMethodLongArgOptionalTestInterfaceEmptyArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
5636 { | 5636 { |
5637 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5637 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5638 TestObjectPythonV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMe
thod(info); | 5638 TestObjectPythonV8Internal::voidMethodLongArgOptionalTestInterfaceEmptyArgMe
thod(info); |
5639 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5639 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5640 } | 5640 } |
5641 | 5641 |
5642 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 5642 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
5643 { | 5643 { |
5644 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceEmptyArgOptionalLongArg", "TestObjectPython", info.Holder(), info.Ge
tIsolate()); | 5644 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodT
estInterfaceEmptyArgOptionalLongArg", "TestObjectPython", info.Holder(), info.Ge
tIsolate()); |
5645 if (UNLIKELY(info.Length() < 1)) { | 5645 if (UNLIKELY(info.Length() < 1)) { |
5646 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5646 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5647 exceptionState.throwIfNeeded(); | 5647 exceptionState.throwIfNeeded(); |
5648 return; | 5648 return; |
5649 } | 5649 } |
5650 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5650 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5651 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 5651 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmpty, V8TestInter
faceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
5652 if (UNLIKELY(info.Length() <= 1)) { | 5652 if (UNLIKELY(info.Length() <= 1)) { |
5653 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfac
eEmpty); | 5653 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfa
ceEmpty); |
5654 return; | 5654 return; |
5655 } | 5655 } |
5656 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex
ceptionState); | 5656 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[1], exceptionState), ex
ceptionState); |
5657 imp->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEmp
ty, longArg); | 5657 impl->voidMethodTestInterfaceEmptyArgOptionalLongArg(optionalTestInterfaceEm
pty, longArg); |
5658 } | 5658 } |
5659 | 5659 |
5660 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 5660 static void voidMethodTestInterfaceEmptyArgOptionalLongArgMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
5661 { | 5661 { |
5662 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5662 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5663 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMe
thod(info); | 5663 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgOptionalLongArgMe
thod(info); |
5664 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5664 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5665 } | 5665 } |
5666 | 5666 |
5667 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5667 static void voidMethodOptionalDictionaryArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5668 { | 5668 { |
5669 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5669 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5670 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info.
GetIsolate())); | 5670 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[0], info.
GetIsolate())); |
5671 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO
bject()) { | 5671 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO
bject()) { |
5672 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic
tionaryArg", "TestObjectPython", "parameter 1 ('optionalDictionaryArg') is not a
n object."), info.GetIsolate()); | 5672 throwTypeError(ExceptionMessages::failedToExecute("voidMethodOptionalDic
tionaryArg", "TestObjectPython", "parameter 1 ('optionalDictionaryArg') is not a
n object."), info.GetIsolate()); |
5673 return; | 5673 return; |
5674 } | 5674 } |
5675 imp->voidMethodOptionalDictionaryArg(optionalDictionaryArg); | 5675 impl->voidMethodOptionalDictionaryArg(optionalDictionaryArg); |
5676 } | 5676 } |
5677 | 5677 |
5678 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 5678 static void voidMethodOptionalDictionaryArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
5679 { | 5679 { |
5680 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5680 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5681 TestObjectPythonV8Internal::voidMethodOptionalDictionaryArgMethod(info); | 5681 TestObjectPythonV8Internal::voidMethodOptionalDictionaryArgMethod(info); |
5682 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5682 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5683 } | 5683 } |
5684 | 5684 |
5685 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 5685 static void voidMethodVariadicStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5686 { | 5686 { |
5687 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5687 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5688 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 0)); | 5688 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 0)); |
5689 imp->voidMethodVariadicStringArg(variadicStringArgs); | 5689 impl->voidMethodVariadicStringArg(variadicStringArgs); |
5690 } | 5690 } |
5691 | 5691 |
5692 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 5692 static void voidMethodVariadicStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5693 { | 5693 { |
5694 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5694 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5695 TestObjectPythonV8Internal::voidMethodVariadicStringArgMethod(info); | 5695 TestObjectPythonV8Internal::voidMethodVariadicStringArgMethod(info); |
5696 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5696 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5697 } | 5697 } |
5698 | 5698 |
5699 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 5699 static void voidMethodStringArgVariadicStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
5700 { | 5700 { |
5701 if (UNLIKELY(info.Length() < 1)) { | 5701 if (UNLIKELY(info.Length() < 1)) { |
5702 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgVa
riadicStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i
nfo.Length())), info.GetIsolate()); | 5702 throwTypeError(ExceptionMessages::failedToExecute("voidMethodStringArgVa
riadicStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(1, i
nfo.Length())), info.GetIsolate()); |
5703 return; | 5703 return; |
5704 } | 5704 } |
5705 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5705 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5706 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 5706 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; |
5707 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 1)); | 5707 V8TRYCATCH_VOID(Vector<String>, variadicStringArgs, toNativeArguments<String
>(info, 1)); |
5708 imp->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); | 5708 impl->voidMethodStringArgVariadicStringArg(stringArg, variadicStringArgs); |
5709 } | 5709 } |
5710 | 5710 |
5711 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 5711 static void voidMethodStringArgVariadicStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
5712 { | 5712 { |
5713 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5713 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5714 TestObjectPythonV8Internal::voidMethodStringArgVariadicStringArgMethod(info)
; | 5714 TestObjectPythonV8Internal::voidMethodStringArgVariadicStringArgMethod(info)
; |
5715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5716 } | 5716 } |
5717 | 5717 |
5718 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 5718 static void voidMethodVariadicTestInterfaceEmptyArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
5719 { | 5719 { |
5720 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5720 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5721 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; | 5721 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; |
5722 for (int i = 0; i < info.Length(); ++i) { | 5722 for (int i = 0; i < info.Length(); ++i) { |
5723 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { | 5723 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { |
5724 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi
cTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type 'TestIn
terfaceEmpty'."), info.GetIsolate()); | 5724 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi
cTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type 'TestIn
terfaceEmpty'."), info.GetIsolate()); |
5725 return; | 5725 return; |
5726 } | 5726 } |
5727 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); | 5727 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); |
5728 } | 5728 } |
5729 imp->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs)
; | 5729 impl->voidMethodVariadicTestInterfaceEmptyArg(variadicTestInterfaceEmptyArgs
); |
5730 } | 5730 } |
5731 | 5731 |
5732 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 5732 static void voidMethodVariadicTestInterfaceEmptyArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
5733 { | 5733 { |
5734 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5734 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5735 TestObjectPythonV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(in
fo); | 5735 TestObjectPythonV8Internal::voidMethodVariadicTestInterfaceEmptyArgMethod(in
fo); |
5736 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5736 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5737 } | 5737 } |
5738 | 5738 |
5739 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 5739 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethod(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
5740 { | 5740 { |
5741 if (UNLIKELY(info.Length() < 1)) { | 5741 if (UNLIKELY(info.Length() < 1)) { |
5742 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages:
:notEnoughArguments(1, info.Length())), info.GetIsolate()); | 5742 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages:
:notEnoughArguments(1, info.Length())), info.GetIsolate()); |
5743 return; | 5743 return; |
5744 } | 5744 } |
5745 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5745 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5746 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 5746 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
5747 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; | 5747 Vector<RefPtr<TestInterfaceEmpty> > variadicTestInterfaceEmptyArgs; |
5748 for (int i = 1; i < info.Length(); ++i) { | 5748 for (int i = 1; i < info.Length(); ++i) { |
5749 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { | 5749 if (!V8TestInterfaceEmpty::hasInstance(info[i], info.GetIsolate())) { |
5750 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt
erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", "parameter 2 i
s not of type 'TestInterfaceEmpty'."), info.GetIsolate()); | 5750 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInt
erfaceEmptyArgVariadicTestInterfaceEmptyArg", "TestObjectPython", "parameter 2 i
s not of type 'TestInterfaceEmpty'."), info.GetIsolate()); |
5751 return; | 5751 return; |
5752 } | 5752 } |
5753 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); | 5753 variadicTestInterfaceEmptyArgs.append(V8TestInterfaceEmpty::toNative(v8:
:Handle<v8::Object>::Cast(info[i]))); |
5754 } | 5754 } |
5755 imp->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInterf
aceEmptyArg, variadicTestInterfaceEmptyArgs); | 5755 impl->voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArg(testInter
faceEmptyArg, variadicTestInterfaceEmptyArgs); |
5756 } | 5756 } |
5757 | 5757 |
5758 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& info) | 5758 static void voidMethodTestInterfaceEmptyArgVariadicTestInterfaceEmptyArgMethodCa
llback(const v8::FunctionCallbackInfo<v8::Value>& info) |
5759 { | 5759 { |
5760 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5760 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5761 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInter
faceEmptyArgMethod(info); | 5761 TestObjectPythonV8Internal::voidMethodTestInterfaceEmptyArgVariadicTestInter
faceEmptyArgMethod(info); |
5762 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5762 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5763 } | 5763 } |
5764 | 5764 |
5765 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 5765 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
5766 { | 5766 { |
5767 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5767 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5768 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > v
ariadicTestInterfaceWillBeGarbageCollectedArg; | 5768 WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarbageCollected> > v
ariadicTestInterfaceWillBeGarbageCollectedArg; |
5769 for (int i = 0; i < info.Length(); ++i) { | 5769 for (int i = 0; i < info.Length(); ++i) { |
5770 if (!V8TestInterfaceWillBeGarbageCollected::hasInstance(info[i], info.Ge
tIsolate())) { | 5770 if (!V8TestInterfaceWillBeGarbageCollected::hasInstance(info[i], info.Ge
tIsolate())) { |
5771 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi
cTestInterfaceWillBeGarbageCollectedArg", "TestObjectPython", "parameter 1 is no
t of type 'TestInterfaceWillBeGarbageCollected'."), info.GetIsolate()); | 5771 throwTypeError(ExceptionMessages::failedToExecute("voidMethodVariadi
cTestInterfaceWillBeGarbageCollectedArg", "TestObjectPython", "parameter 1 is no
t of type 'TestInterfaceWillBeGarbageCollected'."), info.GetIsolate()); |
5772 return; | 5772 return; |
5773 } | 5773 } |
5774 variadicTestInterfaceWillBeGarbageCollectedArg.append(V8TestInterfaceWil
lBeGarbageCollected::toNative(v8::Handle<v8::Object>::Cast(info[i]))); | 5774 variadicTestInterfaceWillBeGarbageCollectedArg.append(V8TestInterfaceWil
lBeGarbageCollected::toNative(v8::Handle<v8::Object>::Cast(info[i]))); |
5775 } | 5775 } |
5776 imp->voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(variadicTestIn
terfaceWillBeGarbageCollectedArg); | 5776 impl->voidMethodVariadicTestInterfaceWillBeGarbageCollectedArg(variadicTestI
nterfaceWillBeGarbageCollectedArg); |
5777 } | 5777 } |
5778 | 5778 |
5779 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 5779 static void voidMethodVariadicTestInterfaceWillBeGarbageCollectedArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
5780 { | 5780 { |
5781 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5781 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
5782 TestObjectPythonV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageColl
ectedArgMethod(info); | 5782 TestObjectPythonV8Internal::voidMethodVariadicTestInterfaceWillBeGarbageColl
ectedArgMethod(info); |
5783 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5783 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
5784 } | 5784 } |
5785 | 5785 |
5786 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5786 static void overloadedMethodA1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5787 { | 5787 { |
5788 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObjectPython", info.Holder(), info.GetIsolate()); | 5788 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5789 if (UNLIKELY(info.Length() < 1)) { | 5789 if (UNLIKELY(info.Length() < 1)) { |
5790 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5790 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5791 exceptionState.throwIfNeeded(); | 5791 exceptionState.throwIfNeeded(); |
5792 return; | 5792 return; |
5793 } | 5793 } |
5794 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5794 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5795 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 5795 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
5796 imp->overloadedMethodA(longArg); | 5796 impl->overloadedMethodA(longArg); |
5797 } | 5797 } |
5798 | 5798 |
5799 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5799 static void overloadedMethodA2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5800 { | 5800 { |
5801 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObjectPython", info.Holder(), info.GetIsolate()); | 5801 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodA", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5802 if (UNLIKELY(info.Length() < 2)) { | 5802 if (UNLIKELY(info.Length() < 2)) { |
5803 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); | 5803 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, i
nfo.Length())); |
5804 exceptionState.throwIfNeeded(); | 5804 exceptionState.throwIfNeeded(); |
5805 return; | 5805 return; |
5806 } | 5806 } |
5807 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5807 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5808 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); | 5808 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); |
5809 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); | 5809 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); |
5810 imp->overloadedMethodA(longArg1, longArg2); | 5810 impl->overloadedMethodA(longArg1, longArg2); |
5811 } | 5811 } |
5812 | 5812 |
5813 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5813 static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
5814 { | 5814 { |
5815 if (((info.Length() == 1))) { | 5815 if (((info.Length() == 1))) { |
5816 overloadedMethodA1Method(info); | 5816 overloadedMethodA1Method(info); |
5817 return; | 5817 return; |
5818 } | 5818 } |
5819 if (((info.Length() == 2))) { | 5819 if (((info.Length() == 2))) { |
5820 overloadedMethodA2Method(info); | 5820 overloadedMethodA2Method(info); |
(...skipping 17 matching lines...) Expand all Loading... |
5838 } | 5838 } |
5839 | 5839 |
5840 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5840 static void overloadedMethodB1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5841 { | 5841 { |
5842 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObjectPython", info.Holder(), info.GetIsolate()); | 5842 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5843 if (UNLIKELY(info.Length() < 1)) { | 5843 if (UNLIKELY(info.Length() < 1)) { |
5844 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5844 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5845 exceptionState.throwIfNeeded(); | 5845 exceptionState.throwIfNeeded(); |
5846 return; | 5846 return; |
5847 } | 5847 } |
5848 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5848 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5849 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 5849 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
5850 imp->overloadedMethodB(longArg); | 5850 impl->overloadedMethodB(longArg); |
5851 } | 5851 } |
5852 | 5852 |
5853 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5853 static void overloadedMethodB2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5854 { | 5854 { |
5855 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObjectPython", info.Holder(), info.GetIsolate()); | 5855 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodB", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5856 if (UNLIKELY(info.Length() < 1)) { | 5856 if (UNLIKELY(info.Length() < 1)) { |
5857 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5857 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5858 exceptionState.throwIfNeeded(); | 5858 exceptionState.throwIfNeeded(); |
5859 return; | 5859 return; |
5860 } | 5860 } |
5861 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5861 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5862 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); | 5862 V8TRYCATCH_EXCEPTION_VOID(int, longArg1, toInt32(info[0], exceptionState), e
xceptionState); |
5863 if (UNLIKELY(info.Length() <= 1)) { | 5863 if (UNLIKELY(info.Length() <= 1)) { |
5864 imp->overloadedMethodB(longArg1); | 5864 impl->overloadedMethodB(longArg1); |
5865 return; | 5865 return; |
5866 } | 5866 } |
5867 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); | 5867 V8TRYCATCH_EXCEPTION_VOID(int, longArg2, toInt32(info[1], exceptionState), e
xceptionState); |
5868 imp->overloadedMethodB(longArg1, longArg2); | 5868 impl->overloadedMethodB(longArg1, longArg2); |
5869 } | 5869 } |
5870 | 5870 |
5871 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5871 static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
5872 { | 5872 { |
5873 if (((info.Length() == 1))) { | 5873 if (((info.Length() == 1))) { |
5874 overloadedMethodB1Method(info); | 5874 overloadedMethodB1Method(info); |
5875 return; | 5875 return; |
5876 } | 5876 } |
5877 if (((info.Length() == 1)) || ((info.Length() == 2))) { | 5877 if (((info.Length() == 1)) || ((info.Length() == 2))) { |
5878 overloadedMethodB2Method(info); | 5878 overloadedMethodB2Method(info); |
(...skipping 17 matching lines...) Expand all Loading... |
5896 } | 5896 } |
5897 | 5897 |
5898 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5898 static void overloadedMethodC1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5899 { | 5899 { |
5900 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObjectPython", info.Holder(), info.GetIsolate()); | 5900 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5901 if (UNLIKELY(info.Length() < 1)) { | 5901 if (UNLIKELY(info.Length() < 1)) { |
5902 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5902 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5903 exceptionState.throwIfNeeded(); | 5903 exceptionState.throwIfNeeded(); |
5904 return; | 5904 return; |
5905 } | 5905 } |
5906 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5906 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5907 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 5907 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
5908 imp->overloadedMethodC(longArg); | 5908 impl->overloadedMethodC(longArg); |
5909 } | 5909 } |
5910 | 5910 |
5911 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5911 static void overloadedMethodC2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5912 { | 5912 { |
5913 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObjectPython", info.Holder(), info.GetIsolate()); | 5913 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodC", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5914 if (UNLIKELY(info.Length() < 1)) { | 5914 if (UNLIKELY(info.Length() < 1)) { |
5915 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5915 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5916 exceptionState.throwIfNeeded(); | 5916 exceptionState.throwIfNeeded(); |
5917 return; | 5917 return; |
5918 } | 5918 } |
5919 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5919 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5920 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 5920 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
5921 V8TRYCATCH_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1)); | 5921 V8TRYCATCH_VOID(Vector<int>, longArgs, toNativeArguments<int>(info, 1)); |
5922 imp->overloadedMethodC(longArg, longArgs); | 5922 impl->overloadedMethodC(longArg, longArgs); |
5923 } | 5923 } |
5924 | 5924 |
5925 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5925 static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
5926 { | 5926 { |
5927 if (((info.Length() == 1))) { | 5927 if (((info.Length() == 1))) { |
5928 overloadedMethodC1Method(info); | 5928 overloadedMethodC1Method(info); |
5929 return; | 5929 return; |
5930 } | 5930 } |
5931 if () { | 5931 if () { |
5932 overloadedMethodC2Method(info); | 5932 overloadedMethodC2Method(info); |
(...skipping 17 matching lines...) Expand all Loading... |
5950 } | 5950 } |
5951 | 5951 |
5952 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5952 static void overloadedMethodD1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5953 { | 5953 { |
5954 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObjectPython", info.Holder(), info.GetIsolate()); | 5954 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObjectPython", info.Holder(), info.GetIsolate()); |
5955 if (UNLIKELY(info.Length() < 1)) { | 5955 if (UNLIKELY(info.Length() < 1)) { |
5956 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 5956 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
5957 exceptionState.throwIfNeeded(); | 5957 exceptionState.throwIfNeeded(); |
5958 return; | 5958 return; |
5959 } | 5959 } |
5960 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5960 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5961 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 5961 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
5962 imp->overloadedMethodD(longArg); | 5962 impl->overloadedMethodD(longArg); |
5963 } | 5963 } |
5964 | 5964 |
5965 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 5965 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
5966 { | 5966 { |
5967 if (UNLIKELY(info.Length() < 1)) { | 5967 if (UNLIKELY(info.Length() < 1)) { |
5968 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 5968 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodD", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
5969 return; | 5969 return; |
5970 } | 5970 } |
5971 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 5971 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
5972 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 5972 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
5973 imp->overloadedMethodD(testInterfaceEmptyArg); | 5973 impl->overloadedMethodD(testInterfaceEmptyArg); |
5974 } | 5974 } |
5975 | 5975 |
5976 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 5976 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
5977 { | 5977 { |
5978 if (((info.Length() == 1))) { | 5978 if (((info.Length() == 1))) { |
5979 overloadedMethodD1Method(info); | 5979 overloadedMethodD1Method(info); |
5980 return; | 5980 return; |
5981 } | 5981 } |
5982 if (((info.Length() == 1) && (V8TestInterfaceEmpty::hasInstance(info[0], inf
o.GetIsolate())))) { | 5982 if (((info.Length() == 1) && (V8TestInterfaceEmpty::hasInstance(info[0], inf
o.GetIsolate())))) { |
5983 overloadedMethodD2Method(info); | 5983 overloadedMethodD2Method(info); |
(...skipping 17 matching lines...) Expand all Loading... |
6001 } | 6001 } |
6002 | 6002 |
6003 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6003 static void overloadedMethodE1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6004 { | 6004 { |
6005 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObjectPython", info.Holder(), info.GetIsolate()); | 6005 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodE", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6006 if (UNLIKELY(info.Length() < 1)) { | 6006 if (UNLIKELY(info.Length() < 1)) { |
6007 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6007 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6008 exceptionState.throwIfNeeded(); | 6008 exceptionState.throwIfNeeded(); |
6009 return; | 6009 return; |
6010 } | 6010 } |
6011 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6011 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6012 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6012 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6013 imp->overloadedMethodE(longArg); | 6013 impl->overloadedMethodE(longArg); |
6014 } | 6014 } |
6015 | 6015 |
6016 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6016 static void overloadedMethodE2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6017 { | 6017 { |
6018 if (UNLIKELY(info.Length() < 1)) { | 6018 if (UNLIKELY(info.Length() < 1)) { |
6019 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 6019 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodE", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
6020 return; | 6020 return; |
6021 } | 6021 } |
6022 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6022 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6023 V8TRYCATCH_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, in
fo.GetIsolate())); | 6023 V8TRYCATCH_VOID(Vector<int>, longArrayArg, toNativeArray<int>(info[0], 1, in
fo.GetIsolate())); |
6024 imp->overloadedMethodE(longArrayArg); | 6024 impl->overloadedMethodE(longArrayArg); |
6025 } | 6025 } |
6026 | 6026 |
6027 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6027 static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6028 { | 6028 { |
6029 if (((info.Length() == 1))) { | 6029 if (((info.Length() == 1))) { |
6030 overloadedMethodE1Method(info); | 6030 overloadedMethodE1Method(info); |
6031 return; | 6031 return; |
6032 } | 6032 } |
6033 if (((info.Length() == 1) && (info[0]->IsArray()))) { | 6033 if (((info.Length() == 1) && (info[0]->IsArray()))) { |
6034 overloadedMethodE2Method(info); | 6034 overloadedMethodE2Method(info); |
(...skipping 17 matching lines...) Expand all Loading... |
6052 } | 6052 } |
6053 | 6053 |
6054 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6054 static void overloadedMethodF1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6055 { | 6055 { |
6056 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObjectPython", info.Holder(), info.GetIsolate()); | 6056 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodF", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6057 if (UNLIKELY(info.Length() < 1)) { | 6057 if (UNLIKELY(info.Length() < 1)) { |
6058 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6058 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6059 exceptionState.throwIfNeeded(); | 6059 exceptionState.throwIfNeeded(); |
6060 return; | 6060 return; |
6061 } | 6061 } |
6062 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6062 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6063 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6063 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6064 imp->overloadedMethodF(longArg); | 6064 impl->overloadedMethodF(longArg); |
6065 } | 6065 } |
6066 | 6066 |
6067 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6067 static void overloadedMethodF2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6068 { | 6068 { |
6069 if (UNLIKELY(info.Length() < 1)) { | 6069 if (UNLIKELY(info.Length() < 1)) { |
6070 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 6070 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodF", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
6071 return; | 6071 return; |
6072 } | 6072 } |
6073 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6073 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6074 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyNullableArg, V8TestIn
terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6074 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyNullableArg, V8TestIn
terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
6075 imp->overloadedMethodF(testInterfaceEmptyNullableArg); | 6075 impl->overloadedMethodF(testInterfaceEmptyNullableArg); |
6076 } | 6076 } |
6077 | 6077 |
6078 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6078 static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6079 { | 6079 { |
6080 if (((info.Length() == 1))) { | 6080 if (((info.Length() == 1))) { |
6081 overloadedMethodF1Method(info); | 6081 overloadedMethodF1Method(info); |
6082 return; | 6082 return; |
6083 } | 6083 } |
6084 if (((info.Length() == 1) && (info[0]->IsNull() || V8TestInterfaceEmpty::has
Instance(info[0], info.GetIsolate())))) { | 6084 if (((info.Length() == 1) && (info[0]->IsNull() || V8TestInterfaceEmpty::has
Instance(info[0], info.GetIsolate())))) { |
6085 overloadedMethodF2Method(info); | 6085 overloadedMethodF2Method(info); |
(...skipping 11 matching lines...) Expand all Loading... |
6097 | 6097 |
6098 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6098 static void overloadedMethodFMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6099 { | 6099 { |
6100 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6100 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6101 TestObjectPythonV8Internal::overloadedMethodFMethod(info); | 6101 TestObjectPythonV8Internal::overloadedMethodFMethod(info); |
6102 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6102 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6103 } | 6103 } |
6104 | 6104 |
6105 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6105 static void overloadedMethodG1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6106 { | 6106 { |
6107 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6107 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6108 imp->overloadedMethodG(); | 6108 impl->overloadedMethodG(); |
6109 } | 6109 } |
6110 | 6110 |
6111 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6111 static void overloadedMethodG2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6112 { | 6112 { |
6113 if (UNLIKELY(info.Length() < 1)) { | 6113 if (UNLIKELY(info.Length() < 1)) { |
6114 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 6114 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
6115 return; | 6115 return; |
6116 } | 6116 } |
6117 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6117 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6118 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strictTypeCheckingS
tringArg, info[0]); | 6118 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strictTypeCheckingS
tringArg, info[0]); |
6119 imp->overloadedMethodG(strictTypeCheckingStringArg); | 6119 impl->overloadedMethodG(strictTypeCheckingStringArg); |
6120 } | 6120 } |
6121 | 6121 |
6122 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6122 static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6123 { | 6123 { |
6124 if (((info.Length() == 0))) { | 6124 if (((info.Length() == 0))) { |
6125 overloadedMethodG1Method(info); | 6125 overloadedMethodG1Method(info); |
6126 return; | 6126 return; |
6127 } | 6127 } |
6128 if (((info.Length() == 1) && (isUndefinedOrNull(info[0]) || info[0]->IsStrin
g() || info[0]->IsObject()))) { | 6128 if (((info.Length() == 1) && (isUndefinedOrNull(info[0]) || info[0]->IsStrin
g() || info[0]->IsObject()))) { |
6129 overloadedMethodG2Method(info); | 6129 overloadedMethodG2Method(info); |
6130 return; | 6130 return; |
6131 } | 6131 } |
6132 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", "Test
ObjectPython", "No function was found that matched the signature provided."), in
fo.GetIsolate()); | 6132 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodG", "Test
ObjectPython", "No function was found that matched the signature provided."), in
fo.GetIsolate()); |
6133 } | 6133 } |
6134 | 6134 |
6135 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6135 static void overloadedMethodGMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6136 { | 6136 { |
6137 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6137 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6138 TestObjectPythonV8Internal::overloadedMethodGMethod(info); | 6138 TestObjectPythonV8Internal::overloadedMethodGMethod(info); |
6139 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6139 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6140 } | 6140 } |
6141 | 6141 |
6142 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6142 static void overloadedMethodH1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6143 { | 6143 { |
6144 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6144 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6145 imp->overloadedMethodH(); | 6145 impl->overloadedMethodH(); |
6146 } | 6146 } |
6147 | 6147 |
6148 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6148 static void overloadedMethodH2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6149 { | 6149 { |
6150 if (UNLIKELY(info.Length() < 1)) { | 6150 if (UNLIKELY(info.Length() < 1)) { |
6151 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); | 6151 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", "
TestObjectPython", ExceptionMessages::notEnoughArguments(1, info.Length())), inf
o.GetIsolate()); |
6152 return; | 6152 return; |
6153 } | 6153 } |
6154 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6154 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6155 if (info.Length() <= 0 || !info[0]->IsFunction()) { | 6155 if (info.Length() <= 0 || !info[0]->IsFunction()) { |
6156 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", "
TestObjectPython", "The callback provided as parameter 1 is not a function."), i
nfo.GetIsolate()); | 6156 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", "
TestObjectPython", "The callback provided as parameter 1 is not a function."), i
nfo.GetIsolate()); |
6157 return; | 6157 return; |
6158 } | 6158 } |
6159 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); | 6159 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); |
6160 imp->overloadedMethodH(testCallbackInterfaceArg.release()); | 6160 impl->overloadedMethodH(testCallbackInterfaceArg.release()); |
6161 } | 6161 } |
6162 | 6162 |
6163 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 6163 static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
6164 { | 6164 { |
6165 if (((info.Length() == 0))) { | 6165 if (((info.Length() == 0))) { |
6166 overloadedMethodH1Method(info); | 6166 overloadedMethodH1Method(info); |
6167 return; | 6167 return; |
6168 } | 6168 } |
6169 if (((info.Length() == 1) && (info[0]->IsNull() || info[0]->IsFunction())))
{ | 6169 if (((info.Length() == 1) && (info[0]->IsNull() || info[0]->IsFunction())))
{ |
6170 overloadedMethodH2Method(info); | 6170 overloadedMethodH2Method(info); |
6171 return; | 6171 return; |
6172 } | 6172 } |
6173 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", "Test
ObjectPython", "No function was found that matched the signature provided."), in
fo.GetIsolate()); | 6173 throwTypeError(ExceptionMessages::failedToExecute("overloadedMethodH", "Test
ObjectPython", "No function was found that matched the signature provided."), in
fo.GetIsolate()); |
6174 } | 6174 } |
6175 | 6175 |
6176 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6176 static void overloadedMethodHMethodCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6177 { | 6177 { |
6178 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6178 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6179 TestObjectPythonV8Internal::overloadedMethodHMethod(info); | 6179 TestObjectPythonV8Internal::overloadedMethodHMethod(info); |
6180 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6180 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6181 } | 6181 } |
6182 | 6182 |
6183 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 6183 static void overloadedPerWorldBindingsMethod1Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
6184 { | 6184 { |
6185 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6185 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6186 imp->overloadedPerWorldBindingsMethod(); | 6186 impl->overloadedPerWorldBindingsMethod(); |
6187 } | 6187 } |
6188 | 6188 |
6189 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) | 6189 static void overloadedPerWorldBindingsMethod1MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) |
6190 { | 6190 { |
6191 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6191 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6192 imp->overloadedPerWorldBindingsMethod(); | 6192 impl->overloadedPerWorldBindingsMethod(); |
6193 } | 6193 } |
6194 | 6194 |
6195 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 6195 static void overloadedPerWorldBindingsMethod2Method(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
6196 { | 6196 { |
6197 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | 6197 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6198 if (UNLIKELY(info.Length() < 1)) { | 6198 if (UNLIKELY(info.Length() < 1)) { |
6199 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6199 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6200 exceptionState.throwIfNeeded(); | 6200 exceptionState.throwIfNeeded(); |
6201 return; | 6201 return; |
6202 } | 6202 } |
6203 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6203 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6204 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6204 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6205 imp->overloadedPerWorldBindingsMethod(longArg); | 6205 impl->overloadedPerWorldBindingsMethod(longArg); |
6206 } | 6206 } |
6207 | 6207 |
6208 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 6208 static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
6209 { | 6209 { |
6210 if (((info.Length() == 0))) { | 6210 if (((info.Length() == 0))) { |
6211 overloadedPerWorldBindingsMethod1Method(info); | 6211 overloadedPerWorldBindingsMethod1Method(info); |
6212 return; | 6212 return; |
6213 } | 6213 } |
6214 if (((info.Length() == 1))) { | 6214 if (((info.Length() == 1))) { |
6215 overloadedPerWorldBindingsMethod2Method(info); | 6215 overloadedPerWorldBindingsMethod2Method(info); |
(...skipping 10 matching lines...) Expand all Loading... |
6226 } | 6226 } |
6227 | 6227 |
6228 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) | 6228 static void overloadedPerWorldBindingsMethod2MethodForMainWorld(const v8::Functi
onCallbackInfo<v8::Value>& info) |
6229 { | 6229 { |
6230 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | 6230 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedP
erWorldBindingsMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6231 if (UNLIKELY(info.Length() < 1)) { | 6231 if (UNLIKELY(info.Length() < 1)) { |
6232 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6232 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6233 exceptionState.throwIfNeeded(); | 6233 exceptionState.throwIfNeeded(); |
6234 return; | 6234 return; |
6235 } | 6235 } |
6236 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6236 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6237 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 6237 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
6238 imp->overloadedPerWorldBindingsMethod(longArg); | 6238 impl->overloadedPerWorldBindingsMethod(longArg); |
6239 } | 6239 } |
6240 | 6240 |
6241 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6241 static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6242 { | 6242 { |
6243 if (((info.Length() == 0))) { | 6243 if (((info.Length() == 0))) { |
6244 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); | 6244 overloadedPerWorldBindingsMethod1MethodForMainWorld(info); |
6245 return; | 6245 return; |
6246 } | 6246 } |
6247 if (((info.Length() == 1))) { | 6247 if (((info.Length() == 1))) { |
6248 overloadedPerWorldBindingsMethod2MethodForMainWorld(info); | 6248 overloadedPerWorldBindingsMethod2MethodForMainWorld(info); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6311 } | 6311 } |
6312 | 6312 |
6313 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 6313 static void voidMethodClampUnsignedShortArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
6314 { | 6314 { |
6315 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedShortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 6315 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedShortArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6316 if (UNLIKELY(info.Length() < 1)) { | 6316 if (UNLIKELY(info.Length() < 1)) { |
6317 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6317 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6318 exceptionState.throwIfNeeded(); | 6318 exceptionState.throwIfNeeded(); |
6319 return; | 6319 return; |
6320 } | 6320 } |
6321 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6321 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6322 unsigned clampUnsignedShortArg = 0; | 6322 unsigned clampUnsignedShortArg = 0; |
6323 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal
ue()); | 6323 V8TRYCATCH_VOID(double, clampUnsignedShortArgNativeValue, info[0]->NumberVal
ue()); |
6324 if (!std::isnan(clampUnsignedShortArgNativeValue)) | 6324 if (!std::isnan(clampUnsignedShortArgNativeValue)) |
6325 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat
iveValue); | 6325 clampUnsignedShortArg = clampTo<unsigned short>(clampUnsignedShortArgNat
iveValue); |
6326 imp->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); | 6326 impl->voidMethodClampUnsignedShortArg(clampUnsignedShortArg); |
6327 } | 6327 } |
6328 | 6328 |
6329 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 6329 static void voidMethodClampUnsignedShortArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
6330 { | 6330 { |
6331 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6331 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6332 TestObjectPythonV8Internal::voidMethodClampUnsignedShortArgMethod(info); | 6332 TestObjectPythonV8Internal::voidMethodClampUnsignedShortArgMethod(info); |
6333 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6333 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6334 } | 6334 } |
6335 | 6335 |
6336 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 6336 static void voidMethodClampUnsignedLongArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
6337 { | 6337 { |
6338 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 6338 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodC
lampUnsignedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6339 if (UNLIKELY(info.Length() < 1)) { | 6339 if (UNLIKELY(info.Length() < 1)) { |
6340 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6340 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6341 exceptionState.throwIfNeeded(); | 6341 exceptionState.throwIfNeeded(); |
6342 return; | 6342 return; |
6343 } | 6343 } |
6344 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6344 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6345 unsigned clampUnsignedLongArg = 0; | 6345 unsigned clampUnsignedLongArg = 0; |
6346 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValu
e()); | 6346 V8TRYCATCH_VOID(double, clampUnsignedLongArgNativeValue, info[0]->NumberValu
e()); |
6347 if (!std::isnan(clampUnsignedLongArgNativeValue)) | 6347 if (!std::isnan(clampUnsignedLongArgNativeValue)) |
6348 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative
Value); | 6348 clampUnsignedLongArg = clampTo<unsigned long>(clampUnsignedLongArgNative
Value); |
6349 imp->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); | 6349 impl->voidMethodClampUnsignedLongArg(clampUnsignedLongArg); |
6350 } | 6350 } |
6351 | 6351 |
6352 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 6352 static void voidMethodClampUnsignedLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
6353 { | 6353 { |
6354 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6354 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6355 TestObjectPythonV8Internal::voidMethodClampUnsignedLongArgMethod(info); | 6355 TestObjectPythonV8Internal::voidMethodClampUnsignedLongArgMethod(info); |
6356 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6356 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6357 } | 6357 } |
6358 | 6358 |
6359 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6359 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
6360 { | 6360 { |
6361 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6361 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6362 V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg,
V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6362 V8TRYCATCH_VOID(TestInterfaceEmpty*, defaultUndefinedTestInterfaceEmptyArg,
V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
6363 imp->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestInt
erfaceEmptyArg); | 6363 impl->voidMethodDefaultUndefinedTestInterfaceEmptyArg(defaultUndefinedTestIn
terfaceEmptyArg); |
6364 } | 6364 } |
6365 | 6365 |
6366 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 6366 static void voidMethodDefaultUndefinedTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
6367 { | 6367 { |
6368 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6368 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6369 TestObjectPythonV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgM
ethod(info); | 6369 TestObjectPythonV8Internal::voidMethodDefaultUndefinedTestInterfaceEmptyArgM
ethod(info); |
6370 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6370 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6371 } | 6371 } |
6372 | 6372 |
6373 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 6373 static void voidMethodDefaultUndefinedLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
6374 { | 6374 { |
6375 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 6375 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultUndefinedLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6376 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6376 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6377 V8TRYCATCH_EXCEPTION_VOID(int, defaultUndefinedLongArg, toInt32(info[0], exc
eptionState), exceptionState); | 6377 V8TRYCATCH_EXCEPTION_VOID(int, defaultUndefinedLongArg, toInt32(info[0], exc
eptionState), exceptionState); |
6378 imp->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); | 6378 impl->voidMethodDefaultUndefinedLongArg(defaultUndefinedLongArg); |
6379 } | 6379 } |
6380 | 6380 |
6381 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 6381 static void voidMethodDefaultUndefinedLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
6382 { | 6382 { |
6383 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6383 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6384 TestObjectPythonV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); | 6384 TestObjectPythonV8Internal::voidMethodDefaultUndefinedLongArgMethod(info); |
6385 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6385 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6386 } | 6386 } |
6387 | 6387 |
6388 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 6388 static void voidMethodDefaultUndefinedStringArgMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
6389 { | 6389 { |
6390 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6390 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6391 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedStr
ingArg, info[0]); | 6391 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedStr
ingArg, info[0]); |
6392 imp->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); | 6392 impl->voidMethodDefaultUndefinedStringArg(defaultUndefinedStringArg); |
6393 } | 6393 } |
6394 | 6394 |
6395 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 6395 static void voidMethodDefaultUndefinedStringArgMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
6396 { | 6396 { |
6397 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6397 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6398 TestObjectPythonV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); | 6398 TestObjectPythonV8Internal::voidMethodDefaultUndefinedStringArgMethod(info); |
6399 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6399 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6400 } | 6400 } |
6401 | 6401 |
6402 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 6402 static void voidMethodDefaultNullStringStringArgMethod(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
6403 { | 6403 { |
6404 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6404 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6405 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringSt
ringArg, argumentOrNull(info, 0)); | 6405 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringSt
ringArg, argumentOrNull(info, 0)); |
6406 imp->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); | 6406 impl->voidMethodDefaultNullStringStringArg(defaultNullStringStringArg); |
6407 } | 6407 } |
6408 | 6408 |
6409 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6409 static void voidMethodDefaultNullStringStringArgMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6410 { | 6410 { |
6411 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6411 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6412 TestObjectPythonV8Internal::voidMethodDefaultNullStringStringArgMethod(info)
; | 6412 TestObjectPythonV8Internal::voidMethodDefaultNullStringStringArgMethod(info)
; |
6413 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6413 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6414 } | 6414 } |
6415 | 6415 |
6416 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 6416 static void voidMethodEnforceRangeLongArgMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
6417 { | 6417 { |
6418 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); | 6418 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodE
nforceRangeLongArg", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6419 if (UNLIKELY(info.Length() < 1)) { | 6419 if (UNLIKELY(info.Length() < 1)) { |
6420 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 6420 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
6421 exceptionState.throwIfNeeded(); | 6421 exceptionState.throwIfNeeded(); |
6422 return; | 6422 return; |
6423 } | 6423 } |
6424 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6424 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6425 V8TRYCATCH_EXCEPTION_VOID(int, enforceRangeLongArg, toInt32(info[0], Enforce
Range, exceptionState), exceptionState); | 6425 V8TRYCATCH_EXCEPTION_VOID(int, enforceRangeLongArg, toInt32(info[0], Enforce
Range, exceptionState), exceptionState); |
6426 imp->voidMethodEnforceRangeLongArg(enforceRangeLongArg); | 6426 impl->voidMethodEnforceRangeLongArg(enforceRangeLongArg); |
6427 } | 6427 } |
6428 | 6428 |
6429 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 6429 static void voidMethodEnforceRangeLongArgMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
6430 { | 6430 { |
6431 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6431 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6432 TestObjectPythonV8Internal::voidMethodEnforceRangeLongArgMethod(info); | 6432 TestObjectPythonV8Internal::voidMethodEnforceRangeLongArgMethod(info); |
6433 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6433 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6434 } | 6434 } |
6435 | 6435 |
6436 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 6436 static void voidMethodTreatNullAsNullStringStringArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
6437 { | 6437 { |
6438 if (UNLIKELY(info.Length() < 1)) { | 6438 if (UNLIKELY(info.Length() < 1)) { |
6439 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs
NullStringStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(
1, info.Length())), info.GetIsolate()); | 6439 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs
NullStringStringArg", "TestObjectPython", ExceptionMessages::notEnoughArguments(
1, info.Length())), info.GetIsolate()); |
6440 return; | 6440 return; |
6441 } | 6441 } |
6442 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6442 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6443 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, treatN
ullAsNullStringStringArg, info[0]); | 6443 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, treatN
ullAsNullStringStringArg, info[0]); |
6444 imp->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringArg
); | 6444 impl->voidMethodTreatNullAsNullStringStringArg(treatNullAsNullStringStringAr
g); |
6445 } | 6445 } |
6446 | 6446 |
6447 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 6447 static void voidMethodTreatNullAsNullStringStringArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
6448 { | 6448 { |
6449 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6449 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6450 TestObjectPythonV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(i
nfo); | 6450 TestObjectPythonV8Internal::voidMethodTreatNullAsNullStringStringArgMethod(i
nfo); |
6451 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6451 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6452 } | 6452 } |
6453 | 6453 |
6454 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) | 6454 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thod(const v8::FunctionCallbackInfo<v8::Value>& info) |
6455 { | 6455 { |
6456 if (UNLIKELY(info.Length() < 1)) { | 6456 if (UNLIKELY(info.Length() < 1)) { |
6457 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs
NullStringTreatUndefinedAsNullStringStringArg", "TestObjectPython", ExceptionMes
sages::notEnoughArguments(1, info.Length())), info.GetIsolate()); | 6457 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTreatNullAs
NullStringTreatUndefinedAsNullStringStringArg", "TestObjectPython", ExceptionMes
sages::notEnoughArguments(1, info.Length())), info.GetIsolate()); |
6458 return; | 6458 return; |
6459 } | 6459 } |
6460 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6460 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6461 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe
ck>, treatNullAsNullStringStringArg, info[0]); | 6461 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithUndefinedOrNullChe
ck>, treatNullAsNullStringStringArg, info[0]); |
6462 imp->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(trea
tNullAsNullStringStringArg); | 6462 impl->voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArg(tre
atNullAsNullStringStringArg); |
6463 } | 6463 } |
6464 | 6464 |
6465 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 6465 static void voidMethodTreatNullAsNullStringTreatUndefinedAsNullStringStringArgMe
thodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
6466 { | 6466 { |
6467 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6467 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6468 TestObjectPythonV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsN
ullStringStringArgMethod(info); | 6468 TestObjectPythonV8Internal::voidMethodTreatNullAsNullStringTreatUndefinedAsN
ullStringStringArgMethod(info); |
6469 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6469 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6470 } | 6470 } |
6471 | 6471 |
6472 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 6472 static void activityLoggingAccessForAllWorldsMethodMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
6473 { | 6473 { |
6474 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6474 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6475 imp->activityLoggingAccessForAllWorldsMethod(); | 6475 impl->activityLoggingAccessForAllWorldsMethod(); |
6476 } | 6476 } |
6477 | 6477 |
6478 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6478 static void activityLoggingAccessForAllWorldsMethodMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
6479 { | 6479 { |
6480 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6480 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6481 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 6481 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
6482 if (contextData && contextData->activityLogger()) { | 6482 if (contextData && contextData->activityLogger()) { |
6483 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 6483 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
6484 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForAllWorldsMethod", info.Length(), loggerArgs.data(), "Method"); | 6484 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce
ssForAllWorldsMethod", info.Length(), loggerArgs.data(), "Method"); |
6485 } | 6485 } |
6486 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsMethodMethod(in
fo); | 6486 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsMethodMethod(in
fo); |
6487 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6487 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6488 } | 6488 } |
6489 | 6489 |
6490 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 6490 static void callWithScriptStateVoidMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
6491 { | 6491 { |
6492 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6492 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6493 ScriptState* currentState = ScriptState::current(); | 6493 ScriptState* currentState = ScriptState::current(); |
6494 if (!currentState) | 6494 if (!currentState) |
6495 return; | 6495 return; |
6496 ScriptState& state = *currentState; | 6496 ScriptState& state = *currentState; |
6497 imp->callWithScriptStateVoidMethod(&state); | 6497 impl->callWithScriptStateVoidMethod(&state); |
6498 if (state.hadException()) { | 6498 if (state.hadException()) { |
6499 v8::Local<v8::Value> exception = state.exception(); | 6499 v8::Local<v8::Value> exception = state.exception(); |
6500 state.clearException(); | 6500 state.clearException(); |
6501 throwError(exception, info.GetIsolate()); | 6501 throwError(exception, info.GetIsolate()); |
6502 return; | 6502 return; |
6503 } | 6503 } |
6504 } | 6504 } |
6505 | 6505 |
6506 static void callWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 6506 static void callWithScriptStateVoidMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
6507 { | 6507 { |
6508 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6508 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6509 TestObjectPythonV8Internal::callWithScriptStateVoidMethodMethod(info); | 6509 TestObjectPythonV8Internal::callWithScriptStateVoidMethodMethod(info); |
6510 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6510 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6511 } | 6511 } |
6512 | 6512 |
6513 static void callWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 6513 static void callWithScriptStateLongMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
6514 { | 6514 { |
6515 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6515 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6516 ScriptState* currentState = ScriptState::current(); | 6516 ScriptState* currentState = ScriptState::current(); |
6517 if (!currentState) | 6517 if (!currentState) |
6518 return; | 6518 return; |
6519 ScriptState& state = *currentState; | 6519 ScriptState& state = *currentState; |
6520 int result = imp->callWithScriptStateLongMethod(&state); | 6520 int result = impl->callWithScriptStateLongMethod(&state); |
6521 if (state.hadException()) { | 6521 if (state.hadException()) { |
6522 v8::Local<v8::Value> exception = state.exception(); | 6522 v8::Local<v8::Value> exception = state.exception(); |
6523 state.clearException(); | 6523 state.clearException(); |
6524 throwError(exception, info.GetIsolate()); | 6524 throwError(exception, info.GetIsolate()); |
6525 return; | 6525 return; |
6526 } | 6526 } |
6527 v8SetReturnValueInt(info, result); | 6527 v8SetReturnValueInt(info, result); |
6528 } | 6528 } |
6529 | 6529 |
6530 static void callWithScriptStateLongMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 6530 static void callWithScriptStateLongMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
6531 { | 6531 { |
6532 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6532 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6533 TestObjectPythonV8Internal::callWithScriptStateLongMethodMethod(info); | 6533 TestObjectPythonV8Internal::callWithScriptStateLongMethodMethod(info); |
6534 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6534 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6535 } | 6535 } |
6536 | 6536 |
6537 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 6537 static void callWithExecutionContextVoidMethodMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
6538 { | 6538 { |
6539 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6539 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6540 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 6540 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
6541 imp->callWithExecutionContextVoidMethod(scriptContext); | 6541 impl->callWithExecutionContextVoidMethod(scriptContext); |
6542 } | 6542 } |
6543 | 6543 |
6544 static void callWithExecutionContextVoidMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 6544 static void callWithExecutionContextVoidMethodMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
6545 { | 6545 { |
6546 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6546 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6547 TestObjectPythonV8Internal::callWithExecutionContextVoidMethodMethod(info); | 6547 TestObjectPythonV8Internal::callWithExecutionContextVoidMethodMethod(info); |
6548 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6548 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6549 } | 6549 } |
6550 | 6550 |
6551 static void callWithScriptStateExecutionContextVoidMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) | 6551 static void callWithScriptStateExecutionContextVoidMethodMethod(const v8::Functi
onCallbackInfo<v8::Value>& info) |
6552 { | 6552 { |
6553 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6553 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6554 ScriptState* currentState = ScriptState::current(); | 6554 ScriptState* currentState = ScriptState::current(); |
6555 if (!currentState) | 6555 if (!currentState) |
6556 return; | 6556 return; |
6557 ScriptState& state = *currentState; | 6557 ScriptState& state = *currentState; |
6558 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 6558 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
6559 imp->callWithScriptStateExecutionContextVoidMethod(&state, scriptContext); | 6559 impl->callWithScriptStateExecutionContextVoidMethod(&state, scriptContext); |
6560 if (state.hadException()) { | 6560 if (state.hadException()) { |
6561 v8::Local<v8::Value> exception = state.exception(); | 6561 v8::Local<v8::Value> exception = state.exception(); |
6562 state.clearException(); | 6562 state.clearException(); |
6563 throwError(exception, info.GetIsolate()); | 6563 throwError(exception, info.GetIsolate()); |
6564 return; | 6564 return; |
6565 } | 6565 } |
6566 } | 6566 } |
6567 | 6567 |
6568 static void callWithScriptStateExecutionContextVoidMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) | 6568 static void callWithScriptStateExecutionContextVoidMethodMethodCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) |
6569 { | 6569 { |
6570 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6570 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6571 TestObjectPythonV8Internal::callWithScriptStateExecutionContextVoidMethodMet
hod(info); | 6571 TestObjectPythonV8Internal::callWithScriptStateExecutionContextVoidMethodMet
hod(info); |
6572 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6572 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6573 } | 6573 } |
6574 | 6574 |
6575 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6575 static void callWithScriptStateScriptArgumentsVoidMethodMethod(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6576 { | 6576 { |
6577 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6577 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6578 ScriptState* currentState = ScriptState::current(); | 6578 ScriptState* currentState = ScriptState::current(); |
6579 if (!currentState) | 6579 if (!currentState) |
6580 return; | 6580 return; |
6581 ScriptState& state = *currentState; | 6581 ScriptState& state = *currentState; |
6582 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 0)); | 6582 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 0)); |
6583 imp->callWithScriptStateScriptArgumentsVoidMethod(&state, scriptArguments.re
lease()); | 6583 impl->callWithScriptStateScriptArgumentsVoidMethod(&state, scriptArguments.r
elease()); |
6584 if (state.hadException()) { | 6584 if (state.hadException()) { |
6585 v8::Local<v8::Value> exception = state.exception(); | 6585 v8::Local<v8::Value> exception = state.exception(); |
6586 state.clearException(); | 6586 state.clearException(); |
6587 throwError(exception, info.GetIsolate()); | 6587 throwError(exception, info.GetIsolate()); |
6588 return; | 6588 return; |
6589 } | 6589 } |
6590 } | 6590 } |
6591 | 6591 |
6592 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 6592 static void callWithScriptStateScriptArgumentsVoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
6593 { | 6593 { |
6594 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6594 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6595 TestObjectPythonV8Internal::callWithScriptStateScriptArgumentsVoidMethodMeth
od(info); | 6595 TestObjectPythonV8Internal::callWithScriptStateScriptArgumentsVoidMethodMeth
od(info); |
6596 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6596 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6597 } | 6597 } |
6598 | 6598 |
6599 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
(const v8::FunctionCallbackInfo<v8::Value>& info) | 6599 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
(const v8::FunctionCallbackInfo<v8::Value>& info) |
6600 { | 6600 { |
6601 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6601 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6602 if (UNLIKELY(info.Length() <= 0)) { | 6602 if (UNLIKELY(info.Length() <= 0)) { |
6603 ScriptState* currentState = ScriptState::current(); | 6603 ScriptState* currentState = ScriptState::current(); |
6604 if (!currentState) | 6604 if (!currentState) |
6605 return; | 6605 return; |
6606 ScriptState& state = *currentState; | 6606 ScriptState& state = *currentState; |
6607 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); | 6607 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); |
6608 imp->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(&sta
te, scriptArguments.release()); | 6608 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(&st
ate, scriptArguments.release()); |
6609 if (state.hadException()) { | 6609 if (state.hadException()) { |
6610 v8::Local<v8::Value> exception = state.exception(); | 6610 v8::Local<v8::Value> exception = state.exception(); |
6611 state.clearException(); | 6611 state.clearException(); |
6612 throwError(exception, info.GetIsolate()); | 6612 throwError(exception, info.GetIsolate()); |
6613 return; | 6613 return; |
6614 } | 6614 } |
6615 return; | 6615 return; |
6616 } | 6616 } |
6617 V8TRYCATCH_VOID(bool, optionalBooleanArg, info[0]->BooleanValue()); | 6617 V8TRYCATCH_VOID(bool, optionalBooleanArg, info[0]->BooleanValue()); |
6618 ScriptState* currentState = ScriptState::current(); | 6618 ScriptState* currentState = ScriptState::current(); |
6619 if (!currentState) | 6619 if (!currentState) |
6620 return; | 6620 return; |
6621 ScriptState& state = *currentState; | 6621 ScriptState& state = *currentState; |
6622 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); | 6622 RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, 1)); |
6623 imp->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(&state,
scriptArguments.release(), optionalBooleanArg); | 6623 impl->callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArg(&state,
scriptArguments.release(), optionalBooleanArg); |
6624 if (state.hadException()) { | 6624 if (state.hadException()) { |
6625 v8::Local<v8::Value> exception = state.exception(); | 6625 v8::Local<v8::Value> exception = state.exception(); |
6626 state.clearException(); | 6626 state.clearException(); |
6627 throwError(exception, info.GetIsolate()); | 6627 throwError(exception, info.GetIsolate()); |
6628 return; | 6628 return; |
6629 } | 6629 } |
6630 } | 6630 } |
6631 | 6631 |
6632 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
Callback(const v8::FunctionCallbackInfo<v8::Value>& info) | 6632 static void callWithScriptStateScriptArgumentsVoidMethodOptionalBooleanArgMethod
Callback(const v8::FunctionCallbackInfo<v8::Value>& info) |
6633 { | 6633 { |
6634 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6634 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6635 TestObjectPythonV8Internal::callWithScriptStateScriptArgumentsVoidMethodOpti
onalBooleanArgMethod(info); | 6635 TestObjectPythonV8Internal::callWithScriptStateScriptArgumentsVoidMethodOpti
onalBooleanArgMethod(info); |
6636 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6636 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6637 } | 6637 } |
6638 | 6638 |
6639 static void callWithActiveWindowMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 6639 static void callWithActiveWindowMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
6640 { | 6640 { |
6641 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6641 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6642 imp->callWithActiveWindow(callingDOMWindow(info.GetIsolate())); | 6642 impl->callWithActiveWindow(callingDOMWindow(info.GetIsolate())); |
6643 } | 6643 } |
6644 | 6644 |
6645 static void callWithActiveWindowMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 6645 static void callWithActiveWindowMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
6646 { | 6646 { |
6647 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6647 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6648 TestObjectPythonV8Internal::callWithActiveWindowMethod(info); | 6648 TestObjectPythonV8Internal::callWithActiveWindowMethod(info); |
6649 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6649 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6650 } | 6650 } |
6651 | 6651 |
6652 static void callWithActiveWindowScriptWindowMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 6652 static void callWithActiveWindowScriptWindowMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
6653 { | 6653 { |
6654 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6654 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6655 imp->callWithActiveWindowScriptWindow(callingDOMWindow(info.GetIsolate()), e
nteredDOMWindow(info.GetIsolate())); | 6655 impl->callWithActiveWindowScriptWindow(callingDOMWindow(info.GetIsolate()),
enteredDOMWindow(info.GetIsolate())); |
6656 } | 6656 } |
6657 | 6657 |
6658 static void callWithActiveWindowScriptWindowMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 6658 static void callWithActiveWindowScriptWindowMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
6659 { | 6659 { |
6660 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6660 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6661 TestObjectPythonV8Internal::callWithActiveWindowScriptWindowMethod(info); | 6661 TestObjectPythonV8Internal::callWithActiveWindowScriptWindowMethod(info); |
6662 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6662 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6663 } | 6663 } |
6664 | 6664 |
6665 static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 6665 static void checkSecurityForNodeVoidMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
6666 { | 6666 { |
6667 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6667 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6668 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), imp->checkS
ecurityForNodeVoidMethod(exceptionState), exceptionState)) { | 6668 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check
SecurityForNodeVoidMethod(exceptionState), exceptionState)) { |
6669 v8SetReturnValueNull(info); | 6669 v8SetReturnValueNull(info); |
6670 exceptionState.throwIfNeeded(); | 6670 exceptionState.throwIfNeeded(); |
6671 return; | 6671 return; |
6672 } | 6672 } |
6673 imp->checkSecurityForNodeVoidMethod(); | 6673 impl->checkSecurityForNodeVoidMethod(); |
6674 } | 6674 } |
6675 | 6675 |
6676 static void checkSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 6676 static void checkSecurityForNodeVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
6677 { | 6677 { |
6678 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6678 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6679 TestObjectPythonV8Internal::checkSecurityForNodeVoidMethodMethod(info); | 6679 TestObjectPythonV8Internal::checkSecurityForNodeVoidMethodMethod(info); |
6680 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6680 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6681 } | 6681 } |
6682 | 6682 |
6683 #if ENABLE(CONDITION) | 6683 #if ENABLE(CONDITION) |
6684 static void conditionalConditionVoidMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) | 6684 static void conditionalConditionVoidMethodMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
6685 { | 6685 { |
6686 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6686 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6687 imp->conditionalConditionVoidMethod(); | 6687 impl->conditionalConditionVoidMethod(); |
6688 } | 6688 } |
6689 #endif // ENABLE(CONDITION) | 6689 #endif // ENABLE(CONDITION) |
6690 | 6690 |
6691 #if ENABLE(CONDITION) | 6691 #if ENABLE(CONDITION) |
6692 static void conditionalConditionVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 6692 static void conditionalConditionVoidMethodMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
6693 { | 6693 { |
6694 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6694 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6695 TestObjectPythonV8Internal::conditionalConditionVoidMethodMethod(info); | 6695 TestObjectPythonV8Internal::conditionalConditionVoidMethodMethod(info); |
6696 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6696 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6697 } | 6697 } |
6698 #endif // ENABLE(CONDITION) | 6698 #endif // ENABLE(CONDITION) |
6699 | 6699 |
6700 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 6700 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
6701 static void conditionalCondition1AndCondition2VoidMethodMethod(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6701 static void conditionalCondition1AndCondition2VoidMethodMethod(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6702 { | 6702 { |
6703 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6703 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6704 imp->conditionalCondition1AndCondition2VoidMethod(); | 6704 impl->conditionalCondition1AndCondition2VoidMethod(); |
6705 } | 6705 } |
6706 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 6706 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
6707 | 6707 |
6708 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) | 6708 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) |
6709 static void conditionalCondition1AndCondition2VoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 6709 static void conditionalCondition1AndCondition2VoidMethodMethodCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
6710 { | 6710 { |
6711 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6711 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6712 TestObjectPythonV8Internal::conditionalCondition1AndCondition2VoidMethodMeth
od(info); | 6712 TestObjectPythonV8Internal::conditionalCondition1AndCondition2VoidMethodMeth
od(info); |
6713 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6713 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6714 } | 6714 } |
(...skipping 26 matching lines...) Expand all Loading... |
6741 static void conditionalConditionCustomVoidMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) | 6741 static void conditionalConditionCustomVoidMethodMethodCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
6742 { | 6742 { |
6743 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6743 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6744 V8TestObjectPython::conditionalConditionCustomVoidMethodMethodCustom(info); | 6744 V8TestObjectPython::conditionalConditionCustomVoidMethodMethodCustom(info); |
6745 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6745 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6746 } | 6746 } |
6747 #endif // ENABLE(CONDITION) | 6747 #endif // ENABLE(CONDITION) |
6748 | 6748 |
6749 static void customElementCallbacksVoidMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) | 6749 static void customElementCallbacksVoidMethodMethod(const v8::FunctionCallbackInf
o<v8::Value>& info) |
6750 { | 6750 { |
6751 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6751 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6752 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; | 6752 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; |
6753 imp->customElementCallbacksVoidMethod(); | 6753 impl->customElementCallbacksVoidMethod(); |
6754 } | 6754 } |
6755 | 6755 |
6756 static void customElementCallbacksVoidMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 6756 static void customElementCallbacksVoidMethodMethodCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
6757 { | 6757 { |
6758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6759 TestObjectPythonV8Internal::customElementCallbacksVoidMethodMethod(info); | 6759 TestObjectPythonV8Internal::customElementCallbacksVoidMethodMethod(info); |
6760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6761 } | 6761 } |
6762 | 6762 |
6763 static void deprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) | 6763 static void deprecatedVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>
& info) |
6764 { | 6764 { |
6765 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6765 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6766 imp->deprecatedVoidMethod(); | 6766 impl->deprecatedVoidMethod(); |
6767 } | 6767 } |
6768 | 6768 |
6769 static void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) | 6769 static void deprecatedVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
6770 { | 6770 { |
6771 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6771 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6772 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::voidMethod); | 6772 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use
Counter::voidMethod); |
6773 TestObjectPythonV8Internal::deprecatedVoidMethodMethod(info); | 6773 TestObjectPythonV8Internal::deprecatedVoidMethodMethod(info); |
6774 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6774 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6775 } | 6775 } |
6776 | 6776 |
6777 static void doNotCheckSignatureVoidMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) | 6777 static void doNotCheckSignatureVoidMethodMethod(const v8::FunctionCallbackInfo<v
8::Value>& info) |
6778 { | 6778 { |
6779 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6779 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6780 imp->doNotCheckSignatureVoidMethod(); | 6780 impl->doNotCheckSignatureVoidMethod(); |
6781 } | 6781 } |
6782 | 6782 |
6783 static void doNotCheckSignatureVoidMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 6783 static void doNotCheckSignatureVoidMethodMethodCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
6784 { | 6784 { |
6785 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6785 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6786 TestObjectPythonV8Internal::doNotCheckSignatureVoidMethodMethod(info); | 6786 TestObjectPythonV8Internal::doNotCheckSignatureVoidMethodMethod(info); |
6787 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6787 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6788 } | 6788 } |
6789 | 6789 |
6790 static void implementedAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 6790 static void implementedAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
6791 { | 6791 { |
6792 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6792 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6793 imp->implementedAsMethodName(); | 6793 impl->implementedAsMethodName(); |
6794 } | 6794 } |
6795 | 6795 |
6796 static void implementedAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 6796 static void implementedAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
6797 { | 6797 { |
6798 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6798 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6799 TestObjectPythonV8Internal::implementedAsVoidMethodMethod(info); | 6799 TestObjectPythonV8Internal::implementedAsVoidMethodMethod(info); |
6800 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6800 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6801 } | 6801 } |
6802 | 6802 |
6803 static void measureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 6803 static void measureAsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
6804 { | 6804 { |
6805 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6805 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6806 imp->measureAsVoidMethod(); | 6806 impl->measureAsVoidMethod(); |
6807 } | 6807 } |
6808 | 6808 |
6809 static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 6809 static void measureAsVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
6810 { | 6810 { |
6811 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6811 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6812 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); | 6812 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te
stFeature); |
6813 TestObjectPythonV8Internal::measureAsVoidMethodMethod(info); | 6813 TestObjectPythonV8Internal::measureAsVoidMethodMethod(info); |
6814 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6814 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6815 } | 6815 } |
6816 | 6816 |
6817 static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 6817 static void notEnumerableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
6818 { | 6818 { |
6819 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6819 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6820 imp->notEnumerableVoidMethod(); | 6820 impl->notEnumerableVoidMethod(); |
6821 } | 6821 } |
6822 | 6822 |
6823 static void notEnumerableVoidMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 6823 static void notEnumerableVoidMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
6824 { | 6824 { |
6825 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6825 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6826 TestObjectPythonV8Internal::notEnumerableVoidMethodMethod(info); | 6826 TestObjectPythonV8Internal::notEnumerableVoidMethodMethod(info); |
6827 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6827 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6828 } | 6828 } |
6829 | 6829 |
6830 static void perContextEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 6830 static void perContextEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
6831 { | 6831 { |
6832 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6832 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6833 imp->perContextEnabledVoidMethod(); | 6833 impl->perContextEnabledVoidMethod(); |
6834 } | 6834 } |
6835 | 6835 |
6836 static void perContextEnabledVoidMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 6836 static void perContextEnabledVoidMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
6837 { | 6837 { |
6838 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6838 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6839 TestObjectPythonV8Internal::perContextEnabledVoidMethodMethod(info); | 6839 TestObjectPythonV8Internal::perContextEnabledVoidMethodMethod(info); |
6840 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6840 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6841 } | 6841 } |
6842 | 6842 |
6843 static void perWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 6843 static void perWorldBindingsVoidMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
6844 { | 6844 { |
6845 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6845 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6846 imp->perWorldBindingsVoidMethod(); | 6846 impl->perWorldBindingsVoidMethod(); |
6847 } | 6847 } |
6848 | 6848 |
6849 static void perWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 6849 static void perWorldBindingsVoidMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
6850 { | 6850 { |
6851 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6851 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6852 TestObjectPythonV8Internal::perWorldBindingsVoidMethodMethod(info); | 6852 TestObjectPythonV8Internal::perWorldBindingsVoidMethodMethod(info); |
6853 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6853 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6854 } | 6854 } |
6855 | 6855 |
6856 static void perWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 6856 static void perWorldBindingsVoidMethodMethodForMainWorld(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
6857 { | 6857 { |
6858 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6858 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6859 imp->perWorldBindingsVoidMethod(); | 6859 impl->perWorldBindingsVoidMethod(); |
6860 } | 6860 } |
6861 | 6861 |
6862 static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 6862 static void perWorldBindingsVoidMethodMethodCallbackForMainWorld(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
6863 { | 6863 { |
6864 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6864 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6865 TestObjectPythonV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(inf
o); | 6865 TestObjectPythonV8Internal::perWorldBindingsVoidMethodMethodForMainWorld(inf
o); |
6866 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6866 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6867 } | 6867 } |
6868 | 6868 |
6869 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) | 6869 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethod(const v8::Func
tionCallbackInfo<v8::Value>& info) |
6870 { | 6870 { |
6871 if (UNLIKELY(info.Length() < 1)) { | 6871 if (UNLIKELY(info.Length() < 1)) { |
6872 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM
ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg
uments(1, info.Length())), info.GetIsolate()); | 6872 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM
ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg
uments(1, info.Length())), info.GetIsolate()); |
6873 return; | 6873 return; |
6874 } | 6874 } |
6875 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6875 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6876 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6876 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
6877 imp->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 6877 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg)
; |
6878 } | 6878 } |
6879 | 6879 |
6880 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) | 6880 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
6881 { | 6881 { |
6882 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6882 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6883 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM
ethod(info); | 6883 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM
ethod(info); |
6884 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6884 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6885 } | 6885 } |
6886 | 6886 |
6887 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co
nst v8::FunctionCallbackInfo<v8::Value>& info) | 6887 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodForMainWorld(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
6888 { | 6888 { |
6889 if (UNLIKELY(info.Length() < 1)) { | 6889 if (UNLIKELY(info.Length() < 1)) { |
6890 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM
ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg
uments(1, info.Length())), info.GetIsolate()); | 6890 throwTypeError(ExceptionMessages::failedToExecute("perWorldBindingsVoidM
ethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughArg
uments(1, info.Length())), info.GetIsolate()); |
6891 return; | 6891 return; |
6892 } | 6892 } |
6893 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6893 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6894 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 6894 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
6895 imp->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 6895 impl->perWorldBindingsVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg)
; |
6896 } | 6896 } |
6897 | 6897 |
6898 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain
World(const v8::FunctionCallbackInfo<v8::Value>& info) | 6898 static void perWorldBindingsVoidMethodTestInterfaceEmptyArgMethodCallbackForMain
World(const v8::FunctionCallbackInfo<v8::Value>& info) |
6899 { | 6899 { |
6900 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6900 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6901 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM
ethodForMainWorld(info); | 6901 TestObjectPythonV8Internal::perWorldBindingsVoidMethodTestInterfaceEmptyArgM
ethodForMainWorld(info); |
6902 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6902 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6903 } | 6903 } |
6904 | 6904 |
6905 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) | 6905 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
6906 { | 6906 { |
6907 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6907 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6908 imp->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 6908 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
6909 } | 6909 } |
6910 | 6910 |
6911 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 6911 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
6912 { | 6912 { |
6913 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6913 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6914 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 6914 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
6915 if (contextData && contextData->activityLogger()) { | 6915 if (contextData && contextData->activityLogger()) { |
6916 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 6916 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
6917 contextData->activityLogger()->log("TestObjectPython.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method")
; | 6917 contextData->activityLogger()->log("TestObjectPython.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method")
; |
6918 } | 6918 } |
6919 TestObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidM
ethodMethod(info); | 6919 TestObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidM
ethodMethod(info); |
6920 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6920 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6921 } | 6921 } |
6922 | 6922 |
6923 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) | 6923 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodForMainWo
rld(const v8::FunctionCallbackInfo<v8::Value>& info) |
6924 { | 6924 { |
6925 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6925 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6926 imp->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); | 6926 impl->activityLoggingForAllWorldsPerWorldBindingsVoidMethod(); |
6927 } | 6927 } |
6928 | 6928 |
6929 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 6929 static void activityLoggingForAllWorldsPerWorldBindingsVoidMethodMethodCallbackF
orMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
6930 { | 6930 { |
6931 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6931 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6932 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 6932 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
6933 if (contextData && contextData->activityLogger()) { | 6933 if (contextData && contextData->activityLogger()) { |
6934 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 6934 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
6935 contextData->activityLogger()->log("TestObjectPython.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method")
; | 6935 contextData->activityLogger()->log("TestObjectPython.activityLoggingForA
llWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Method")
; |
6936 } | 6936 } |
6937 TestObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidM
ethodMethodForMainWorld(info); | 6937 TestObjectPythonV8Internal::activityLoggingForAllWorldsPerWorldBindingsVoidM
ethodMethodForMainWorld(info); |
6938 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6938 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6939 } | 6939 } |
6940 | 6940 |
6941 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) | 6941 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethod(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
6942 { | 6942 { |
6943 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6943 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6944 imp->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 6944 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
6945 } | 6945 } |
6946 | 6946 |
6947 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) | 6947 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
6948 { | 6948 { |
6949 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6949 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6950 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); | 6950 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge
tCurrentContext()); |
6951 if (contextData && contextData->activityLogger()) { | 6951 if (contextData && contextData->activityLogger()) { |
6952 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); | 6952 Vector<v8::Handle<v8::Value> > loggerArgs = toNativeArguments<v8::Handle
<v8::Value> >(info, 0); |
6953 contextData->activityLogger()->log("TestObjectPython.activityLoggingForI
solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Met
hod"); | 6953 contextData->activityLogger()->log("TestObjectPython.activityLoggingForI
solatedWorldsPerWorldBindingsVoidMethod", info.Length(), loggerArgs.data(), "Met
hod"); |
6954 } | 6954 } |
6955 TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBindings
VoidMethodMethod(info); | 6955 TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBindings
VoidMethodMethod(info); |
6956 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6956 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6957 } | 6957 } |
6958 | 6958 |
6959 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 6959 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodForM
ainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
6960 { | 6960 { |
6961 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6961 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6962 imp->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); | 6962 impl->activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethod(); |
6963 } | 6963 } |
6964 | 6964 |
6965 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) | 6965 static void activityLoggingForIsolatedWorldsPerWorldBindingsVoidMethodMethodCall
backForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
6966 { | 6966 { |
6967 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6967 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6968 TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBindings
VoidMethodMethodForMainWorld(info); | 6968 TestObjectPythonV8Internal::activityLoggingForIsolatedWorldsPerWorldBindings
VoidMethodMethodForMainWorld(info); |
6969 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6969 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6970 } | 6970 } |
6971 | 6971 |
6972 static void raisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 6972 static void raisesExceptionVoidMethodMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
6973 { | 6973 { |
6974 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | 6974 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6975 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6975 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6976 imp->raisesExceptionVoidMethod(exceptionState); | 6976 impl->raisesExceptionVoidMethod(exceptionState); |
6977 if (exceptionState.throwIfNeeded()) | 6977 if (exceptionState.throwIfNeeded()) |
6978 return; | 6978 return; |
6979 } | 6979 } |
6980 | 6980 |
6981 static void raisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 6981 static void raisesExceptionVoidMethodMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
6982 { | 6982 { |
6983 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 6983 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
6984 TestObjectPythonV8Internal::raisesExceptionVoidMethodMethod(info); | 6984 TestObjectPythonV8Internal::raisesExceptionVoidMethodMethod(info); |
6985 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 6985 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
6986 } | 6986 } |
6987 | 6987 |
6988 static void raisesExceptionStringMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 6988 static void raisesExceptionStringMethodMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
6989 { | 6989 { |
6990 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionStringMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); | 6990 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionStringMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); |
6991 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 6991 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
6992 String result = imp->raisesExceptionStringMethod(exceptionState); | 6992 String result = impl->raisesExceptionStringMethod(exceptionState); |
6993 if (exceptionState.throwIfNeeded()) | 6993 if (exceptionState.throwIfNeeded()) |
6994 return; | 6994 return; |
6995 v8SetReturnValueString(info, result, info.GetIsolate()); | 6995 v8SetReturnValueString(info, result, info.GetIsolate()); |
6996 } | 6996 } |
6997 | 6997 |
6998 static void raisesExceptionStringMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 6998 static void raisesExceptionStringMethodMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
6999 { | 6999 { |
7000 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7000 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7001 TestObjectPythonV8Internal::raisesExceptionStringMethodMethod(info); | 7001 TestObjectPythonV8Internal::raisesExceptionStringMethodMethod(info); |
7002 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7002 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7003 } | 7003 } |
7004 | 7004 |
7005 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 7005 static void raisesExceptionVoidMethodOptionalLongArgMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
7006 { | 7006 { |
7007 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsola
te()); | 7007 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodOptionalLongArg", "TestObjectPython", info.Holder(), info.GetIsola
te()); |
7008 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7008 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7009 if (UNLIKELY(info.Length() <= 0)) { | 7009 if (UNLIKELY(info.Length() <= 0)) { |
7010 imp->raisesExceptionVoidMethodOptionalLongArg(exceptionState); | 7010 impl->raisesExceptionVoidMethodOptionalLongArg(exceptionState); |
7011 if (exceptionState.throwIfNeeded()) | 7011 if (exceptionState.throwIfNeeded()) |
7012 return; | 7012 return; |
7013 return; | 7013 return; |
7014 } | 7014 } |
7015 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); | 7015 V8TRYCATCH_EXCEPTION_VOID(int, optionalLongArg, toInt32(info[0], exceptionSt
ate), exceptionState); |
7016 imp->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionStat
e); | 7016 impl->raisesExceptionVoidMethodOptionalLongArg(optionalLongArg, exceptionSta
te); |
7017 if (exceptionState.throwIfNeeded()) | 7017 if (exceptionState.throwIfNeeded()) |
7018 return; | 7018 return; |
7019 } | 7019 } |
7020 | 7020 |
7021 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 7021 static void raisesExceptionVoidMethodOptionalLongArgMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
7022 { | 7022 { |
7023 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7023 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7024 TestObjectPythonV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(i
nfo); | 7024 TestObjectPythonV8Internal::raisesExceptionVoidMethodOptionalLongArgMethod(i
nfo); |
7025 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7025 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7026 } | 7026 } |
7027 | 7027 |
7028 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 7028 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethod(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
7029 { | 7029 { |
7030 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodTestCallbackInterfaceArg", "TestObjectPython", info.Holder(), info
.GetIsolate()); | 7030 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodTestCallbackInterfaceArg", "TestObjectPython", info.Holder(), info
.GetIsolate()); |
7031 if (UNLIKELY(info.Length() < 1)) { | 7031 if (UNLIKELY(info.Length() < 1)) { |
7032 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 7032 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
7033 exceptionState.throwIfNeeded(); | 7033 exceptionState.throwIfNeeded(); |
7034 return; | 7034 return; |
7035 } | 7035 } |
7036 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7036 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7037 if (info.Length() <= 0 || !info[0]->IsFunction()) { | 7037 if (info.Length() <= 0 || !info[0]->IsFunction()) { |
7038 exceptionState.throwTypeError("The callback provided as parameter 1 is n
ot a function."); | 7038 exceptionState.throwTypeError("The callback provided as parameter 1 is n
ot a function."); |
7039 exceptionState.throwIfNeeded(); | 7039 exceptionState.throwIfNeeded(); |
7040 return; | 7040 return; |
7041 } | 7041 } |
7042 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); | 7042 OwnPtr<TestCallbackInterface> testCallbackInterfaceArg = V8TestCallbackInter
face::create(v8::Handle<v8::Function>::Cast(info[0]), currentExecutionContext(in
fo.GetIsolate())); |
7043 imp->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterface
Arg.release(), exceptionState); | 7043 impl->raisesExceptionVoidMethodTestCallbackInterfaceArg(testCallbackInterfac
eArg.release(), exceptionState); |
7044 if (exceptionState.throwIfNeeded()) | 7044 if (exceptionState.throwIfNeeded()) |
7045 return; | 7045 return; |
7046 } | 7046 } |
7047 | 7047 |
7048 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback(cons
t v8::FunctionCallbackInfo<v8::Value>& info) | 7048 static void raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
7049 { | 7049 { |
7050 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7050 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7051 TestObjectPythonV8Internal::raisesExceptionVoidMethodTestCallbackInterfaceAr
gMethod(info); | 7051 TestObjectPythonV8Internal::raisesExceptionVoidMethodTestCallbackInterfaceAr
gMethod(info); |
7052 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7052 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7053 } | 7053 } |
7054 | 7054 |
7055 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethod(cons
t v8::FunctionCallbackInfo<v8::Value>& info) | 7055 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethod(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
7056 { | 7056 { |
7057 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodOptionalTestCallbackInterfaceArg", "TestObjectPython", info.Holder
(), info.GetIsolate()); | 7057 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionVoidMethodOptionalTestCallbackInterfaceArg", "TestObjectPython", info.Holder
(), info.GetIsolate()); |
7058 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7058 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7059 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg; | 7059 OwnPtr<TestCallbackInterface> optionalTestCallbackInterfaceArg; |
7060 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { | 7060 if (info.Length() > 0 && !isUndefinedOrNull(info[0])) { |
7061 if (!info[0]->IsFunction()) { | 7061 if (!info[0]->IsFunction()) { |
7062 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); | 7062 exceptionState.throwTypeError("The callback provided as parameter 1
is not a function."); |
7063 exceptionState.throwIfNeeded(); | 7063 exceptionState.throwIfNeeded(); |
7064 return; | 7064 return; |
7065 } | 7065 } |
7066 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::H
andle<v8::Function>::Cast(info[0]), currentExecutionContext(info.GetIsolate())); | 7066 optionalTestCallbackInterfaceArg = V8TestCallbackInterface::create(v8::H
andle<v8::Function>::Cast(info[0]), currentExecutionContext(info.GetIsolate())); |
7067 } | 7067 } |
7068 imp->raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg(optionalTestC
allbackInterfaceArg.release(), exceptionState); | 7068 impl->raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg(optionalTest
CallbackInterfaceArg.release(), exceptionState); |
7069 if (exceptionState.throwIfNeeded()) | 7069 if (exceptionState.throwIfNeeded()) |
7070 return; | 7070 return; |
7071 } | 7071 } |
7072 | 7072 |
7073 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallb
ack(const v8::FunctionCallbackInfo<v8::Value>& info) | 7073 static void raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallb
ack(const v8::FunctionCallbackInfo<v8::Value>& info) |
7074 { | 7074 { |
7075 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7075 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7076 TestObjectPythonV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInt
erfaceArgMethod(info); | 7076 TestObjectPythonV8Internal::raisesExceptionVoidMethodOptionalTestCallbackInt
erfaceArgMethod(info); |
7077 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7077 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7078 } | 7078 } |
7079 | 7079 |
7080 static void raisesExceptionTestInterfaceEmptyVoidMethodMethod(const v8::Function
CallbackInfo<v8::Value>& info) | 7080 static void raisesExceptionTestInterfaceEmptyVoidMethodMethod(const v8::Function
CallbackInfo<v8::Value>& info) |
7081 { | 7081 { |
7082 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionTestInterfaceEmptyVoidMethod", "TestObjectPython", info.Holder(), info.GetIs
olate()); | 7082 ExceptionState exceptionState(ExceptionState::ExecutionContext, "raisesExcep
tionTestInterfaceEmptyVoidMethod", "TestObjectPython", info.Holder(), info.GetIs
olate()); |
7083 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7083 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7084 RefPtr<TestInterfaceEmpty> result = imp->raisesExceptionTestInterfaceEmptyVo
idMethod(exceptionState); | 7084 RefPtr<TestInterfaceEmpty> result = impl->raisesExceptionTestInterfaceEmptyV
oidMethod(exceptionState); |
7085 if (exceptionState.throwIfNeeded()) | 7085 if (exceptionState.throwIfNeeded()) |
7086 return; | 7086 return; |
7087 v8SetReturnValue(info, result.release()); | 7087 v8SetReturnValue(info, result.release()); |
7088 } | 7088 } |
7089 | 7089 |
7090 static void raisesExceptionTestInterfaceEmptyVoidMethodMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) | 7090 static void raisesExceptionTestInterfaceEmptyVoidMethodMethodCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
7091 { | 7091 { |
7092 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7092 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7093 TestObjectPythonV8Internal::raisesExceptionTestInterfaceEmptyVoidMethodMetho
d(info); | 7093 TestObjectPythonV8Internal::raisesExceptionTestInterfaceEmptyVoidMethodMetho
d(info); |
7094 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7094 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7095 } | 7095 } |
7096 | 7096 |
7097 static void readOnlyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 7097 static void readOnlyVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
7098 { | 7098 { |
7099 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7099 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7100 imp->readOnlyVoidMethod(); | 7100 impl->readOnlyVoidMethod(); |
7101 } | 7101 } |
7102 | 7102 |
7103 static void readOnlyVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 7103 static void readOnlyVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
7104 { | 7104 { |
7105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7106 TestObjectPythonV8Internal::readOnlyVoidMethodMethod(info); | 7106 TestObjectPythonV8Internal::readOnlyVoidMethodMethod(info); |
7107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7108 } | 7108 } |
7109 | 7109 |
7110 static void notEnumerableReadOnlyVoidMethodMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 7110 static void notEnumerableReadOnlyVoidMethodMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
7111 { | 7111 { |
7112 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7112 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7113 imp->notEnumerableReadOnlyVoidMethod(); | 7113 impl->notEnumerableReadOnlyVoidMethod(); |
7114 } | 7114 } |
7115 | 7115 |
7116 static void notEnumerableReadOnlyVoidMethodMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 7116 static void notEnumerableReadOnlyVoidMethodMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
7117 { | 7117 { |
7118 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7118 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7119 TestObjectPythonV8Internal::notEnumerableReadOnlyVoidMethodMethod(info); | 7119 TestObjectPythonV8Internal::notEnumerableReadOnlyVoidMethodMethod(info); |
7120 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7120 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7121 } | 7121 } |
7122 | 7122 |
7123 static void runtimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 7123 static void runtimeEnabledVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
7124 { | 7124 { |
7125 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7125 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7126 imp->runtimeEnabledVoidMethod(); | 7126 impl->runtimeEnabledVoidMethod(); |
7127 } | 7127 } |
7128 | 7128 |
7129 static void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 7129 static void runtimeEnabledVoidMethodMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
7130 { | 7130 { |
7131 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7131 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7132 TestObjectPythonV8Internal::runtimeEnabledVoidMethodMethod(info); | 7132 TestObjectPythonV8Internal::runtimeEnabledVoidMethodMethod(info); |
7133 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7133 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7134 } | 7134 } |
7135 | 7135 |
7136 static void perWorldBindingsRuntimeEnabledVoidMethodMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 7136 static void perWorldBindingsRuntimeEnabledVoidMethodMethod(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
7137 { | 7137 { |
7138 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7138 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7139 imp->perWorldBindingsRuntimeEnabledVoidMethod(); | 7139 impl->perWorldBindingsRuntimeEnabledVoidMethod(); |
7140 } | 7140 } |
7141 | 7141 |
7142 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 7142 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
7143 { | 7143 { |
7144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7145 TestObjectPythonV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethod(i
nfo); | 7145 TestObjectPythonV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethod(i
nfo); |
7146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7147 } | 7147 } |
7148 | 7148 |
7149 static void perWorldBindingsRuntimeEnabledVoidMethodMethodForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) | 7149 static void perWorldBindingsRuntimeEnabledVoidMethodMethodForMainWorld(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
7150 { | 7150 { |
7151 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7151 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7152 imp->perWorldBindingsRuntimeEnabledVoidMethod(); | 7152 impl->perWorldBindingsRuntimeEnabledVoidMethod(); |
7153 } | 7153 } |
7154 | 7154 |
7155 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c
onst v8::FunctionCallbackInfo<v8::Value>& info) | 7155 static void perWorldBindingsRuntimeEnabledVoidMethodMethodCallbackForMainWorld(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
7156 { | 7156 { |
7157 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7157 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7158 TestObjectPythonV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodFo
rMainWorld(info); | 7158 TestObjectPythonV8Internal::perWorldBindingsRuntimeEnabledVoidMethodMethodFo
rMainWorld(info); |
7159 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7159 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7160 } | 7160 } |
7161 | 7161 |
7162 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 7162 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethod(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
7163 { | 7163 { |
7164 if (UNLIKELY(info.Length() < 1)) { | 7164 if (UNLIKELY(info.Length() < 1)) { |
7165 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughA
rguments(1, info.Length())), info.GetIsolate()); | 7165 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyArg", "TestObjectPython", ExceptionMessages::notEnoughA
rguments(1, info.Length())), info.GetIsolate()); |
7166 return; | 7166 return; |
7167 } | 7167 } |
7168 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7168 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7169 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], info.Ge
tIsolate())) { | 7169 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], info.Ge
tIsolate())) { |
7170 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type '
TestInterfaceEmpty'."), info.GetIsolate()); | 7170 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyArg", "TestObjectPython", "parameter 1 is not of type '
TestInterfaceEmpty'."), info.GetIsolate()); |
7171 return; | 7171 return; |
7172 } | 7172 } |
7173 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 7173 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
7174 imp->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg
); | 7174 impl->strictTypeCheckingVoidMethodTestInterfaceEmptyArg(testInterfaceEmptyAr
g); |
7175 } | 7175 } |
7176 | 7176 |
7177 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons
t v8::FunctionCallbackInfo<v8::Value>& info) | 7177 static void strictTypeCheckingVoidMethodTestInterfaceEmptyArgMethodCallback(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
7178 { | 7178 { |
7179 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7179 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7180 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyAr
gMethod(info); | 7180 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyAr
gMethod(info); |
7181 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7181 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7182 } | 7182 } |
7183 | 7183 |
7184 static void strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 7184 static void strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
7185 { | 7185 { |
7186 if (UNLIKELY(info.Length() < 1)) { | 7186 if (UNLIKELY(info.Length() < 1)) { |
7187 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyOrNullArg", "TestObjectPython", ExceptionMessages::notE
noughArguments(1, info.Length())), info.GetIsolate()); | 7187 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyOrNullArg", "TestObjectPython", ExceptionMessages::notE
noughArguments(1, info.Length())), info.GetIsolate()); |
7188 return; | 7188 return; |
7189 } | 7189 } |
7190 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7190 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7191 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt
y::hasInstance(info[0], info.GetIsolate())) { | 7191 if (info.Length() > 0 && !isUndefinedOrNull(info[0]) && !V8TestInterfaceEmpt
y::hasInstance(info[0], info.GetIsolate())) { |
7192 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyOrNullArg", "TestObjectPython", "parameter 1 is not of
type 'TestInterfaceEmpty'."), info.GetIsolate()); | 7192 throwTypeError(ExceptionMessages::failedToExecute("strictTypeCheckingVoi
dMethodTestInterfaceEmptyOrNullArg", "TestObjectPython", "parameter 1 is not of
type 'TestInterfaceEmpty'."), info.GetIsolate()); |
7193 return; | 7193 return; |
7194 } | 7194 } |
7195 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 7195 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
7196 imp->strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArg(testInterfaceEm
ptyArg); | 7196 impl->strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArg(testInterfaceE
mptyArg); |
7197 } | 7197 } |
7198 | 7198 |
7199 static void strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethodCallbac
k(const v8::FunctionCallbackInfo<v8::Value>& info) | 7199 static void strictTypeCheckingVoidMethodTestInterfaceEmptyOrNullArgMethodCallbac
k(const v8::FunctionCallbackInfo<v8::Value>& info) |
7200 { | 7200 { |
7201 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7201 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7202 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyOr
NullArgMethod(info); | 7202 TestObjectPythonV8Internal::strictTypeCheckingVoidMethodTestInterfaceEmptyOr
NullArgMethod(info); |
7203 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7203 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7204 } | 7204 } |
7205 | 7205 |
7206 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 7206 static void treatReturnedNullStringAsNullStringMethodMethod(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
7207 { | 7207 { |
7208 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7208 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7209 v8SetReturnValueStringOrNull(info, imp->treatReturnedNullStringAsNullStringM
ethod(), info.GetIsolate()); | 7209 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Method(), info.GetIsolate()); |
7210 } | 7210 } |
7211 | 7211 |
7212 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) | 7212 static void treatReturnedNullStringAsNullStringMethodMethodCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
7213 { | 7213 { |
7214 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7214 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7215 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringMethodMethod(
info); | 7215 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringMethodMethod(
info); |
7216 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7216 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7217 } | 7217 } |
7218 | 7218 |
7219 static void treatReturnedNullStringAsUndefinedStringMethodMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 7219 static void treatReturnedNullStringAsUndefinedStringMethodMethod(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
7220 { | 7220 { |
7221 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7221 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7222 v8SetReturnValueStringOrUndefined(info, imp->treatReturnedNullStringAsUndefi
nedStringMethod(), info.GetIsolate()); | 7222 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringMethod(), info.GetIsolate()); |
7223 } | 7223 } |
7224 | 7224 |
7225 static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) | 7225 static void treatReturnedNullStringAsUndefinedStringMethodMethodCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
7226 { | 7226 { |
7227 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7227 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7228 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringMethodMe
thod(info); | 7228 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringMethodMe
thod(info); |
7229 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7229 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7230 } | 7230 } |
7231 | 7231 |
7232 static void unforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 7232 static void unforgeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
7233 { | 7233 { |
7234 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7234 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7235 imp->unforgeableVoidMethod(); | 7235 impl->unforgeableVoidMethod(); |
7236 } | 7236 } |
7237 | 7237 |
7238 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 7238 static void unforgeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
7239 { | 7239 { |
7240 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7240 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7241 TestObjectPythonV8Internal::unforgeableVoidMethodMethod(info); | 7241 TestObjectPythonV8Internal::unforgeableVoidMethodMethod(info); |
7242 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7242 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7243 } | 7243 } |
7244 | 7244 |
7245 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) | 7245 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethod(const
v8::FunctionCallbackInfo<v8::Value>& info) |
7246 { | 7246 { |
7247 if (UNLIKELY(info.Length() < 1)) { | 7247 if (UNLIKELY(info.Length() < 1)) { |
7248 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceWillBeGarbageCollectedSequenceArg", "TestObjectPython", ExceptionMessages::not
EnoughArguments(1, info.Length())), info.GetIsolate()); | 7248 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceWillBeGarbageCollectedSequenceArg", "TestObjectPython", ExceptionMessages::not
EnoughArguments(1, info.Length())), info.GetIsolate()); |
7249 return; | 7249 return; |
7250 } | 7250 } |
7251 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7251 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7252 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba
geCollected> >, testInterfaceWillBeGarbageCollectedSequenceArg, (toMemberNativeA
rray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>
(info[0], 1, info.GetIsolate()))); | 7252 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba
geCollected> >, testInterfaceWillBeGarbageCollectedSequenceArg, (toMemberNativeA
rray<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>
(info[0], 1, info.GetIsolate()))); |
7253 imp->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterfaceW
illBeGarbageCollectedSequenceArg); | 7253 impl->voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg(testInterface
WillBeGarbageCollectedSequenceArg); |
7254 } | 7254 } |
7255 | 7255 |
7256 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) | 7256 static void voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
7257 { | 7257 { |
7258 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7258 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7259 TestObjectPythonV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSeq
uenceArgMethod(info); | 7259 TestObjectPythonV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedSeq
uenceArgMethod(info); |
7260 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7260 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7261 } | 7261 } |
7262 | 7262 |
7263 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) | 7263 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethod(const v8
::FunctionCallbackInfo<v8::Value>& info) |
7264 { | 7264 { |
7265 if (UNLIKELY(info.Length() < 1)) { | 7265 if (UNLIKELY(info.Length() < 1)) { |
7266 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceWillBeGarbageCollectedArrayArg", "TestObjectPython", ExceptionMessages::notEno
ughArguments(1, info.Length())), info.GetIsolate()); | 7266 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceWillBeGarbageCollectedArrayArg", "TestObjectPython", ExceptionMessages::notEno
ughArguments(1, info.Length())), info.GetIsolate()); |
7267 return; | 7267 return; |
7268 } | 7268 } |
7269 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); | 7269 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); |
7270 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba
geCollected> >, testInterfaceWillBeGarbageCollectedArrayArg, (toMemberNativeArra
y<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(in
fo[0], 1, info.GetIsolate()))); | 7270 V8TRYCATCH_VOID(WillBeHeapVector<RefPtrWillBeMember<TestInterfaceWillBeGarba
geCollected> >, testInterfaceWillBeGarbageCollectedArrayArg, (toMemberNativeArra
y<TestInterfaceWillBeGarbageCollected, V8TestInterfaceWillBeGarbageCollected>(in
fo[0], 1, info.GetIsolate()))); |
7271 imp->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWill
BeGarbageCollectedArrayArg); | 7271 impl->voidMethodTestInterfaceWillBeGarbageCollectedArrayArg(testInterfaceWil
lBeGarbageCollectedArrayArg); |
7272 } | 7272 } |
7273 | 7273 |
7274 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) | 7274 static void voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
7275 { | 7275 { |
7276 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 7276 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
7277 TestObjectPythonV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArr
ayArgMethod(info); | 7277 TestObjectPythonV8Internal::voidMethodTestInterfaceWillBeGarbageCollectedArr
ayArgMethod(info); |
7278 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 7278 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
7279 } | 7279 } |
7280 | 7280 |
7281 } // namespace TestObjectPythonV8Internal | 7281 } // namespace TestObjectPythonV8Internal |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7757 fromInternalPointer(object)->deref(); | 7757 fromInternalPointer(object)->deref(); |
7758 } | 7758 } |
7759 | 7759 |
7760 template<> | 7760 template<> |
7761 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) | 7761 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object
> creationContext, v8::Isolate* isolate) |
7762 { | 7762 { |
7763 return toV8(impl, creationContext, isolate); | 7763 return toV8(impl, creationContext, isolate); |
7764 } | 7764 } |
7765 | 7765 |
7766 } // namespace WebCore | 7766 } // namespace WebCore |
OLD | NEW |