OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #include "V8TestObject.h" | 8 #include "V8TestObject.h" |
9 | 9 |
10 #include "bindings/core/v8/BindingSecurity.h" | 10 #include "bindings/core/v8/BindingSecurity.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 if (!perContextData) | 115 if (!perContextData) |
116 break; | 116 break; |
117 const WrapperTypeInfo* wrapperTypeInfo = WrapperTypeInfo::unwrap(data); | 117 const WrapperTypeInfo* wrapperTypeInfo = WrapperTypeInfo::unwrap(data); |
118 if (!wrapperTypeInfo) | 118 if (!wrapperTypeInfo) |
119 break; | 119 break; |
120 TestObjectForceSetAttributeOnThis(v8String(info.GetIsolate(), wrapperTyp
eInfo->interfaceName), v8Value, info); | 120 TestObjectForceSetAttributeOnThis(v8String(info.GetIsolate(), wrapperTyp
eInfo->interfaceName), v8Value, info); |
121 } while (false); // do ... while (false) just for use of break | 121 } while (false); // do ... while (false) just for use of break |
122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
123 } | 123 } |
124 | 124 |
125 static void stringifierAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 125 static void stringifierAttributeAttributeGetter(const v8::FunctionCallbackInfo<v
8::Value>& info) |
126 { | 126 { |
127 v8::Local<v8::Object> holder = info.Holder(); | 127 v8::Local<v8::Object> holder = info.Holder(); |
128 TestObject* impl = V8TestObject::toImpl(holder); | 128 TestObject* impl = V8TestObject::toImpl(holder); |
129 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate()
); | 129 v8SetReturnValueString(info, impl->stringifierAttribute(), info.GetIsolate()
); |
130 } | 130 } |
131 | 131 |
132 static void stringifierAttributeAttributeGetterCallback(v8::Local<v8::Name>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 132 static void stringifierAttributeAttributeGetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
133 { | 133 { |
134 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 134 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
135 TestObjectV8Internal::stringifierAttributeAttributeGetter(info); | 135 TestObjectV8Internal::stringifierAttributeAttributeGetter(info); |
136 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 136 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
137 } | 137 } |
138 | 138 |
139 static void stringifierAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 139 static void stringifierAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
140 { | 140 { |
141 v8::Local<v8::Object> holder = info.Holder(); | 141 v8::Local<v8::Object> holder = info.Holder(); |
142 TestObject* impl = V8TestObject::toImpl(holder); | 142 TestObject* impl = V8TestObject::toImpl(holder); |
143 V8StringResource<> cppValue = v8Value; | 143 V8StringResource<> cppValue = v8Value; |
144 if (!cppValue.prepare()) | 144 if (!cppValue.prepare()) |
145 return; | 145 return; |
146 impl->setStringifierAttribute(cppValue); | 146 impl->setStringifierAttribute(cppValue); |
147 } | 147 } |
148 | 148 |
149 static void stringifierAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 149 static void stringifierAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
150 { | 150 { |
| 151 v8::Local<v8::Value> v8Value = info[0]; |
151 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 152 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
152 TestObjectV8Internal::stringifierAttributeAttributeSetter(v8Value, info); | 153 TestObjectV8Internal::stringifierAttributeAttributeSetter(v8Value, info); |
153 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 154 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
154 } | 155 } |
155 | 156 |
156 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 157 static void readonlyStringAttributeAttributeGetter(const v8::FunctionCallbackInf
o<v8::Value>& info) |
157 { | 158 { |
158 v8::Local<v8::Object> holder = info.Holder(); | 159 v8::Local<v8::Object> holder = info.Holder(); |
159 TestObject* impl = V8TestObject::toImpl(holder); | 160 TestObject* impl = V8TestObject::toImpl(holder); |
160 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); | 161 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); |
161 } | 162 } |
162 | 163 |
163 static void readonlyStringAttributeAttributeGetterCallback(v8::Local<v8::Name>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 164 static void readonlyStringAttributeAttributeGetterCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
164 { | 165 { |
165 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 166 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
166 TestObjectV8Internal::readonlyStringAttributeAttributeGetter(info); | 167 TestObjectV8Internal::readonlyStringAttributeAttributeGetter(info); |
167 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 168 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
168 } | 169 } |
169 | 170 |
170 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) | 171 static void readonlyTestInterfaceEmptyAttributeAttributeGetter(const v8::Functio
nCallbackInfo<v8::Value>& info) |
171 { | 172 { |
172 v8::Local<v8::Object> holder = info.Holder(); | 173 v8::Local<v8::Object> holder = info.Holder(); |
173 TestObject* impl = V8TestObject::toImpl(holder); | 174 TestObject* impl = V8TestObject::toImpl(holder); |
174 RefPtr<TestInterfaceEmpty> cppValue(impl->readonlyTestInterfaceEmptyAttribut
e()); | 175 RefPtr<TestInterfaceEmpty> cppValue(impl->readonlyTestInterfaceEmptyAttribut
e()); |
175 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) | 176 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) |
176 return; | 177 return; |
177 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate())
); | 178 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate())
); |
178 if (!v8Value.IsEmpty()) { | 179 if (!v8Value.IsEmpty()) { |
179 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "readonlyTestInterfaceEmptyAttribute"), v8Value); | 180 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "readonlyTestInterfaceEmptyAttribute"), v8Value); |
180 v8SetReturnValue(info, v8Value); | 181 v8SetReturnValue(info, v8Value); |
181 } | 182 } |
182 } | 183 } |
183 | 184 |
184 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(v8::Local
<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 185 static void readonlyTestInterfaceEmptyAttributeAttributeGetterCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
185 { | 186 { |
186 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 187 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
187 TestObjectV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGetter(inf
o); | 188 TestObjectV8Internal::readonlyTestInterfaceEmptyAttributeAttributeGetter(inf
o); |
188 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 189 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
189 } | 190 } |
190 | 191 |
191 static void readonlyLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 192 static void readonlyLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<
v8::Value>& info) |
192 { | 193 { |
193 v8::Local<v8::Object> holder = info.Holder(); | 194 v8::Local<v8::Object> holder = info.Holder(); |
194 TestObject* impl = V8TestObject::toImpl(holder); | 195 TestObject* impl = V8TestObject::toImpl(holder); |
195 v8SetReturnValueInt(info, impl->readonlyLongAttribute()); | 196 v8SetReturnValueInt(info, impl->readonlyLongAttribute()); |
196 } | 197 } |
197 | 198 |
198 static void readonlyLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 199 static void readonlyLongAttributeAttributeGetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
199 { | 200 { |
200 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 201 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
201 TestObjectV8Internal::readonlyLongAttributeAttributeGetter(info); | 202 TestObjectV8Internal::readonlyLongAttributeAttributeGetter(info); |
202 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 203 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
203 } | 204 } |
204 | 205 |
205 static void dateAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 206 static void dateAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
206 { | 207 { |
207 v8::Local<v8::Object> holder = info.Holder(); | 208 v8::Local<v8::Object> holder = info.Holder(); |
208 TestObject* impl = V8TestObject::toImpl(holder); | 209 TestObject* impl = V8TestObject::toImpl(holder); |
209 v8SetReturnValue(info, v8DateOrNaN(info.GetIsolate(), impl->dateAttribute())
); | 210 v8SetReturnValue(info, v8DateOrNaN(info.GetIsolate(), impl->dateAttribute())
); |
210 } | 211 } |
211 | 212 |
212 static void dateAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::
PropertyCallbackInfo<v8::Value>& info) | 213 static void dateAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
213 { | 214 { |
214 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 215 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
215 TestObjectV8Internal::dateAttributeAttributeGetter(info); | 216 TestObjectV8Internal::dateAttributeAttributeGetter(info); |
216 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 217 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
217 } | 218 } |
218 | 219 |
219 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 220 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:FunctionCallbackInfo<v8::Value>& info) |
220 { | 221 { |
221 v8::Local<v8::Object> holder = info.Holder(); | 222 v8::Local<v8::Object> holder = info.Holder(); |
222 TestObject* impl = V8TestObject::toImpl(holder); | 223 TestObject* impl = V8TestObject::toImpl(holder); |
223 double cppValue = toCoreDate(info.GetIsolate(), v8Value); | 224 double cppValue = toCoreDate(info.GetIsolate(), v8Value); |
224 impl->setDateAttribute(cppValue); | 225 impl->setDateAttribute(cppValue); |
225 } | 226 } |
226 | 227 |
227 static void dateAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 228 static void dateAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
228 { | 229 { |
| 230 v8::Local<v8::Value> v8Value = info[0]; |
229 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
230 TestObjectV8Internal::dateAttributeAttributeSetter(v8Value, info); | 232 TestObjectV8Internal::dateAttributeAttributeSetter(v8Value, info); |
231 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 233 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
232 } | 234 } |
233 | 235 |
234 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 236 static void stringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
235 { | 237 { |
236 v8::Local<v8::Object> holder = info.Holder(); | 238 v8::Local<v8::Object> holder = info.Holder(); |
237 TestObject* impl = V8TestObject::toImpl(holder); | 239 TestObject* impl = V8TestObject::toImpl(holder); |
238 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate()); | 240 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate()); |
239 } | 241 } |
240 | 242 |
241 static void stringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 243 static void stringAttributeAttributeGetterCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
242 { | 244 { |
243 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 245 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
244 TestObjectV8Internal::stringAttributeAttributeGetter(info); | 246 TestObjectV8Internal::stringAttributeAttributeGetter(info); |
245 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 247 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
246 } | 248 } |
247 | 249 |
248 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 250 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::FunctionCallbackInfo<v8::Value>& info) |
249 { | 251 { |
250 v8::Local<v8::Object> holder = info.Holder(); | 252 v8::Local<v8::Object> holder = info.Holder(); |
251 TestObject* impl = V8TestObject::toImpl(holder); | 253 TestObject* impl = V8TestObject::toImpl(holder); |
252 V8StringResource<> cppValue = v8Value; | 254 V8StringResource<> cppValue = v8Value; |
253 if (!cppValue.prepare()) | 255 if (!cppValue.prepare()) |
254 return; | 256 return; |
255 impl->setStringAttribute(cppValue); | 257 impl->setStringAttribute(cppValue); |
256 } | 258 } |
257 | 259 |
258 static void stringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 260 static void stringAttributeAttributeSetterCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
259 { | 261 { |
| 262 v8::Local<v8::Value> v8Value = info[0]; |
260 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 263 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
261 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); | 264 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); |
262 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
263 } | 266 } |
264 | 267 |
265 static void byteStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 268 static void byteStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8
::Value>& info) |
266 { | 269 { |
267 v8::Local<v8::Object> holder = info.Holder(); | 270 v8::Local<v8::Object> holder = info.Holder(); |
268 TestObject* impl = V8TestObject::toImpl(holder); | 271 TestObject* impl = V8TestObject::toImpl(holder); |
269 v8SetReturnValueString(info, impl->byteStringAttribute(), info.GetIsolate())
; | 272 v8SetReturnValueString(info, impl->byteStringAttribute(), info.GetIsolate())
; |
270 } | 273 } |
271 | 274 |
272 static void byteStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 275 static void byteStringAttributeAttributeGetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
273 { | 276 { |
274 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 277 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
275 TestObjectV8Internal::byteStringAttributeAttributeGetter(info); | 278 TestObjectV8Internal::byteStringAttributeAttributeGetter(info); |
276 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
277 } | 280 } |
278 | 281 |
279 static void byteStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 282 static void byteStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::FunctionCallbackInfo<v8::Value>& info) |
280 { | 283 { |
281 v8::Local<v8::Object> holder = info.Holder(); | 284 v8::Local<v8::Object> holder = info.Holder(); |
282 ExceptionState exceptionState(ExceptionState::SetterContext, "byteStringAttr
ibute", "TestObject", holder, info.GetIsolate()); | 285 ExceptionState exceptionState(ExceptionState::SetterContext, "byteStringAttr
ibute", "TestObject", holder, info.GetIsolate()); |
283 TestObject* impl = V8TestObject::toImpl(holder); | 286 TestObject* impl = V8TestObject::toImpl(holder); |
284 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep
tionState); | 287 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep
tionState); |
285 if (exceptionState.throwIfNeeded()) | 288 if (exceptionState.throwIfNeeded()) |
286 return; | 289 return; |
287 impl->setByteStringAttribute(cppValue); | 290 impl->setByteStringAttribute(cppValue); |
288 } | 291 } |
289 | 292 |
290 static void byteStringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 293 static void byteStringAttributeAttributeSetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
291 { | 294 { |
| 295 v8::Local<v8::Value> v8Value = info[0]; |
292 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 296 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
293 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info); | 297 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info); |
294 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 298 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
295 } | 299 } |
296 | 300 |
297 static void usvStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) | 301 static void usvStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
298 { | 302 { |
299 v8::Local<v8::Object> holder = info.Holder(); | 303 v8::Local<v8::Object> holder = info.Holder(); |
300 TestObject* impl = V8TestObject::toImpl(holder); | 304 TestObject* impl = V8TestObject::toImpl(holder); |
301 v8SetReturnValueString(info, impl->usvStringAttribute(), info.GetIsolate()); | 305 v8SetReturnValueString(info, impl->usvStringAttribute(), info.GetIsolate()); |
302 } | 306 } |
303 | 307 |
304 static void usvStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 308 static void usvStringAttributeAttributeGetterCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
305 { | 309 { |
306 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 310 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
307 TestObjectV8Internal::usvStringAttributeAttributeGetter(info); | 311 TestObjectV8Internal::usvStringAttributeAttributeGetter(info); |
308 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 312 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
309 } | 313 } |
310 | 314 |
311 static void usvStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 315 static void usvStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
312 { | 316 { |
313 v8::Local<v8::Object> holder = info.Holder(); | 317 v8::Local<v8::Object> holder = info.Holder(); |
314 ExceptionState exceptionState(ExceptionState::SetterContext, "usvStringAttri
bute", "TestObject", holder, info.GetIsolate()); | 318 ExceptionState exceptionState(ExceptionState::SetterContext, "usvStringAttri
bute", "TestObject", holder, info.GetIsolate()); |
315 TestObject* impl = V8TestObject::toImpl(holder); | 319 TestObject* impl = V8TestObject::toImpl(holder); |
316 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except
ionState); | 320 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except
ionState); |
317 if (exceptionState.throwIfNeeded()) | 321 if (exceptionState.throwIfNeeded()) |
318 return; | 322 return; |
319 impl->setUsvStringAttribute(cppValue); | 323 impl->setUsvStringAttribute(cppValue); |
320 } | 324 } |
321 | 325 |
322 static void usvStringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 326 static void usvStringAttributeAttributeSetterCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
323 { | 327 { |
| 328 v8::Local<v8::Value> v8Value = info[0]; |
324 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 329 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
325 TestObjectV8Internal::usvStringAttributeAttributeSetter(v8Value, info); | 330 TestObjectV8Internal::usvStringAttributeAttributeSetter(v8Value, info); |
326 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 331 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
327 } | 332 } |
328 | 333 |
329 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 334 static void domTimeStampAttributeAttributeGetter(const v8::FunctionCallbackInfo<
v8::Value>& info) |
330 { | 335 { |
331 v8::Local<v8::Object> holder = info.Holder(); | 336 v8::Local<v8::Object> holder = info.Holder(); |
332 TestObject* impl = V8TestObject::toImpl(holder); | 337 TestObject* impl = V8TestObject::toImpl(holder); |
333 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); | 338 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); |
334 } | 339 } |
335 | 340 |
336 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::Name>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 341 static void domTimeStampAttributeAttributeGetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
337 { | 342 { |
338 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 343 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
339 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info); | 344 TestObjectV8Internal::domTimeStampAttributeAttributeGetter(info); |
340 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 345 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
341 } | 346 } |
342 | 347 |
343 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 348 static void domTimeStampAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
344 { | 349 { |
345 v8::Local<v8::Object> holder = info.Holder(); | 350 v8::Local<v8::Object> holder = info.Holder(); |
346 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt
tribute", "TestObject", holder, info.GetIsolate()); | 351 ExceptionState exceptionState(ExceptionState::SetterContext, "domTimeStampAt
tribute", "TestObject", holder, info.GetIsolate()); |
347 TestObject* impl = V8TestObject::toImpl(holder); | 352 TestObject* impl = V8TestObject::toImpl(holder); |
348 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalCon
version, exceptionState); | 353 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalCon
version, exceptionState); |
349 if (exceptionState.throwIfNeeded()) | 354 if (exceptionState.throwIfNeeded()) |
350 return; | 355 return; |
351 impl->setDomTimeStampAttribute(cppValue); | 356 impl->setDomTimeStampAttribute(cppValue); |
352 } | 357 } |
353 | 358 |
354 static void domTimeStampAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 359 static void domTimeStampAttributeAttributeSetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
355 { | 360 { |
| 361 v8::Local<v8::Value> v8Value = info[0]; |
356 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 362 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
357 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info); | 363 TestObjectV8Internal::domTimeStampAttributeAttributeSetter(v8Value, info); |
358 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 364 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
359 } | 365 } |
360 | 366 |
361 static void booleanAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 367 static void booleanAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
362 { | 368 { |
363 v8::Local<v8::Object> holder = info.Holder(); | 369 v8::Local<v8::Object> holder = info.Holder(); |
364 TestObject* impl = V8TestObject::toImpl(holder); | 370 TestObject* impl = V8TestObject::toImpl(holder); |
365 v8SetReturnValueBool(info, impl->booleanAttribute()); | 371 v8SetReturnValueBool(info, impl->booleanAttribute()); |
366 } | 372 } |
367 | 373 |
368 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 374 static void booleanAttributeAttributeGetterCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
369 { | 375 { |
370 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 376 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
371 TestObjectV8Internal::booleanAttributeAttributeGetter(info); | 377 TestObjectV8Internal::booleanAttributeAttributeGetter(info); |
372 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 378 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
373 } | 379 } |
374 | 380 |
375 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 381 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::FunctionCallbackInfo<v8::Value>& info) |
376 { | 382 { |
377 v8::Local<v8::Object> holder = info.Holder(); | 383 v8::Local<v8::Object> holder = info.Holder(); |
378 ExceptionState exceptionState(ExceptionState::SetterContext, "booleanAttribu
te", "TestObject", holder, info.GetIsolate()); | 384 ExceptionState exceptionState(ExceptionState::SetterContext, "booleanAttribu
te", "TestObject", holder, info.GetIsolate()); |
379 TestObject* impl = V8TestObject::toImpl(holder); | 385 TestObject* impl = V8TestObject::toImpl(holder); |
380 bool cppValue = toBoolean(info.GetIsolate(), v8Value, exceptionState); | 386 bool cppValue = toBoolean(info.GetIsolate(), v8Value, exceptionState); |
381 if (exceptionState.throwIfNeeded()) | 387 if (exceptionState.throwIfNeeded()) |
382 return; | 388 return; |
383 impl->setBooleanAttribute(cppValue); | 389 impl->setBooleanAttribute(cppValue); |
384 } | 390 } |
385 | 391 |
386 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 392 static void booleanAttributeAttributeSetterCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
387 { | 393 { |
| 394 v8::Local<v8::Value> v8Value = info[0]; |
388 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 395 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
389 TestObjectV8Internal::booleanAttributeAttributeSetter(v8Value, info); | 396 TestObjectV8Internal::booleanAttributeAttributeSetter(v8Value, info); |
390 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 397 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
391 } | 398 } |
392 | 399 |
393 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 400 static void byteAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
394 { | 401 { |
395 v8::Local<v8::Object> holder = info.Holder(); | 402 v8::Local<v8::Object> holder = info.Holder(); |
396 TestObject* impl = V8TestObject::toImpl(holder); | 403 TestObject* impl = V8TestObject::toImpl(holder); |
397 v8SetReturnValueInt(info, impl->byteAttribute()); | 404 v8SetReturnValueInt(info, impl->byteAttribute()); |
398 } | 405 } |
399 | 406 |
400 static void byteAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::
PropertyCallbackInfo<v8::Value>& info) | 407 static void byteAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
401 { | 408 { |
402 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 409 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
403 TestObjectV8Internal::byteAttributeAttributeGetter(info); | 410 TestObjectV8Internal::byteAttributeAttributeGetter(info); |
404 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 411 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
405 } | 412 } |
406 | 413 |
407 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 414 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:FunctionCallbackInfo<v8::Value>& info) |
408 { | 415 { |
409 v8::Local<v8::Object> holder = info.Holder(); | 416 v8::Local<v8::Object> holder = info.Holder(); |
410 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute"
, "TestObject", holder, info.GetIsolate()); | 417 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute"
, "TestObject", holder, info.GetIsolate()); |
411 TestObject* impl = V8TestObject::toImpl(holder); | 418 TestObject* impl = V8TestObject::toImpl(holder); |
412 int cppValue = toInt8(info.GetIsolate(), v8Value, NormalConversion, exceptio
nState); | 419 int cppValue = toInt8(info.GetIsolate(), v8Value, NormalConversion, exceptio
nState); |
413 if (exceptionState.throwIfNeeded()) | 420 if (exceptionState.throwIfNeeded()) |
414 return; | 421 return; |
415 impl->setByteAttribute(cppValue); | 422 impl->setByteAttribute(cppValue); |
416 } | 423 } |
417 | 424 |
418 static void byteAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 425 static void byteAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
419 { | 426 { |
| 427 v8::Local<v8::Value> v8Value = info[0]; |
420 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 428 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
421 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info); | 429 TestObjectV8Internal::byteAttributeAttributeSetter(v8Value, info); |
422 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 430 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
423 } | 431 } |
424 | 432 |
425 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 433 static void doubleAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
426 { | 434 { |
427 v8::Local<v8::Object> holder = info.Holder(); | 435 v8::Local<v8::Object> holder = info.Holder(); |
428 TestObject* impl = V8TestObject::toImpl(holder); | 436 TestObject* impl = V8TestObject::toImpl(holder); |
429 v8SetReturnValue(info, impl->doubleAttribute()); | 437 v8SetReturnValue(info, impl->doubleAttribute()); |
430 } | 438 } |
431 | 439 |
432 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 440 static void doubleAttributeAttributeGetterCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
433 { | 441 { |
434 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 442 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
435 TestObjectV8Internal::doubleAttributeAttributeGetter(info); | 443 TestObjectV8Internal::doubleAttributeAttributeGetter(info); |
436 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 444 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
437 } | 445 } |
438 | 446 |
439 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 447 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::FunctionCallbackInfo<v8::Value>& info) |
440 { | 448 { |
441 v8::Local<v8::Object> holder = info.Holder(); | 449 v8::Local<v8::Object> holder = info.Holder(); |
442 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut
e", "TestObject", holder, info.GetIsolate()); | 450 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut
e", "TestObject", holder, info.GetIsolate()); |
443 TestObject* impl = V8TestObject::toImpl(holder); | 451 TestObject* impl = V8TestObject::toImpl(holder); |
444 double cppValue = toRestrictedDouble(info.GetIsolate(), v8Value, exceptionSt
ate); | 452 double cppValue = toRestrictedDouble(info.GetIsolate(), v8Value, exceptionSt
ate); |
445 if (exceptionState.throwIfNeeded()) | 453 if (exceptionState.throwIfNeeded()) |
446 return; | 454 return; |
447 impl->setDoubleAttribute(cppValue); | 455 impl->setDoubleAttribute(cppValue); |
448 } | 456 } |
449 | 457 |
450 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 458 static void doubleAttributeAttributeSetterCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
451 { | 459 { |
| 460 v8::Local<v8::Value> v8Value = info[0]; |
452 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 461 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
453 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info); | 462 TestObjectV8Internal::doubleAttributeAttributeSetter(v8Value, info); |
454 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 463 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
455 } | 464 } |
456 | 465 |
457 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 466 static void floatAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
458 { | 467 { |
459 v8::Local<v8::Object> holder = info.Holder(); | 468 v8::Local<v8::Object> holder = info.Holder(); |
460 TestObject* impl = V8TestObject::toImpl(holder); | 469 TestObject* impl = V8TestObject::toImpl(holder); |
461 v8SetReturnValue(info, impl->floatAttribute()); | 470 v8SetReturnValue(info, impl->floatAttribute()); |
462 } | 471 } |
463 | 472 |
464 static void floatAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 473 static void floatAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
465 { | 474 { |
466 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 475 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
467 TestObjectV8Internal::floatAttributeAttributeGetter(info); | 476 TestObjectV8Internal::floatAttributeAttributeGetter(info); |
468 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 477 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
469 } | 478 } |
470 | 479 |
471 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 480 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::FunctionCallbackInfo<v8::Value>& info) |
472 { | 481 { |
473 v8::Local<v8::Object> holder = info.Holder(); | 482 v8::Local<v8::Object> holder = info.Holder(); |
474 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute
", "TestObject", holder, info.GetIsolate()); | 483 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute
", "TestObject", holder, info.GetIsolate()); |
475 TestObject* impl = V8TestObject::toImpl(holder); | 484 TestObject* impl = V8TestObject::toImpl(holder); |
476 float cppValue = toRestrictedFloat(info.GetIsolate(), v8Value, exceptionStat
e); | 485 float cppValue = toRestrictedFloat(info.GetIsolate(), v8Value, exceptionStat
e); |
477 if (exceptionState.throwIfNeeded()) | 486 if (exceptionState.throwIfNeeded()) |
478 return; | 487 return; |
479 impl->setFloatAttribute(cppValue); | 488 impl->setFloatAttribute(cppValue); |
480 } | 489 } |
481 | 490 |
482 static void floatAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 491 static void floatAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
483 { | 492 { |
| 493 v8::Local<v8::Value> v8Value = info[0]; |
484 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 494 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
485 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info); | 495 TestObjectV8Internal::floatAttributeAttributeSetter(v8Value, info); |
486 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 496 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
487 } | 497 } |
488 | 498 |
489 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 499 static void longAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
490 { | 500 { |
491 v8::Local<v8::Object> holder = info.Holder(); | 501 v8::Local<v8::Object> holder = info.Holder(); |
492 TestObject* impl = V8TestObject::toImpl(holder); | 502 TestObject* impl = V8TestObject::toImpl(holder); |
493 v8SetReturnValueInt(info, impl->longAttribute()); | 503 v8SetReturnValueInt(info, impl->longAttribute()); |
494 } | 504 } |
495 | 505 |
496 static void longAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::
PropertyCallbackInfo<v8::Value>& info) | 506 static void longAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
497 { | 507 { |
498 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 508 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
499 TestObjectV8Internal::longAttributeAttributeGetter(info); | 509 TestObjectV8Internal::longAttributeAttributeGetter(info); |
500 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 510 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
501 } | 511 } |
502 | 512 |
503 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 513 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:FunctionCallbackInfo<v8::Value>& info) |
504 { | 514 { |
505 v8::Local<v8::Object> holder = info.Holder(); | 515 v8::Local<v8::Object> holder = info.Holder(); |
506 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute"
, "TestObject", holder, info.GetIsolate()); | 516 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute"
, "TestObject", holder, info.GetIsolate()); |
507 TestObject* impl = V8TestObject::toImpl(holder); | 517 TestObject* impl = V8TestObject::toImpl(holder); |
508 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 518 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
509 if (exceptionState.throwIfNeeded()) | 519 if (exceptionState.throwIfNeeded()) |
510 return; | 520 return; |
511 impl->setLongAttribute(cppValue); | 521 impl->setLongAttribute(cppValue); |
512 } | 522 } |
513 | 523 |
514 static void longAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 524 static void longAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
515 { | 525 { |
| 526 v8::Local<v8::Value> v8Value = info[0]; |
516 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 527 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
517 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info); | 528 TestObjectV8Internal::longAttributeAttributeSetter(v8Value, info); |
518 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 529 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
519 } | 530 } |
520 | 531 |
521 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 532 static void longLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::
Value>& info) |
522 { | 533 { |
523 v8::Local<v8::Object> holder = info.Holder(); | 534 v8::Local<v8::Object> holder = info.Holder(); |
524 TestObject* impl = V8TestObject::toImpl(holder); | 535 TestObject* impl = V8TestObject::toImpl(holder); |
525 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); | 536 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); |
526 } | 537 } |
527 | 538 |
528 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 539 static void longLongAttributeAttributeGetterCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
529 { | 540 { |
530 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 541 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
531 TestObjectV8Internal::longLongAttributeAttributeGetter(info); | 542 TestObjectV8Internal::longLongAttributeAttributeGetter(info); |
532 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 543 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
533 } | 544 } |
534 | 545 |
535 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 546 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::FunctionCallbackInfo<v8::Value>& info) |
536 { | 547 { |
537 v8::Local<v8::Object> holder = info.Holder(); | 548 v8::Local<v8::Object> holder = info.Holder(); |
538 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib
ute", "TestObject", holder, info.GetIsolate()); | 549 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib
ute", "TestObject", holder, info.GetIsolate()); |
539 TestObject* impl = V8TestObject::toImpl(holder); | 550 TestObject* impl = V8TestObject::toImpl(holder); |
540 long long cppValue = toInt64(info.GetIsolate(), v8Value, NormalConversion, e
xceptionState); | 551 long long cppValue = toInt64(info.GetIsolate(), v8Value, NormalConversion, e
xceptionState); |
541 if (exceptionState.throwIfNeeded()) | 552 if (exceptionState.throwIfNeeded()) |
542 return; | 553 return; |
543 impl->setLongLongAttribute(cppValue); | 554 impl->setLongLongAttribute(cppValue); |
544 } | 555 } |
545 | 556 |
546 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 557 static void longLongAttributeAttributeSetterCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
547 { | 558 { |
| 559 v8::Local<v8::Value> v8Value = info[0]; |
548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 560 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
549 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info); | 561 TestObjectV8Internal::longLongAttributeAttributeSetter(v8Value, info); |
550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 562 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
551 } | 563 } |
552 | 564 |
553 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 565 static void octetAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
554 { | 566 { |
555 v8::Local<v8::Object> holder = info.Holder(); | 567 v8::Local<v8::Object> holder = info.Holder(); |
556 TestObject* impl = V8TestObject::toImpl(holder); | 568 TestObject* impl = V8TestObject::toImpl(holder); |
557 v8SetReturnValueUnsigned(info, impl->octetAttribute()); | 569 v8SetReturnValueUnsigned(info, impl->octetAttribute()); |
558 } | 570 } |
559 | 571 |
560 static void octetAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 572 static void octetAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
561 { | 573 { |
562 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 574 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
563 TestObjectV8Internal::octetAttributeAttributeGetter(info); | 575 TestObjectV8Internal::octetAttributeAttributeGetter(info); |
564 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 576 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
565 } | 577 } |
566 | 578 |
567 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 579 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::FunctionCallbackInfo<v8::Value>& info) |
568 { | 580 { |
569 v8::Local<v8::Object> holder = info.Holder(); | 581 v8::Local<v8::Object> holder = info.Holder(); |
570 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute
", "TestObject", holder, info.GetIsolate()); | 582 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute
", "TestObject", holder, info.GetIsolate()); |
571 TestObject* impl = V8TestObject::toImpl(holder); | 583 TestObject* impl = V8TestObject::toImpl(holder); |
572 unsigned cppValue = toUInt8(info.GetIsolate(), v8Value, NormalConversion, ex
ceptionState); | 584 unsigned cppValue = toUInt8(info.GetIsolate(), v8Value, NormalConversion, ex
ceptionState); |
573 if (exceptionState.throwIfNeeded()) | 585 if (exceptionState.throwIfNeeded()) |
574 return; | 586 return; |
575 impl->setOctetAttribute(cppValue); | 587 impl->setOctetAttribute(cppValue); |
576 } | 588 } |
577 | 589 |
578 static void octetAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 590 static void octetAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
579 { | 591 { |
| 592 v8::Local<v8::Value> v8Value = info[0]; |
580 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 593 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
581 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info); | 594 TestObjectV8Internal::octetAttributeAttributeSetter(v8Value, info); |
582 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 595 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
583 } | 596 } |
584 | 597 |
585 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 598 static void shortAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
586 { | 599 { |
587 v8::Local<v8::Object> holder = info.Holder(); | 600 v8::Local<v8::Object> holder = info.Holder(); |
588 TestObject* impl = V8TestObject::toImpl(holder); | 601 TestObject* impl = V8TestObject::toImpl(holder); |
589 v8SetReturnValueInt(info, impl->shortAttribute()); | 602 v8SetReturnValueInt(info, impl->shortAttribute()); |
590 } | 603 } |
591 | 604 |
592 static void shortAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 605 static void shortAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
593 { | 606 { |
594 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 607 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
595 TestObjectV8Internal::shortAttributeAttributeGetter(info); | 608 TestObjectV8Internal::shortAttributeAttributeGetter(info); |
596 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 609 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
597 } | 610 } |
598 | 611 |
599 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 612 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::FunctionCallbackInfo<v8::Value>& info) |
600 { | 613 { |
601 v8::Local<v8::Object> holder = info.Holder(); | 614 v8::Local<v8::Object> holder = info.Holder(); |
602 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); | 615 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); |
603 TestObject* impl = V8TestObject::toImpl(holder); | 616 TestObject* impl = V8TestObject::toImpl(holder); |
604 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 617 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
605 if (exceptionState.throwIfNeeded()) | 618 if (exceptionState.throwIfNeeded()) |
606 return; | 619 return; |
607 impl->setShortAttribute(cppValue); | 620 impl->setShortAttribute(cppValue); |
608 } | 621 } |
609 | 622 |
610 static void shortAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 623 static void shortAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
611 { | 624 { |
| 625 v8::Local<v8::Value> v8Value = info[0]; |
612 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 626 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
613 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); | 627 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); |
614 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 628 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
615 } | 629 } |
616 | 630 |
617 static void unrestrictedDoubleAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 631 static void unrestrictedDoubleAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
618 { | 632 { |
619 v8::Local<v8::Object> holder = info.Holder(); | 633 v8::Local<v8::Object> holder = info.Holder(); |
620 TestObject* impl = V8TestObject::toImpl(holder); | 634 TestObject* impl = V8TestObject::toImpl(holder); |
621 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); | 635 v8SetReturnValue(info, impl->unrestrictedDoubleAttribute()); |
622 } | 636 } |
623 | 637 |
624 static void unrestrictedDoubleAttributeAttributeGetterCallback(v8::Local<v8::Nam
e>, const v8::PropertyCallbackInfo<v8::Value>& info) | 638 static void unrestrictedDoubleAttributeAttributeGetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
625 { | 639 { |
626 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 640 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
627 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeGetter(info); | 641 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeGetter(info); |
628 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 642 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
629 } | 643 } |
630 | 644 |
631 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 645 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::FunctionCallbackInfo<v8::Value>& info) |
632 { | 646 { |
633 v8::Local<v8::Object> holder = info.Holder(); | 647 v8::Local<v8::Object> holder = info.Holder(); |
634 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleAttribute", "TestObject", holder, info.GetIsolate()); | 648 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleAttribute", "TestObject", holder, info.GetIsolate()); |
635 TestObject* impl = V8TestObject::toImpl(holder); | 649 TestObject* impl = V8TestObject::toImpl(holder); |
636 double cppValue = toDouble(info.GetIsolate(), v8Value, exceptionState); | 650 double cppValue = toDouble(info.GetIsolate(), v8Value, exceptionState); |
637 if (exceptionState.throwIfNeeded()) | 651 if (exceptionState.throwIfNeeded()) |
638 return; | 652 return; |
639 impl->setUnrestrictedDoubleAttribute(cppValue); | 653 impl->setUnrestrictedDoubleAttribute(cppValue); |
640 } | 654 } |
641 | 655 |
642 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Nam
e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 656 static void unrestrictedDoubleAttributeAttributeSetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
643 { | 657 { |
| 658 v8::Local<v8::Value> v8Value = info[0]; |
644 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 659 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
645 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeSetter(v8Value, in
fo); | 660 TestObjectV8Internal::unrestrictedDoubleAttributeAttributeSetter(v8Value, in
fo); |
646 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 661 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
647 } | 662 } |
648 | 663 |
649 static void unrestrictedFloatAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) | 664 static void unrestrictedFloatAttributeAttributeGetter(const v8::FunctionCallback
Info<v8::Value>& info) |
650 { | 665 { |
651 v8::Local<v8::Object> holder = info.Holder(); | 666 v8::Local<v8::Object> holder = info.Holder(); |
652 TestObject* impl = V8TestObject::toImpl(holder); | 667 TestObject* impl = V8TestObject::toImpl(holder); |
653 v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); | 668 v8SetReturnValue(info, impl->unrestrictedFloatAttribute()); |
654 } | 669 } |
655 | 670 |
656 static void unrestrictedFloatAttributeAttributeGetterCallback(v8::Local<v8::Name
>, const v8::PropertyCallbackInfo<v8::Value>& info) | 671 static void unrestrictedFloatAttributeAttributeGetterCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
657 { | 672 { |
658 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 673 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
659 TestObjectV8Internal::unrestrictedFloatAttributeAttributeGetter(info); | 674 TestObjectV8Internal::unrestrictedFloatAttributeAttributeGetter(info); |
660 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 675 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
661 } | 676 } |
662 | 677 |
663 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 678 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::FunctionCallbackInfo<v8::Value>& info) |
664 { | 679 { |
665 v8::Local<v8::Object> holder = info.Holder(); | 680 v8::Local<v8::Object> holder = info.Holder(); |
666 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl
oatAttribute", "TestObject", holder, info.GetIsolate()); | 681 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl
oatAttribute", "TestObject", holder, info.GetIsolate()); |
667 TestObject* impl = V8TestObject::toImpl(holder); | 682 TestObject* impl = V8TestObject::toImpl(holder); |
668 float cppValue = toFloat(info.GetIsolate(), v8Value, exceptionState); | 683 float cppValue = toFloat(info.GetIsolate(), v8Value, exceptionState); |
669 if (exceptionState.throwIfNeeded()) | 684 if (exceptionState.throwIfNeeded()) |
670 return; | 685 return; |
671 impl->setUnrestrictedFloatAttribute(cppValue); | 686 impl->setUnrestrictedFloatAttribute(cppValue); |
672 } | 687 } |
673 | 688 |
674 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Name
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 689 static void unrestrictedFloatAttributeAttributeSetterCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
675 { | 690 { |
| 691 v8::Local<v8::Value> v8Value = info[0]; |
676 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 692 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
677 TestObjectV8Internal::unrestrictedFloatAttributeAttributeSetter(v8Value, inf
o); | 693 TestObjectV8Internal::unrestrictedFloatAttributeAttributeSetter(v8Value, inf
o); |
678 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 694 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
679 } | 695 } |
680 | 696 |
681 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 697 static void unsignedLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<
v8::Value>& info) |
682 { | 698 { |
683 v8::Local<v8::Object> holder = info.Holder(); | 699 v8::Local<v8::Object> holder = info.Holder(); |
684 TestObject* impl = V8TestObject::toImpl(holder); | 700 TestObject* impl = V8TestObject::toImpl(holder); |
685 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); | 701 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); |
686 } | 702 } |
687 | 703 |
688 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 704 static void unsignedLongAttributeAttributeGetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
689 { | 705 { |
690 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 706 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
691 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info); | 707 TestObjectV8Internal::unsignedLongAttributeAttributeGetter(info); |
692 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 708 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
693 } | 709 } |
694 | 710 |
695 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 711 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
696 { | 712 { |
697 v8::Local<v8::Object> holder = info.Holder(); | 713 v8::Local<v8::Object> holder = info.Holder(); |
698 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt
tribute", "TestObject", holder, info.GetIsolate()); | 714 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt
tribute", "TestObject", holder, info.GetIsolate()); |
699 TestObject* impl = V8TestObject::toImpl(holder); | 715 TestObject* impl = V8TestObject::toImpl(holder); |
700 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, NormalConversion, e
xceptionState); | 716 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, NormalConversion, e
xceptionState); |
701 if (exceptionState.throwIfNeeded()) | 717 if (exceptionState.throwIfNeeded()) |
702 return; | 718 return; |
703 impl->setUnsignedLongAttribute(cppValue); | 719 impl->setUnsignedLongAttribute(cppValue); |
704 } | 720 } |
705 | 721 |
706 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 722 static void unsignedLongAttributeAttributeSetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
707 { | 723 { |
| 724 v8::Local<v8::Value> v8Value = info[0]; |
708 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 725 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
709 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info); | 726 TestObjectV8Internal::unsignedLongAttributeAttributeSetter(v8Value, info); |
710 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 727 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
711 } | 728 } |
712 | 729 |
713 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 730 static void unsignedLongLongAttributeAttributeGetter(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
714 { | 731 { |
715 v8::Local<v8::Object> holder = info.Holder(); | 732 v8::Local<v8::Object> holder = info.Holder(); |
716 TestObject* impl = V8TestObject::toImpl(holder); | 733 TestObject* impl = V8TestObject::toImpl(holder); |
717 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute()
)); | 734 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute()
)); |
718 } | 735 } |
719 | 736 |
720 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Name>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 737 static void unsignedLongLongAttributeAttributeGetterCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
721 { | 738 { |
722 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 739 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
723 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info); | 740 TestObjectV8Internal::unsignedLongLongAttributeAttributeGetter(info); |
724 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 741 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
725 } | 742 } |
726 | 743 |
727 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 744 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::FunctionCallbackInfo<v8::Value>& info) |
728 { | 745 { |
729 v8::Local<v8::Object> holder = info.Holder(); | 746 v8::Local<v8::Object> holder = info.Holder(); |
730 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 747 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo
ngAttribute", "TestObject", holder, info.GetIsolate()); |
731 TestObject* impl = V8TestObject::toImpl(holder); | 748 TestObject* impl = V8TestObject::toImpl(holder); |
732 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalCon
version, exceptionState); | 749 unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalCon
version, exceptionState); |
733 if (exceptionState.throwIfNeeded()) | 750 if (exceptionState.throwIfNeeded()) |
734 return; | 751 return; |
735 impl->setUnsignedLongLongAttribute(cppValue); | 752 impl->setUnsignedLongLongAttribute(cppValue); |
736 } | 753 } |
737 | 754 |
738 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Name>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 755 static void unsignedLongLongAttributeAttributeSetterCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
739 { | 756 { |
| 757 v8::Local<v8::Value> v8Value = info[0]; |
740 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 758 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
741 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info
); | 759 TestObjectV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value, info
); |
742 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 760 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
743 } | 761 } |
744 | 762 |
745 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 763 static void unsignedShortAttributeAttributeGetter(const v8::FunctionCallbackInfo
<v8::Value>& info) |
746 { | 764 { |
747 v8::Local<v8::Object> holder = info.Holder(); | 765 v8::Local<v8::Object> holder = info.Holder(); |
748 TestObject* impl = V8TestObject::toImpl(holder); | 766 TestObject* impl = V8TestObject::toImpl(holder); |
749 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); | 767 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); |
750 } | 768 } |
751 | 769 |
752 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::Name>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 770 static void unsignedShortAttributeAttributeGetterCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
753 { | 771 { |
754 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 772 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
755 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info); | 773 TestObjectV8Internal::unsignedShortAttributeAttributeGetter(info); |
756 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 774 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
757 } | 775 } |
758 | 776 |
759 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 777 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::FunctionCallbackInfo<v8::Value>& info) |
760 { | 778 { |
761 v8::Local<v8::Object> holder = info.Holder(); | 779 v8::Local<v8::Object> holder = info.Holder(); |
762 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA
ttribute", "TestObject", holder, info.GetIsolate()); | 780 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA
ttribute", "TestObject", holder, info.GetIsolate()); |
763 TestObject* impl = V8TestObject::toImpl(holder); | 781 TestObject* impl = V8TestObject::toImpl(holder); |
764 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, NormalConversion, e
xceptionState); | 782 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, NormalConversion, e
xceptionState); |
765 if (exceptionState.throwIfNeeded()) | 783 if (exceptionState.throwIfNeeded()) |
766 return; | 784 return; |
767 impl->setUnsignedShortAttribute(cppValue); | 785 impl->setUnsignedShortAttribute(cppValue); |
768 } | 786 } |
769 | 787 |
770 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::Name>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 788 static void unsignedShortAttributeAttributeSetterCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
771 { | 789 { |
| 790 v8::Local<v8::Value> v8Value = info[0]; |
772 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 791 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
773 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info); | 792 TestObjectV8Internal::unsignedShortAttributeAttributeSetter(v8Value, info); |
774 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 793 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
775 } | 794 } |
776 | 795 |
777 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 796 static void testInterfaceEmptyAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
778 { | 797 { |
779 v8::Local<v8::Object> holder = info.Holder(); | 798 v8::Local<v8::Object> holder = info.Holder(); |
780 TestObject* impl = V8TestObject::toImpl(holder); | 799 TestObject* impl = V8TestObject::toImpl(holder); |
781 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()),
impl); | 800 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()),
impl); |
782 } | 801 } |
783 | 802 |
784 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Nam
e>, const v8::PropertyCallbackInfo<v8::Value>& info) | 803 static void testInterfaceEmptyAttributeAttributeGetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
785 { | 804 { |
786 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 805 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
787 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeGetter(info); | 806 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeGetter(info); |
788 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 807 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
789 } | 808 } |
790 | 809 |
791 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 810 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::FunctionCallbackInfo<v8::Value>& info) |
792 { | 811 { |
793 v8::Local<v8::Object> holder = info.Holder(); | 812 v8::Local<v8::Object> holder = info.Holder(); |
794 TestObject* impl = V8TestObject::toImpl(holder); | 813 TestObject* impl = V8TestObject::toImpl(holder); |
795 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf
o.GetIsolate(), v8Value); | 814 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf
o.GetIsolate(), v8Value); |
796 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); | 815 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); |
797 } | 816 } |
798 | 817 |
799 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Nam
e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 818 static void testInterfaceEmptyAttributeAttributeSetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
800 { | 819 { |
| 820 v8::Local<v8::Value> v8Value = info[0]; |
801 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 821 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
802 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeSetter(v8Value, in
fo); | 822 TestObjectV8Internal::testInterfaceEmptyAttributeAttributeSetter(v8Value, in
fo); |
803 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 823 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
804 } | 824 } |
805 | 825 |
806 static void testObjectAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 826 static void testObjectAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8
::Value>& info) |
807 { | 827 { |
808 v8::Local<v8::Object> holder = info.Holder(); | 828 v8::Local<v8::Object> holder = info.Holder(); |
809 TestObject* impl = V8TestObject::toImpl(holder); | 829 TestObject* impl = V8TestObject::toImpl(holder); |
810 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectAttribute()), impl); | 830 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectAttribute()), impl); |
811 } | 831 } |
812 | 832 |
813 static void testObjectAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 833 static void testObjectAttributeAttributeGetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
814 { | 834 { |
815 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 835 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
816 TestObjectV8Internal::testObjectAttributeAttributeGetter(info); | 836 TestObjectV8Internal::testObjectAttributeAttributeGetter(info); |
817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 837 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
818 } | 838 } |
819 | 839 |
820 static void testObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 840 static void testObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::FunctionCallbackInfo<v8::Value>& info) |
821 { | 841 { |
822 v8::Local<v8::Object> holder = info.Holder(); | 842 v8::Local<v8::Object> holder = info.Holder(); |
823 TestObject* impl = V8TestObject::toImpl(holder); | 843 TestObject* impl = V8TestObject::toImpl(holder); |
824 TestObject* cppValue = V8TestObject::toImplWithTypeCheck(info.GetIsolate(),
v8Value); | 844 TestObject* cppValue = V8TestObject::toImplWithTypeCheck(info.GetIsolate(),
v8Value); |
825 impl->setTestObjectAttribute(WTF::getPtr(cppValue)); | 845 impl->setTestObjectAttribute(WTF::getPtr(cppValue)); |
826 } | 846 } |
827 | 847 |
828 static void testObjectAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 848 static void testObjectAttributeAttributeSetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
829 { | 849 { |
| 850 v8::Local<v8::Value> v8Value = info[0]; |
830 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 851 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
831 TestObjectV8Internal::testObjectAttributeAttributeSetter(v8Value, info); | 852 TestObjectV8Internal::testObjectAttributeAttributeSetter(v8Value, info); |
832 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 853 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
833 } | 854 } |
834 | 855 |
835 static void voidCallbackFunctionAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 856 static void voidCallbackFunctionAttributeAttributeGetter(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
836 { | 857 { |
837 v8::Local<v8::Object> holder = info.Holder(); | 858 v8::Local<v8::Object> holder = info.Holder(); |
838 TestObject* impl = V8TestObject::toImpl(holder); | 859 TestObject* impl = V8TestObject::toImpl(holder); |
839 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value()); | 860 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value()); |
840 } | 861 } |
841 | 862 |
842 static void voidCallbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::N
ame>, const v8::PropertyCallbackInfo<v8::Value>& info) | 863 static void voidCallbackFunctionAttributeAttributeGetterCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
843 { | 864 { |
844 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 865 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
845 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeGetter(info); | 866 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeGetter(info); |
846 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 867 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
847 } | 868 } |
848 | 869 |
849 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 870 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
850 { | 871 { |
851 v8::Local<v8::Object> holder = info.Holder(); | 872 v8::Local<v8::Object> holder = info.Holder(); |
852 TestObject* impl = V8TestObject::toImpl(holder); | 873 TestObject* impl = V8TestObject::toImpl(holder); |
853 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); | 874 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); |
854 impl->setVoidCallbackFunctionAttribute(cppValue); | 875 impl->setVoidCallbackFunctionAttribute(cppValue); |
855 } | 876 } |
856 | 877 |
857 static void voidCallbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::N
ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 878 static void voidCallbackFunctionAttributeAttributeSetterCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
858 { | 879 { |
| 880 v8::Local<v8::Value> v8Value = info[0]; |
859 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 881 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
860 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeSetter(v8Value,
info); | 882 TestObjectV8Internal::voidCallbackFunctionAttributeAttributeSetter(v8Value,
info); |
861 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 883 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
862 } | 884 } |
863 | 885 |
864 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) | 886 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8::
FunctionCallbackInfo<v8::Value>& info) |
865 { | 887 { |
866 v8::Local<v8::Object> holder = info.Holder(); | 888 v8::Local<v8::Object> holder = info.Holder(); |
867 TestObject* impl = V8TestObject::toImpl(holder); | 889 TestObject* impl = V8TestObject::toImpl(holder); |
868 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8
Value()); | 890 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8
Value()); |
869 } | 891 } |
870 | 892 |
871 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(v8
::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 893 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
872 { | 894 { |
873 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 895 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
874 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeGet
ter(info); | 896 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeGet
ter(info); |
875 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 897 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
876 } | 898 } |
877 | 899 |
878 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 900 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local<
v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
879 { | 901 { |
880 v8::Local<v8::Object> holder = info.Holder(); | 902 v8::Local<v8::Object> holder = info.Holder(); |
881 TestObject* impl = V8TestObject::toImpl(holder); | 903 TestObject* impl = V8TestObject::toImpl(holder); |
882 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); | 904 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); |
883 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue); | 905 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue); |
884 } | 906 } |
885 | 907 |
886 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(v8
::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) | 908 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
887 { | 909 { |
| 910 v8::Local<v8::Value> v8Value = info[0]; |
888 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 911 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
889 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSet
ter(v8Value, info); | 912 TestObjectV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttributeSet
ter(v8Value, info); |
890 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 913 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
891 } | 914 } |
892 | 915 |
893 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 916 static void cssAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value
>& info) |
894 { | 917 { |
895 v8::Local<v8::Object> holder = info.Holder(); | 918 v8::Local<v8::Object> holder = info.Holder(); |
896 TestObject* impl = V8TestObject::toImpl(holder); | 919 TestObject* impl = V8TestObject::toImpl(holder); |
897 v8SetReturnValueInt(info, impl->cssAttribute()); | 920 v8SetReturnValueInt(info, impl->cssAttribute()); |
898 } | 921 } |
899 | 922 |
900 static void cssAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::P
ropertyCallbackInfo<v8::Value>& info) | 923 static void cssAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
901 { | 924 { |
902 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 925 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
903 TestObjectV8Internal::cssAttributeAttributeGetter(info); | 926 TestObjectV8Internal::cssAttributeAttributeGetter(info); |
904 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
905 } | 928 } |
906 | 929 |
907 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 930 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
FunctionCallbackInfo<v8::Value>& info) |
908 { | 931 { |
909 v8::Local<v8::Object> holder = info.Holder(); | 932 v8::Local<v8::Object> holder = info.Holder(); |
910 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute",
"TestObject", holder, info.GetIsolate()); | 933 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute",
"TestObject", holder, info.GetIsolate()); |
911 TestObject* impl = V8TestObject::toImpl(holder); | 934 TestObject* impl = V8TestObject::toImpl(holder); |
912 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 935 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
913 if (exceptionState.throwIfNeeded()) | 936 if (exceptionState.throwIfNeeded()) |
914 return; | 937 return; |
915 impl->setCSSAttribute(cppValue); | 938 impl->setCSSAttribute(cppValue); |
916 } | 939 } |
917 | 940 |
918 static void cssAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 941 static void cssAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
919 { | 942 { |
| 943 v8::Local<v8::Value> v8Value = info[0]; |
920 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 944 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
921 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info); | 945 TestObjectV8Internal::cssAttributeAttributeSetter(v8Value, info); |
922 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 946 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
923 } | 947 } |
924 | 948 |
925 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 949 static void imeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value
>& info) |
926 { | 950 { |
927 v8::Local<v8::Object> holder = info.Holder(); | 951 v8::Local<v8::Object> holder = info.Holder(); |
928 TestObject* impl = V8TestObject::toImpl(holder); | 952 TestObject* impl = V8TestObject::toImpl(holder); |
929 v8SetReturnValueInt(info, impl->imeAttribute()); | 953 v8SetReturnValueInt(info, impl->imeAttribute()); |
930 } | 954 } |
931 | 955 |
932 static void imeAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::P
ropertyCallbackInfo<v8::Value>& info) | 956 static void imeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
933 { | 957 { |
934 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 958 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
935 TestObjectV8Internal::imeAttributeAttributeGetter(info); | 959 TestObjectV8Internal::imeAttributeAttributeGetter(info); |
936 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 960 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
937 } | 961 } |
938 | 962 |
939 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 963 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
FunctionCallbackInfo<v8::Value>& info) |
940 { | 964 { |
941 v8::Local<v8::Object> holder = info.Holder(); | 965 v8::Local<v8::Object> holder = info.Holder(); |
942 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute",
"TestObject", holder, info.GetIsolate()); | 966 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute",
"TestObject", holder, info.GetIsolate()); |
943 TestObject* impl = V8TestObject::toImpl(holder); | 967 TestObject* impl = V8TestObject::toImpl(holder); |
944 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 968 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
945 if (exceptionState.throwIfNeeded()) | 969 if (exceptionState.throwIfNeeded()) |
946 return; | 970 return; |
947 impl->setIMEAttribute(cppValue); | 971 impl->setIMEAttribute(cppValue); |
948 } | 972 } |
949 | 973 |
950 static void imeAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 974 static void imeAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
951 { | 975 { |
| 976 v8::Local<v8::Value> v8Value = info[0]; |
952 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 977 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
953 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info); | 978 TestObjectV8Internal::imeAttributeAttributeSetter(v8Value, info); |
954 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 979 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
955 } | 980 } |
956 | 981 |
957 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 982 static void svgAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value
>& info) |
958 { | 983 { |
959 v8::Local<v8::Object> holder = info.Holder(); | 984 v8::Local<v8::Object> holder = info.Holder(); |
960 TestObject* impl = V8TestObject::toImpl(holder); | 985 TestObject* impl = V8TestObject::toImpl(holder); |
961 v8SetReturnValueInt(info, impl->svgAttribute()); | 986 v8SetReturnValueInt(info, impl->svgAttribute()); |
962 } | 987 } |
963 | 988 |
964 static void svgAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::P
ropertyCallbackInfo<v8::Value>& info) | 989 static void svgAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
965 { | 990 { |
966 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 991 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
967 TestObjectV8Internal::svgAttributeAttributeGetter(info); | 992 TestObjectV8Internal::svgAttributeAttributeGetter(info); |
968 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 993 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
969 } | 994 } |
970 | 995 |
971 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 996 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
FunctionCallbackInfo<v8::Value>& info) |
972 { | 997 { |
973 v8::Local<v8::Object> holder = info.Holder(); | 998 v8::Local<v8::Object> holder = info.Holder(); |
974 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute",
"TestObject", holder, info.GetIsolate()); | 999 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute",
"TestObject", holder, info.GetIsolate()); |
975 TestObject* impl = V8TestObject::toImpl(holder); | 1000 TestObject* impl = V8TestObject::toImpl(holder); |
976 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 1001 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
977 if (exceptionState.throwIfNeeded()) | 1002 if (exceptionState.throwIfNeeded()) |
978 return; | 1003 return; |
979 impl->setSVGAttribute(cppValue); | 1004 impl->setSVGAttribute(cppValue); |
980 } | 1005 } |
981 | 1006 |
982 static void svgAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1007 static void svgAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
983 { | 1008 { |
| 1009 v8::Local<v8::Value> v8Value = info[0]; |
984 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1010 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
985 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info); | 1011 TestObjectV8Internal::svgAttributeAttributeSetter(v8Value, info); |
986 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1012 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
987 } | 1013 } |
988 | 1014 |
989 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 1015 static void xmlAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value
>& info) |
990 { | 1016 { |
991 v8::Local<v8::Object> holder = info.Holder(); | 1017 v8::Local<v8::Object> holder = info.Holder(); |
992 TestObject* impl = V8TestObject::toImpl(holder); | 1018 TestObject* impl = V8TestObject::toImpl(holder); |
993 v8SetReturnValueInt(info, impl->xmlAttribute()); | 1019 v8SetReturnValueInt(info, impl->xmlAttribute()); |
994 } | 1020 } |
995 | 1021 |
996 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::P
ropertyCallbackInfo<v8::Value>& info) | 1022 static void xmlAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
997 { | 1023 { |
998 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1024 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
999 TestObjectV8Internal::xmlAttributeAttributeGetter(info); | 1025 TestObjectV8Internal::xmlAttributeAttributeGetter(info); |
1000 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1026 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1001 } | 1027 } |
1002 | 1028 |
1003 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 1029 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
FunctionCallbackInfo<v8::Value>& info) |
1004 { | 1030 { |
1005 v8::Local<v8::Object> holder = info.Holder(); | 1031 v8::Local<v8::Object> holder = info.Holder(); |
1006 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute",
"TestObject", holder, info.GetIsolate()); | 1032 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute",
"TestObject", holder, info.GetIsolate()); |
1007 TestObject* impl = V8TestObject::toImpl(holder); | 1033 TestObject* impl = V8TestObject::toImpl(holder); |
1008 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 1034 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
1009 if (exceptionState.throwIfNeeded()) | 1035 if (exceptionState.throwIfNeeded()) |
1010 return; | 1036 return; |
1011 impl->setXMLAttribute(cppValue); | 1037 impl->setXMLAttribute(cppValue); |
1012 } | 1038 } |
1013 | 1039 |
1014 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1040 static void xmlAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
1015 { | 1041 { |
| 1042 v8::Local<v8::Value> v8Value = info[0]; |
1016 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1043 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1017 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info); | 1044 TestObjectV8Internal::xmlAttributeAttributeSetter(v8Value, info); |
1018 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1045 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1019 } | 1046 } |
1020 | 1047 |
1021 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1048 static void nodeFilterAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8
::Value>& info) |
1022 { | 1049 { |
1023 v8::Local<v8::Object> holder = info.Holder(); | 1050 v8::Local<v8::Object> holder = info.Holder(); |
1024 TestObject* impl = V8TestObject::toImpl(holder); | 1051 TestObject* impl = V8TestObject::toImpl(holder); |
1025 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl); | 1052 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl); |
1026 } | 1053 } |
1027 | 1054 |
1028 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 1055 static void nodeFilterAttributeAttributeGetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
1029 { | 1056 { |
1030 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1057 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1031 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info); | 1058 TestObjectV8Internal::nodeFilterAttributeAttributeGetter(info); |
1032 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1059 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1033 } | 1060 } |
1034 | 1061 |
1035 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1062 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::FunctionCallbackInfo<v8::Value>& info) |
1036 { | 1063 { |
1037 v8::Local<v8::Object> holder = info.Holder(); | 1064 v8::Local<v8::Object> holder = info.Holder(); |
1038 TestObject* impl = V8TestObject::toImpl(holder); | 1065 TestObject* impl = V8TestObject::toImpl(holder); |
1039 RefPtrWillBeRawPtr<NodeFilter> cppValue = toNodeFilter(v8Value, info.Holder(
), ScriptState::current(info.GetIsolate())); | 1066 RefPtrWillBeRawPtr<NodeFilter> cppValue = toNodeFilter(v8Value, info.Holder(
), ScriptState::current(info.GetIsolate())); |
1040 impl->setNodeFilterAttribute(WTF::getPtr(cppValue)); | 1067 impl->setNodeFilterAttribute(WTF::getPtr(cppValue)); |
1041 } | 1068 } |
1042 | 1069 |
1043 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1070 static void nodeFilterAttributeAttributeSetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
1044 { | 1071 { |
| 1072 v8::Local<v8::Value> v8Value = info[0]; |
1045 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1073 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1046 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info); | 1074 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info); |
1047 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1075 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1048 } | 1076 } |
1049 | 1077 |
1050 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 1078 static void serializedScriptValueAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) |
1051 { | 1079 { |
1052 v8::Local<v8::Object> holder = info.Holder(); | 1080 v8::Local<v8::Object> holder = info.Holder(); |
1053 TestObject* impl = V8TestObject::toImpl(holder); | 1081 TestObject* impl = V8TestObject::toImpl(holder); |
1054 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial
izedScriptValueAttribute()->deserialize() : v8::Local<v8::Value>(v8::Null(info.G
etIsolate()))); | 1082 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial
izedScriptValueAttribute()->deserialize() : v8::Local<v8::Value>(v8::Null(info.G
etIsolate()))); |
1055 } | 1083 } |
1056 | 1084 |
1057 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8::
Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1085 static void serializedScriptValueAttributeAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
1058 { | 1086 { |
1059 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1087 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1060 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); | 1088 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); |
1061 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1089 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1062 } | 1090 } |
1063 | 1091 |
1064 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 1092 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
1065 { | 1093 { |
1066 v8::Local<v8::Object> holder = info.Holder(); | 1094 v8::Local<v8::Object> holder = info.Holder(); |
1067 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri
ptValueAttribute", "TestObject", holder, info.GetIsolate()); | 1095 ExceptionState exceptionState(ExceptionState::SetterContext, "serializedScri
ptValueAttribute", "TestObject", holder, info.GetIsolate()); |
1068 TestObject* impl = V8TestObject::toImpl(holder); | 1096 TestObject* impl = V8TestObject::toImpl(holder); |
1069 RefPtr<SerializedScriptValue> cppValue = SerializedScriptValueFactory::insta
nce().create(v8Value, 0, 0, exceptionState, info.GetIsolate()); | 1097 RefPtr<SerializedScriptValue> cppValue = SerializedScriptValueFactory::insta
nce().create(v8Value, 0, 0, exceptionState, info.GetIsolate()); |
1070 if (exceptionState.throwIfNeeded()) | 1098 if (exceptionState.throwIfNeeded()) |
1071 return; | 1099 return; |
1072 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); | 1100 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); |
1073 } | 1101 } |
1074 | 1102 |
1075 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8::
Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1103 static void serializedScriptValueAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
1076 { | 1104 { |
| 1105 v8::Local<v8::Value> v8Value = info[0]; |
1077 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1106 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1078 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value,
info); | 1107 TestObjectV8Internal::serializedScriptValueAttributeAttributeSetter(v8Value,
info); |
1079 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1108 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1080 } | 1109 } |
1081 | 1110 |
1082 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value
>& info) | 1111 static void anyAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Value
>& info) |
1083 { | 1112 { |
1084 v8::Local<v8::Object> holder = info.Holder(); | 1113 v8::Local<v8::Object> holder = info.Holder(); |
1085 TestObject* impl = V8TestObject::toImpl(holder); | 1114 TestObject* impl = V8TestObject::toImpl(holder); |
1086 v8SetReturnValue(info, impl->anyAttribute().v8Value()); | 1115 v8SetReturnValue(info, impl->anyAttribute().v8Value()); |
1087 } | 1116 } |
1088 | 1117 |
1089 static void anyAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::P
ropertyCallbackInfo<v8::Value>& info) | 1118 static void anyAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
1090 { | 1119 { |
1091 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1120 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1092 TestObjectV8Internal::anyAttributeAttributeGetter(info); | 1121 TestObjectV8Internal::anyAttributeAttributeGetter(info); |
1093 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1094 } | 1123 } |
1095 | 1124 |
1096 static void anyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
PropertyCallbackInfo<void>& info) | 1125 static void anyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::
FunctionCallbackInfo<v8::Value>& info) |
1097 { | 1126 { |
1098 v8::Local<v8::Object> holder = info.Holder(); | 1127 v8::Local<v8::Object> holder = info.Holder(); |
1099 TestObject* impl = V8TestObject::toImpl(holder); | 1128 TestObject* impl = V8TestObject::toImpl(holder); |
1100 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); | 1129 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); |
1101 impl->setAnyAttribute(cppValue); | 1130 impl->setAnyAttribute(cppValue); |
1102 } | 1131 } |
1103 | 1132 |
1104 static void anyAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1133 static void anyAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
1105 { | 1134 { |
| 1135 v8::Local<v8::Value> v8Value = info[0]; |
1106 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1136 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1107 TestObjectV8Internal::anyAttributeAttributeSetter(v8Value, info); | 1137 TestObjectV8Internal::anyAttributeAttributeSetter(v8Value, info); |
1108 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1138 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1109 } | 1139 } |
1110 | 1140 |
1111 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 1141 static void promiseAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
1112 { | 1142 { |
1113 v8::Local<v8::Object> holder = info.Holder(); | 1143 v8::Local<v8::Object> holder = info.Holder(); |
1114 TestObject* impl = V8TestObject::toImpl(holder); | 1144 TestObject* impl = V8TestObject::toImpl(holder); |
1115 v8SetReturnValue(info, impl->promiseAttribute().v8Value()); | 1145 v8SetReturnValue(info, impl->promiseAttribute().v8Value()); |
1116 } | 1146 } |
1117 | 1147 |
1118 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 1148 static void promiseAttributeAttributeGetterCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
1119 { | 1149 { |
1120 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1150 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1121 TestObjectV8Internal::promiseAttributeAttributeGetter(info); | 1151 TestObjectV8Internal::promiseAttributeAttributeGetter(info); |
1122 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1152 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1123 } | 1153 } |
1124 | 1154 |
1125 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 1155 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::FunctionCallbackInfo<v8::Value>& info) |
1126 { | 1156 { |
1127 v8::Local<v8::Object> holder = info.Holder(); | 1157 v8::Local<v8::Object> holder = info.Holder(); |
1128 TestObject* impl = V8TestObject::toImpl(holder); | 1158 TestObject* impl = V8TestObject::toImpl(holder); |
1129 ScriptPromise cppValue = ScriptPromise::cast(ScriptState::current(info.GetIs
olate()), v8Value); | 1159 ScriptPromise cppValue = ScriptPromise::cast(ScriptState::current(info.GetIs
olate()), v8Value); |
1130 impl->setPromiseAttribute(cppValue); | 1160 impl->setPromiseAttribute(cppValue); |
1131 } | 1161 } |
1132 | 1162 |
1133 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1163 static void promiseAttributeAttributeSetterCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
1134 { | 1164 { |
| 1165 v8::Local<v8::Value> v8Value = info[0]; |
1135 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1166 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1136 TestObjectV8Internal::promiseAttributeAttributeSetter(v8Value, info); | 1167 TestObjectV8Internal::promiseAttributeAttributeSetter(v8Value, info); |
1137 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1168 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1138 } | 1169 } |
1139 | 1170 |
1140 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 1171 static void windowAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
1141 { | 1172 { |
1142 v8::Local<v8::Object> holder = info.Holder(); | 1173 v8::Local<v8::Object> holder = info.Holder(); |
1143 TestObject* impl = V8TestObject::toImpl(holder); | 1174 TestObject* impl = V8TestObject::toImpl(holder); |
1144 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl); | 1175 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl); |
1145 } | 1176 } |
1146 | 1177 |
1147 static void windowAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 1178 static void windowAttributeAttributeGetterCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
1148 { | 1179 { |
1149 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1180 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1150 TestObjectV8Internal::windowAttributeAttributeGetter(info); | 1181 TestObjectV8Internal::windowAttributeAttributeGetter(info); |
1151 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1182 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1152 } | 1183 } |
1153 | 1184 |
1154 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 1185 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::FunctionCallbackInfo<v8::Value>& info) |
1155 { | 1186 { |
1156 v8::Local<v8::Object> holder = info.Holder(); | 1187 v8::Local<v8::Object> holder = info.Holder(); |
1157 TestObject* impl = V8TestObject::toImpl(holder); | 1188 TestObject* impl = V8TestObject::toImpl(holder); |
1158 DOMWindow* cppValue = toDOMWindow(info.GetIsolate(), v8Value); | 1189 DOMWindow* cppValue = toDOMWindow(info.GetIsolate(), v8Value); |
1159 impl->setWindowAttribute(WTF::getPtr(cppValue)); | 1190 impl->setWindowAttribute(WTF::getPtr(cppValue)); |
1160 } | 1191 } |
1161 | 1192 |
1162 static void windowAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1193 static void windowAttributeAttributeSetterCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
1163 { | 1194 { |
| 1195 v8::Local<v8::Value> v8Value = info[0]; |
1164 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1196 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1165 TestObjectV8Internal::windowAttributeAttributeSetter(v8Value, info); | 1197 TestObjectV8Internal::windowAttributeAttributeSetter(v8Value, info); |
1166 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1198 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1167 } | 1199 } |
1168 | 1200 |
1169 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 1201 static void documentAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::
Value>& info) |
1170 { | 1202 { |
1171 v8::Local<v8::Object> holder = info.Holder(); | 1203 v8::Local<v8::Object> holder = info.Holder(); |
1172 TestObject* impl = V8TestObject::toImpl(holder); | 1204 TestObject* impl = V8TestObject::toImpl(holder); |
1173 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl); | 1205 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl); |
1174 } | 1206 } |
1175 | 1207 |
1176 static void documentAttributeAttributeGetterCallback(v8::Local<v8::Name>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 1208 static void documentAttributeAttributeGetterCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
1177 { | 1209 { |
1178 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1210 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1179 TestObjectV8Internal::documentAttributeAttributeGetter(info); | 1211 TestObjectV8Internal::documentAttributeAttributeGetter(info); |
1180 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1212 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1181 } | 1213 } |
1182 | 1214 |
1183 static void documentAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 1215 static void documentAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::FunctionCallbackInfo<v8::Value>& info) |
1184 { | 1216 { |
1185 v8::Local<v8::Object> holder = info.Holder(); | 1217 v8::Local<v8::Object> holder = info.Holder(); |
1186 TestObject* impl = V8TestObject::toImpl(holder); | 1218 TestObject* impl = V8TestObject::toImpl(holder); |
1187 Document* cppValue = V8Document::toImplWithTypeCheck(info.GetIsolate(), v8Va
lue); | 1219 Document* cppValue = V8Document::toImplWithTypeCheck(info.GetIsolate(), v8Va
lue); |
1188 impl->setDocumentAttribute(WTF::getPtr(cppValue)); | 1220 impl->setDocumentAttribute(WTF::getPtr(cppValue)); |
1189 } | 1221 } |
1190 | 1222 |
1191 static void documentAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1223 static void documentAttributeAttributeSetterCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
1192 { | 1224 { |
| 1225 v8::Local<v8::Value> v8Value = info[0]; |
1193 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1226 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1194 TestObjectV8Internal::documentAttributeAttributeSetter(v8Value, info); | 1227 TestObjectV8Internal::documentAttributeAttributeSetter(v8Value, info); |
1195 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1228 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1196 } | 1229 } |
1197 | 1230 |
1198 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 1231 static void documentFragmentAttributeAttributeGetter(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
1199 { | 1232 { |
1200 v8::Local<v8::Object> holder = info.Holder(); | 1233 v8::Local<v8::Object> holder = info.Holder(); |
1201 TestObject* impl = V8TestObject::toImpl(holder); | 1234 TestObject* impl = V8TestObject::toImpl(holder); |
1202 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i
mpl); | 1235 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i
mpl); |
1203 } | 1236 } |
1204 | 1237 |
1205 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Name>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 1238 static void documentFragmentAttributeAttributeGetterCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
1206 { | 1239 { |
1207 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1240 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1208 TestObjectV8Internal::documentFragmentAttributeAttributeGetter(info); | 1241 TestObjectV8Internal::documentFragmentAttributeAttributeGetter(info); |
1209 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1242 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1210 } | 1243 } |
1211 | 1244 |
1212 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 1245 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::FunctionCallbackInfo<v8::Value>& info) |
1213 { | 1246 { |
1214 v8::Local<v8::Object> holder = info.Holder(); | 1247 v8::Local<v8::Object> holder = info.Holder(); |
1215 TestObject* impl = V8TestObject::toImpl(holder); | 1248 TestObject* impl = V8TestObject::toImpl(holder); |
1216 DocumentFragment* cppValue = V8DocumentFragment::toImplWithTypeCheck(info.Ge
tIsolate(), v8Value); | 1249 DocumentFragment* cppValue = V8DocumentFragment::toImplWithTypeCheck(info.Ge
tIsolate(), v8Value); |
1217 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); | 1250 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); |
1218 } | 1251 } |
1219 | 1252 |
1220 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Name>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1253 static void documentFragmentAttributeAttributeSetterCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
1221 { | 1254 { |
| 1255 v8::Local<v8::Value> v8Value = info[0]; |
1222 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1256 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1223 TestObjectV8Internal::documentFragmentAttributeAttributeSetter(v8Value, info
); | 1257 TestObjectV8Internal::documentFragmentAttributeAttributeSetter(v8Value, info
); |
1224 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1258 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1225 } | 1259 } |
1226 | 1260 |
1227 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1261 static void documentTypeAttributeAttributeGetter(const v8::FunctionCallbackInfo<
v8::Value>& info) |
1228 { | 1262 { |
1229 v8::Local<v8::Object> holder = info.Holder(); | 1263 v8::Local<v8::Object> holder = info.Holder(); |
1230 TestObject* impl = V8TestObject::toImpl(holder); | 1264 TestObject* impl = V8TestObject::toImpl(holder); |
1231 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl)
; | 1265 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl)
; |
1232 } | 1266 } |
1233 | 1267 |
1234 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::Name>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1268 static void documentTypeAttributeAttributeGetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
1235 { | 1269 { |
1236 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1270 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1237 TestObjectV8Internal::documentTypeAttributeAttributeGetter(info); | 1271 TestObjectV8Internal::documentTypeAttributeAttributeGetter(info); |
1238 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1272 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1239 } | 1273 } |
1240 | 1274 |
1241 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1275 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
1242 { | 1276 { |
1243 v8::Local<v8::Object> holder = info.Holder(); | 1277 v8::Local<v8::Object> holder = info.Holder(); |
1244 TestObject* impl = V8TestObject::toImpl(holder); | 1278 TestObject* impl = V8TestObject::toImpl(holder); |
1245 DocumentType* cppValue = V8DocumentType::toImplWithTypeCheck(info.GetIsolate
(), v8Value); | 1279 DocumentType* cppValue = V8DocumentType::toImplWithTypeCheck(info.GetIsolate
(), v8Value); |
1246 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue)); | 1280 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue)); |
1247 } | 1281 } |
1248 | 1282 |
1249 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1283 static void documentTypeAttributeAttributeSetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
1250 { | 1284 { |
| 1285 v8::Local<v8::Value> v8Value = info[0]; |
1251 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1286 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1252 TestObjectV8Internal::documentTypeAttributeAttributeSetter(v8Value, info); | 1287 TestObjectV8Internal::documentTypeAttributeAttributeSetter(v8Value, info); |
1253 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1288 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1254 } | 1289 } |
1255 | 1290 |
1256 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 1291 static void elementAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
1257 { | 1292 { |
1258 v8::Local<v8::Object> holder = info.Holder(); | 1293 v8::Local<v8::Object> holder = info.Holder(); |
1259 TestObject* impl = V8TestObject::toImpl(holder); | 1294 TestObject* impl = V8TestObject::toImpl(holder); |
1260 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl); | 1295 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl); |
1261 } | 1296 } |
1262 | 1297 |
1263 static void elementAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v
8::PropertyCallbackInfo<v8::Value>& info) | 1298 static void elementAttributeAttributeGetterCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
1264 { | 1299 { |
1265 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1300 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1266 TestObjectV8Internal::elementAttributeAttributeGetter(info); | 1301 TestObjectV8Internal::elementAttributeAttributeGetter(info); |
1267 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1302 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1268 } | 1303 } |
1269 | 1304 |
1270 static void elementAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 1305 static void elementAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::FunctionCallbackInfo<v8::Value>& info) |
1271 { | 1306 { |
1272 v8::Local<v8::Object> holder = info.Holder(); | 1307 v8::Local<v8::Object> holder = info.Holder(); |
1273 TestObject* impl = V8TestObject::toImpl(holder); | 1308 TestObject* impl = V8TestObject::toImpl(holder); |
1274 Element* cppValue = V8Element::toImplWithTypeCheck(info.GetIsolate(), v8Valu
e); | 1309 Element* cppValue = V8Element::toImplWithTypeCheck(info.GetIsolate(), v8Valu
e); |
1275 impl->setElementAttribute(WTF::getPtr(cppValue)); | 1310 impl->setElementAttribute(WTF::getPtr(cppValue)); |
1276 } | 1311 } |
1277 | 1312 |
1278 static void elementAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1313 static void elementAttributeAttributeSetterCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
1279 { | 1314 { |
| 1315 v8::Local<v8::Value> v8Value = info[0]; |
1280 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1316 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1281 TestObjectV8Internal::elementAttributeAttributeSetter(v8Value, info); | 1317 TestObjectV8Internal::elementAttributeAttributeSetter(v8Value, info); |
1282 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1318 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1283 } | 1319 } |
1284 | 1320 |
1285 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 1321 static void nodeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
1286 { | 1322 { |
1287 v8::Local<v8::Object> holder = info.Holder(); | 1323 v8::Local<v8::Object> holder = info.Holder(); |
1288 TestObject* impl = V8TestObject::toImpl(holder); | 1324 TestObject* impl = V8TestObject::toImpl(holder); |
1289 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl); | 1325 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl); |
1290 } | 1326 } |
1291 | 1327 |
1292 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::
PropertyCallbackInfo<v8::Value>& info) | 1328 static void nodeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
1293 { | 1329 { |
1294 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1330 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1295 TestObjectV8Internal::nodeAttributeAttributeGetter(info); | 1331 TestObjectV8Internal::nodeAttributeAttributeGetter(info); |
1296 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1332 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1297 } | 1333 } |
1298 | 1334 |
1299 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 1335 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:FunctionCallbackInfo<v8::Value>& info) |
1300 { | 1336 { |
1301 v8::Local<v8::Object> holder = info.Holder(); | 1337 v8::Local<v8::Object> holder = info.Holder(); |
1302 TestObject* impl = V8TestObject::toImpl(holder); | 1338 TestObject* impl = V8TestObject::toImpl(holder); |
1303 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); | 1339 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); |
1304 impl->setNodeAttribute(WTF::getPtr(cppValue)); | 1340 impl->setNodeAttribute(WTF::getPtr(cppValue)); |
1305 } | 1341 } |
1306 | 1342 |
1307 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1343 static void nodeAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
1308 { | 1344 { |
| 1345 v8::Local<v8::Value> v8Value = info[0]; |
1309 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1346 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1310 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info); | 1347 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info); |
1311 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1348 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1312 } | 1349 } |
1313 | 1350 |
1314 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1351 static void shadowRootAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8
::Value>& info) |
1315 { | 1352 { |
1316 v8::Local<v8::Object> holder = info.Holder(); | 1353 v8::Local<v8::Object> holder = info.Holder(); |
1317 TestObject* impl = V8TestObject::toImpl(holder); | 1354 TestObject* impl = V8TestObject::toImpl(holder); |
1318 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl); | 1355 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl); |
1319 } | 1356 } |
1320 | 1357 |
1321 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 1358 static void shadowRootAttributeAttributeGetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
1322 { | 1359 { |
1323 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1360 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1324 TestObjectV8Internal::shadowRootAttributeAttributeGetter(info); | 1361 TestObjectV8Internal::shadowRootAttributeAttributeGetter(info); |
1325 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1362 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1326 } | 1363 } |
1327 | 1364 |
1328 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1365 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::FunctionCallbackInfo<v8::Value>& info) |
1329 { | 1366 { |
1330 v8::Local<v8::Object> holder = info.Holder(); | 1367 v8::Local<v8::Object> holder = info.Holder(); |
1331 TestObject* impl = V8TestObject::toImpl(holder); | 1368 TestObject* impl = V8TestObject::toImpl(holder); |
1332 ShadowRoot* cppValue = V8ShadowRoot::toImplWithTypeCheck(info.GetIsolate(),
v8Value); | 1369 ShadowRoot* cppValue = V8ShadowRoot::toImplWithTypeCheck(info.GetIsolate(),
v8Value); |
1333 impl->setShadowRootAttribute(WTF::getPtr(cppValue)); | 1370 impl->setShadowRootAttribute(WTF::getPtr(cppValue)); |
1334 } | 1371 } |
1335 | 1372 |
1336 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1373 static void shadowRootAttributeAttributeSetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
1337 { | 1374 { |
| 1375 v8::Local<v8::Value> v8Value = info[0]; |
1338 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1376 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1339 TestObjectV8Internal::shadowRootAttributeAttributeSetter(v8Value, info); | 1377 TestObjectV8Internal::shadowRootAttributeAttributeSetter(v8Value, info); |
1340 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1378 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1341 } | 1379 } |
1342 | 1380 |
1343 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 1381 static void arrayBufferAttributeAttributeGetter(const v8::FunctionCallbackInfo<v
8::Value>& info) |
1344 { | 1382 { |
1345 v8::Local<v8::Object> holder = info.Holder(); | 1383 v8::Local<v8::Object> holder = info.Holder(); |
1346 TestObject* impl = V8TestObject::toImpl(holder); | 1384 TestObject* impl = V8TestObject::toImpl(holder); |
1347 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl); | 1385 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl); |
1348 } | 1386 } |
1349 | 1387 |
1350 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::Name>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 1388 static void arrayBufferAttributeAttributeGetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
1351 { | 1389 { |
1352 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1390 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1353 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info); | 1391 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info); |
1354 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1392 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1355 } | 1393 } |
1356 | 1394 |
1357 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 1395 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
1358 { | 1396 { |
1359 v8::Local<v8::Object> holder = info.Holder(); | 1397 v8::Local<v8::Object> holder = info.Holder(); |
1360 TestObject* impl = V8TestObject::toImpl(holder); | 1398 TestObject* impl = V8TestObject::toImpl(holder); |
1361 TestArrayBuffer* cppValue = v8Value->IsArrayBuffer() ? V8ArrayBuffer::toImpl
(v8::Local<v8::ArrayBuffer>::Cast(v8Value)) : 0; | 1399 TestArrayBuffer* cppValue = v8Value->IsArrayBuffer() ? V8ArrayBuffer::toImpl
(v8::Local<v8::ArrayBuffer>::Cast(v8Value)) : 0; |
1362 impl->setArrayBufferAttribute(WTF::getPtr(cppValue)); | 1400 impl->setArrayBufferAttribute(WTF::getPtr(cppValue)); |
1363 } | 1401 } |
1364 | 1402 |
1365 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1403 static void arrayBufferAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
1366 { | 1404 { |
| 1405 v8::Local<v8::Value> v8Value = info[0]; |
1367 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1406 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1368 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info); | 1407 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info); |
1369 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1408 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1370 } | 1409 } |
1371 | 1410 |
1372 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1411 static void float32ArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<
v8::Value>& info) |
1373 { | 1412 { |
1374 v8::Local<v8::Object> holder = info.Holder(); | 1413 v8::Local<v8::Object> holder = info.Holder(); |
1375 TestObject* impl = V8TestObject::toImpl(holder); | 1414 TestObject* impl = V8TestObject::toImpl(holder); |
1376 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl)
; | 1415 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl)
; |
1377 } | 1416 } |
1378 | 1417 |
1379 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::Name>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1418 static void float32ArrayAttributeAttributeGetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
1380 { | 1419 { |
1381 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1420 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1382 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info); | 1421 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info); |
1383 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1422 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1384 } | 1423 } |
1385 | 1424 |
1386 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1425 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
1387 { | 1426 { |
1388 v8::Local<v8::Object> holder = info.Holder(); | 1427 v8::Local<v8::Object> holder = info.Holder(); |
1389 TestObject* impl = V8TestObject::toImpl(holder); | 1428 TestObject* impl = V8TestObject::toImpl(holder); |
1390 DOMFloat32Array* cppValue = v8Value->IsFloat32Array() ? V8Float32Array::toIm
pl(v8::Local<v8::Float32Array>::Cast(v8Value)) : 0; | 1429 DOMFloat32Array* cppValue = v8Value->IsFloat32Array() ? V8Float32Array::toIm
pl(v8::Local<v8::Float32Array>::Cast(v8Value)) : 0; |
1391 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); | 1430 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); |
1392 } | 1431 } |
1393 | 1432 |
1394 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1433 static void float32ArrayAttributeAttributeSetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
1395 { | 1434 { |
| 1435 v8::Local<v8::Value> v8Value = info[0]; |
1396 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1436 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1397 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info); | 1437 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info); |
1398 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1438 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1399 } | 1439 } |
1400 | 1440 |
1401 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1441 static void uint8ArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8
::Value>& info) |
1402 { | 1442 { |
1403 v8::Local<v8::Object> holder = info.Holder(); | 1443 v8::Local<v8::Object> holder = info.Holder(); |
1404 TestObject* impl = V8TestObject::toImpl(holder); | 1444 TestObject* impl = V8TestObject::toImpl(holder); |
1405 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl); | 1445 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl); |
1406 } | 1446 } |
1407 | 1447 |
1408 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 1448 static void uint8ArrayAttributeAttributeGetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
1409 { | 1449 { |
1410 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1450 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1411 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info); | 1451 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info); |
1412 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1452 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1413 } | 1453 } |
1414 | 1454 |
1415 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1455 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::FunctionCallbackInfo<v8::Value>& info) |
1416 { | 1456 { |
1417 v8::Local<v8::Object> holder = info.Holder(); | 1457 v8::Local<v8::Object> holder = info.Holder(); |
1418 TestObject* impl = V8TestObject::toImpl(holder); | 1458 TestObject* impl = V8TestObject::toImpl(holder); |
1419 DOMUint8Array* cppValue = v8Value->IsUint8Array() ? V8Uint8Array::toImpl(v8:
:Local<v8::Uint8Array>::Cast(v8Value)) : 0; | 1459 DOMUint8Array* cppValue = v8Value->IsUint8Array() ? V8Uint8Array::toImpl(v8:
:Local<v8::Uint8Array>::Cast(v8Value)) : 0; |
1420 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue)); | 1460 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue)); |
1421 } | 1461 } |
1422 | 1462 |
1423 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1463 static void uint8ArrayAttributeAttributeSetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
1424 { | 1464 { |
| 1465 v8::Local<v8::Value> v8Value = info[0]; |
1425 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1466 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1426 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info); | 1467 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info); |
1427 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1468 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1428 } | 1469 } |
1429 | 1470 |
1430 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 1471 static void selfAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
1431 { | 1472 { |
1432 v8::Local<v8::Object> holder = info.Holder(); | 1473 v8::Local<v8::Object> holder = info.Holder(); |
1433 TestObject* impl = V8TestObject::toImpl(holder); | 1474 TestObject* impl = V8TestObject::toImpl(holder); |
1434 v8SetReturnValueFast(info, WTF::getPtr(impl->self()), impl); | 1475 v8SetReturnValueFast(info, WTF::getPtr(impl->self()), impl); |
1435 } | 1476 } |
1436 | 1477 |
1437 static void selfAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyC
allbackInfo<v8::Value>& info) | 1478 static void selfAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) |
1438 { | 1479 { |
1439 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1480 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1440 TestObjectV8Internal::selfAttributeGetter(info); | 1481 TestObjectV8Internal::selfAttributeGetter(info); |
1441 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1482 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1442 } | 1483 } |
1443 | 1484 |
1444 static void readonlyEventTargetAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 1485 static void readonlyEventTargetAttributeAttributeGetter(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
1445 { | 1486 { |
1446 v8::Local<v8::Object> holder = info.Holder(); | 1487 v8::Local<v8::Object> holder = info.Holder(); |
1447 TestObject* impl = V8TestObject::toImpl(holder); | 1488 TestObject* impl = V8TestObject::toImpl(holder); |
1448 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetAttribute())
, impl); | 1489 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetAttribute())
, impl); |
1449 } | 1490 } |
1450 | 1491 |
1451 static void readonlyEventTargetAttributeAttributeGetterCallback(v8::Local<v8::Na
me>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1492 static void readonlyEventTargetAttributeAttributeGetterCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
1452 { | 1493 { |
1453 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1494 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1454 TestObjectV8Internal::readonlyEventTargetAttributeAttributeGetter(info); | 1495 TestObjectV8Internal::readonlyEventTargetAttributeAttributeGetter(info); |
1455 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1496 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1456 } | 1497 } |
1457 | 1498 |
1458 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 1499 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Function
CallbackInfo<v8::Value>& info) |
1459 { | 1500 { |
1460 v8::Local<v8::Object> holder = info.Holder(); | 1501 v8::Local<v8::Object> holder = info.Holder(); |
1461 TestObject* impl = V8TestObject::toImpl(holder); | 1502 TestObject* impl = V8TestObject::toImpl(holder); |
1462 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetOrNullAttrib
ute()), impl); | 1503 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyEventTargetOrNullAttrib
ute()), impl); |
1463 } | 1504 } |
1464 | 1505 |
1465 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(v8::Local<
v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1506 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
1466 { | 1507 { |
1467 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1508 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1468 TestObjectV8Internal::readonlyEventTargetOrNullAttributeAttributeGetter(info
); | 1509 TestObjectV8Internal::readonlyEventTargetOrNullAttributeAttributeGetter(info
); |
1469 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1510 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1470 } | 1511 } |
1471 | 1512 |
1472 static void readonlyWindowAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 1513 static void readonlyWindowAttributeAttributeGetter(const v8::FunctionCallbackInf
o<v8::Value>& info) |
1473 { | 1514 { |
1474 v8::Local<v8::Object> holder = info.Holder(); | 1515 v8::Local<v8::Object> holder = info.Holder(); |
1475 TestObject* impl = V8TestObject::toImpl(holder); | 1516 TestObject* impl = V8TestObject::toImpl(holder); |
1476 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyWindowAttribute()), imp
l); | 1517 v8SetReturnValueFast(info, WTF::getPtr(impl->readonlyWindowAttribute()), imp
l); |
1477 } | 1518 } |
1478 | 1519 |
1479 static void readonlyWindowAttributeAttributeGetterCallback(v8::Local<v8::Name>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1520 static void readonlyWindowAttributeAttributeGetterCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
1480 { | 1521 { |
1481 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1522 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1482 TestObjectV8Internal::readonlyWindowAttributeAttributeGetter(info); | 1523 TestObjectV8Internal::readonlyWindowAttributeAttributeGetter(info); |
1483 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1524 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1484 } | 1525 } |
1485 | 1526 |
1486 static void htmlCollectionAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 1527 static void htmlCollectionAttributeAttributeGetter(const v8::FunctionCallbackInf
o<v8::Value>& info) |
1487 { | 1528 { |
1488 v8::Local<v8::Object> holder = info.Holder(); | 1529 v8::Local<v8::Object> holder = info.Holder(); |
1489 TestObject* impl = V8TestObject::toImpl(holder); | 1530 TestObject* impl = V8TestObject::toImpl(holder); |
1490 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlCollectionAttribute()), imp
l); | 1531 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlCollectionAttribute()), imp
l); |
1491 } | 1532 } |
1492 | 1533 |
1493 static void htmlCollectionAttributeAttributeGetterCallback(v8::Local<v8::Name>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1534 static void htmlCollectionAttributeAttributeGetterCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
1494 { | 1535 { |
1495 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1536 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1496 TestObjectV8Internal::htmlCollectionAttributeAttributeGetter(info); | 1537 TestObjectV8Internal::htmlCollectionAttributeAttributeGetter(info); |
1497 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1538 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1498 } | 1539 } |
1499 | 1540 |
1500 static void htmlElementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 1541 static void htmlElementAttributeAttributeGetter(const v8::FunctionCallbackInfo<v
8::Value>& info) |
1501 { | 1542 { |
1502 v8::Local<v8::Object> holder = info.Holder(); | 1543 v8::Local<v8::Object> holder = info.Holder(); |
1503 TestObject* impl = V8TestObject::toImpl(holder); | 1544 TestObject* impl = V8TestObject::toImpl(holder); |
1504 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlElementAttribute()), impl); | 1545 v8SetReturnValueFast(info, WTF::getPtr(impl->htmlElementAttribute()), impl); |
1505 } | 1546 } |
1506 | 1547 |
1507 static void htmlElementAttributeAttributeGetterCallback(v8::Local<v8::Name>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 1548 static void htmlElementAttributeAttributeGetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
1508 { | 1549 { |
1509 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1550 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1510 TestObjectV8Internal::htmlElementAttributeAttributeGetter(info); | 1551 TestObjectV8Internal::htmlElementAttributeAttributeGetter(info); |
1511 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1552 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1512 } | 1553 } |
1513 | 1554 |
1514 static void stringArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 1555 static void stringArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v
8::Value>& info) |
1515 { | 1556 { |
1516 v8::Local<v8::Object> holder = info.Holder(); | 1557 v8::Local<v8::Object> holder = info.Holder(); |
1517 TestObject* impl = V8TestObject::toImpl(holder); | 1558 TestObject* impl = V8TestObject::toImpl(holder); |
1518 v8SetReturnValue(info, toV8(impl->stringArrayAttribute(), info.Holder(), inf
o.GetIsolate())); | 1559 v8SetReturnValue(info, toV8(impl->stringArrayAttribute(), info.Holder(), inf
o.GetIsolate())); |
1519 } | 1560 } |
1520 | 1561 |
1521 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::Name>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 1562 static void stringArrayAttributeAttributeGetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
1522 { | 1563 { |
1523 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1564 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1524 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info); | 1565 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info); |
1525 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1566 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1526 } | 1567 } |
1527 | 1568 |
1528 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 1569 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
1529 { | 1570 { |
1530 v8::Local<v8::Object> holder = info.Holder(); | 1571 v8::Local<v8::Object> holder = info.Holder(); |
1531 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); | 1572 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); |
1532 TestObject* impl = V8TestObject::toImpl(holder); | 1573 TestObject* impl = V8TestObject::toImpl(holder); |
1533 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(),
exceptionState); | 1574 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(),
exceptionState); |
1534 if (exceptionState.throwIfNeeded()) | 1575 if (exceptionState.throwIfNeeded()) |
1535 return; | 1576 return; |
1536 impl->setStringArrayAttribute(cppValue); | 1577 impl->setStringArrayAttribute(cppValue); |
1537 } | 1578 } |
1538 | 1579 |
1539 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1580 static void stringArrayAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
1540 { | 1581 { |
| 1582 v8::Local<v8::Value> v8Value = info[0]; |
1541 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1583 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1542 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info); | 1584 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info); |
1543 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1585 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1544 } | 1586 } |
1545 | 1587 |
1546 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) | 1588 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
1547 { | 1589 { |
1548 v8::Local<v8::Object> holder = info.Holder(); | 1590 v8::Local<v8::Object> holder = info.Holder(); |
1549 TestObject* impl = V8TestObject::toImpl(holder); | 1591 TestObject* impl = V8TestObject::toImpl(holder); |
1550 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayAttribute(), info.H
older(), info.GetIsolate())); | 1592 v8SetReturnValue(info, toV8(impl->testInterfaceEmptyArrayAttribute(), info.H
older(), info.GetIsolate())); |
1551 } | 1593 } |
1552 | 1594 |
1553 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8
::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1595 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
1554 { | 1596 { |
1555 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1597 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1556 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info); | 1598 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter(info); |
1557 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1599 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1558 } | 1600 } |
1559 | 1601 |
1560 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 1602 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
1561 { | 1603 { |
1562 v8::Local<v8::Object> holder = info.Holder(); | 1604 v8::Local<v8::Object> holder = info.Holder(); |
1563 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE
mptyArrayAttribute", "TestObject", holder, info.GetIsolate()); | 1605 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceE
mptyArrayAttribute", "TestObject", holder, info.GetIsolate()); |
1564 TestObject* impl = V8TestObject::toImpl(holder); | 1606 TestObject* impl = V8TestObject::toImpl(holder); |
1565 Vector<RefPtr<TestInterfaceEmpty>> cppValue = (toRefPtrNativeArray<TestInter
faceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.GetIsolate(), exceptionState))
; | 1607 Vector<RefPtr<TestInterfaceEmpty>> cppValue = (toRefPtrNativeArray<TestInter
faceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.GetIsolate(), exceptionState))
; |
1566 if (exceptionState.throwIfNeeded()) | 1608 if (exceptionState.throwIfNeeded()) |
1567 return; | 1609 return; |
1568 impl->setTestInterfaceEmptyArrayAttribute(cppValue); | 1610 impl->setTestInterfaceEmptyArrayAttribute(cppValue); |
1569 } | 1611 } |
1570 | 1612 |
1571 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8
::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) | 1613 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
1572 { | 1614 { |
| 1615 v8::Local<v8::Value> v8Value = info[0]; |
1573 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1616 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1574 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu
e, info); | 1617 TestObjectV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter(v8Valu
e, info); |
1575 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1618 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1576 } | 1619 } |
1577 | 1620 |
1578 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1621 static void floatArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8
::Value>& info) |
1579 { | 1622 { |
1580 v8::Local<v8::Object> holder = info.Holder(); | 1623 v8::Local<v8::Object> holder = info.Holder(); |
1581 TestObject* impl = V8TestObject::toImpl(holder); | 1624 TestObject* impl = V8TestObject::toImpl(holder); |
1582 v8SetReturnValue(info, toV8(impl->floatArrayAttribute(), info.Holder(), info
.GetIsolate())); | 1625 v8SetReturnValue(info, toV8(impl->floatArrayAttribute(), info.Holder(), info
.GetIsolate())); |
1583 } | 1626 } |
1584 | 1627 |
1585 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 1628 static void floatArrayAttributeAttributeGetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
1586 { | 1629 { |
1587 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1630 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1588 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info); | 1631 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info); |
1589 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1632 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1590 } | 1633 } |
1591 | 1634 |
1592 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1635 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::FunctionCallbackInfo<v8::Value>& info) |
1593 { | 1636 { |
1594 v8::Local<v8::Object> holder = info.Holder(); | 1637 v8::Local<v8::Object> holder = info.Holder(); |
1595 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr
ibute", "TestObject", holder, info.GetIsolate()); | 1638 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr
ibute", "TestObject", holder, info.GetIsolate()); |
1596 TestObject* impl = V8TestObject::toImpl(holder); | 1639 TestObject* impl = V8TestObject::toImpl(holder); |
1597 Vector<float> cppValue = toImplArray<float>(v8Value, 0, info.GetIsolate(), e
xceptionState); | 1640 Vector<float> cppValue = toImplArray<float>(v8Value, 0, info.GetIsolate(), e
xceptionState); |
1598 if (exceptionState.throwIfNeeded()) | 1641 if (exceptionState.throwIfNeeded()) |
1599 return; | 1642 return; |
1600 impl->setFloatArrayAttribute(cppValue); | 1643 impl->setFloatArrayAttribute(cppValue); |
1601 } | 1644 } |
1602 | 1645 |
1603 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1646 static void floatArrayAttributeAttributeSetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
1604 { | 1647 { |
| 1648 v8::Local<v8::Value> v8Value = info[0]; |
1605 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1649 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1606 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info); | 1650 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info); |
1607 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1651 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1608 } | 1652 } |
1609 | 1653 |
1610 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1654 static void stringOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo<
v8::Value>& info) |
1611 { | 1655 { |
1612 v8::Local<v8::Object> holder = info.Holder(); | 1656 v8::Local<v8::Object> holder = info.Holder(); |
1613 TestObject* impl = V8TestObject::toImpl(holder); | 1657 TestObject* impl = V8TestObject::toImpl(holder); |
1614 v8SetReturnValueStringOrNull(info, impl->stringOrNullAttribute(), info.GetIs
olate()); | 1658 v8SetReturnValueStringOrNull(info, impl->stringOrNullAttribute(), info.GetIs
olate()); |
1615 } | 1659 } |
1616 | 1660 |
1617 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::Name>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1661 static void stringOrNullAttributeAttributeGetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
1618 { | 1662 { |
1619 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1663 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1620 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info); | 1664 TestObjectV8Internal::stringOrNullAttributeAttributeGetter(info); |
1621 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1665 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1622 } | 1666 } |
1623 | 1667 |
1624 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1668 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
1625 { | 1669 { |
1626 v8::Local<v8::Object> holder = info.Holder(); | 1670 v8::Local<v8::Object> holder = info.Holder(); |
1627 TestObject* impl = V8TestObject::toImpl(holder); | 1671 TestObject* impl = V8TestObject::toImpl(holder); |
1628 V8StringResource<TreatNullAsNullString> cppValue = v8Value; | 1672 V8StringResource<TreatNullAsNullString> cppValue = v8Value; |
1629 if (!cppValue.prepare()) | 1673 if (!cppValue.prepare()) |
1630 return; | 1674 return; |
1631 impl->setStringOrNullAttribute(cppValue); | 1675 impl->setStringOrNullAttribute(cppValue); |
1632 } | 1676 } |
1633 | 1677 |
1634 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1678 static void stringOrNullAttributeAttributeSetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
1635 { | 1679 { |
| 1680 v8::Local<v8::Value> v8Value = info[0]; |
1636 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1681 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1637 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info); | 1682 TestObjectV8Internal::stringOrNullAttributeAttributeSetter(v8Value, info); |
1638 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1683 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1639 } | 1684 } |
1640 | 1685 |
1641 static void longOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 1686 static void longOrNullAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8
::Value>& info) |
1642 { | 1687 { |
1643 v8::Local<v8::Object> holder = info.Holder(); | 1688 v8::Local<v8::Object> holder = info.Holder(); |
1644 TestObject* impl = V8TestObject::toImpl(holder); | 1689 TestObject* impl = V8TestObject::toImpl(holder); |
1645 bool isNull = false; | 1690 bool isNull = false; |
1646 int cppValue(impl->longOrNullAttribute(isNull)); | 1691 int cppValue(impl->longOrNullAttribute(isNull)); |
1647 if (isNull) { | 1692 if (isNull) { |
1648 v8SetReturnValueNull(info); | 1693 v8SetReturnValueNull(info); |
1649 return; | 1694 return; |
1650 } | 1695 } |
1651 v8SetReturnValueInt(info, cppValue); | 1696 v8SetReturnValueInt(info, cppValue); |
1652 } | 1697 } |
1653 | 1698 |
1654 static void longOrNullAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 1699 static void longOrNullAttributeAttributeGetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
1655 { | 1700 { |
1656 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1701 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1657 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info); | 1702 TestObjectV8Internal::longOrNullAttributeAttributeGetter(info); |
1658 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1703 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1659 } | 1704 } |
1660 | 1705 |
1661 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 1706 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::FunctionCallbackInfo<v8::Value>& info) |
1662 { | 1707 { |
1663 v8::Local<v8::Object> holder = info.Holder(); | 1708 v8::Local<v8::Object> holder = info.Holder(); |
1664 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr
ibute", "TestObject", holder, info.GetIsolate()); | 1709 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr
ibute", "TestObject", holder, info.GetIsolate()); |
1665 TestObject* impl = V8TestObject::toImpl(holder); | 1710 TestObject* impl = V8TestObject::toImpl(holder); |
1666 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 1711 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
1667 if (exceptionState.throwIfNeeded()) | 1712 if (exceptionState.throwIfNeeded()) |
1668 return; | 1713 return; |
1669 impl->setLongOrNullAttribute(cppValue); | 1714 impl->setLongOrNullAttribute(cppValue); |
1670 } | 1715 } |
1671 | 1716 |
1672 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1717 static void longOrNullAttributeAttributeSetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
1673 { | 1718 { |
| 1719 v8::Local<v8::Value> v8Value = info[0]; |
1674 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1720 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1675 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); | 1721 TestObjectV8Internal::longOrNullAttributeAttributeSetter(v8Value, info); |
1676 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1722 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1677 } | 1723 } |
1678 | 1724 |
1679 static void testInterfaceOrNullAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 1725 static void testInterfaceOrNullAttributeAttributeGetter(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
1680 { | 1726 { |
1681 v8::Local<v8::Object> holder = info.Holder(); | 1727 v8::Local<v8::Object> holder = info.Holder(); |
1682 TestObject* impl = V8TestObject::toImpl(holder); | 1728 TestObject* impl = V8TestObject::toImpl(holder); |
1683 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceOrNullAttribute())
, impl); | 1729 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceOrNullAttribute())
, impl); |
1684 } | 1730 } |
1685 | 1731 |
1686 static void testInterfaceOrNullAttributeAttributeGetterCallback(v8::Local<v8::Na
me>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1732 static void testInterfaceOrNullAttributeAttributeGetterCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
1687 { | 1733 { |
1688 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1734 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1689 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeGetter(info); | 1735 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeGetter(info); |
1690 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1736 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1691 } | 1737 } |
1692 | 1738 |
1693 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 1739 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::FunctionCallbackInfo<v8::Value>& info) |
1694 { | 1740 { |
1695 v8::Local<v8::Object> holder = info.Holder(); | 1741 v8::Local<v8::Object> holder = info.Holder(); |
1696 TestObject* impl = V8TestObject::toImpl(holder); | 1742 TestObject* impl = V8TestObject::toImpl(holder); |
1697 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); | 1743 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); |
1698 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue)); | 1744 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue)); |
1699 } | 1745 } |
1700 | 1746 |
1701 static void testInterfaceOrNullAttributeAttributeSetterCallback(v8::Local<v8::Na
me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1747 static void testInterfaceOrNullAttributeAttributeSetterCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
1702 { | 1748 { |
| 1749 v8::Local<v8::Value> v8Value = info[0]; |
1703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1750 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1704 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeSetter(v8Value, i
nfo); | 1751 TestObjectV8Internal::testInterfaceOrNullAttributeAttributeSetter(v8Value, i
nfo); |
1705 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1752 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1706 } | 1753 } |
1707 | 1754 |
1708 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::
Value>& info) | 1755 static void testEnumAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::
Value>& info) |
1709 { | 1756 { |
1710 v8::Local<v8::Object> holder = info.Holder(); | 1757 v8::Local<v8::Object> holder = info.Holder(); |
1711 TestObject* impl = V8TestObject::toImpl(holder); | 1758 TestObject* impl = V8TestObject::toImpl(holder); |
1712 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate()); | 1759 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate()); |
1713 } | 1760 } |
1714 | 1761 |
1715 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::Name>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 1762 static void testEnumAttributeAttributeGetterCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
1716 { | 1763 { |
1717 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1764 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1718 TestObjectV8Internal::testEnumAttributeAttributeGetter(info); | 1765 TestObjectV8Internal::testEnumAttributeAttributeGetter(info); |
1719 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1766 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1720 } | 1767 } |
1721 | 1768 |
1722 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 1769 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::FunctionCallbackInfo<v8::Value>& info) |
1723 { | 1770 { |
1724 v8::Local<v8::Object> holder = info.Holder(); | 1771 v8::Local<v8::Object> holder = info.Holder(); |
1725 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumAttrib
ute", "TestObject", holder, info.GetIsolate()); | 1772 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumAttrib
ute", "TestObject", holder, info.GetIsolate()); |
1726 TestObject* impl = V8TestObject::toImpl(holder); | 1773 TestObject* impl = V8TestObject::toImpl(holder); |
1727 V8StringResource<> cppValue = v8Value; | 1774 V8StringResource<> cppValue = v8Value; |
1728 if (!cppValue.prepare()) | 1775 if (!cppValue.prepare()) |
1729 return; | 1776 return; |
1730 static const char* validValues[] = { | 1777 static const char* validValues[] = { |
1731 "", | 1778 "", |
1732 "EnumValue1", | 1779 "EnumValue1", |
1733 "EnumValue2", | 1780 "EnumValue2", |
1734 "EnumValue3", | 1781 "EnumValue3", |
1735 }; | 1782 }; |
1736 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test
Enum", exceptionState)) { | 1783 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test
Enum", exceptionState)) { |
1737 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes
sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); | 1784 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes
sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); |
1738 return; | 1785 return; |
1739 } | 1786 } |
1740 impl->setTestEnumAttribute(cppValue); | 1787 impl->setTestEnumAttribute(cppValue); |
1741 } | 1788 } |
1742 | 1789 |
1743 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1790 static void testEnumAttributeAttributeSetterCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
1744 { | 1791 { |
| 1792 v8::Local<v8::Value> v8Value = info[0]; |
1745 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1793 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1746 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info); | 1794 TestObjectV8Internal::testEnumAttributeAttributeSetter(v8Value, info); |
1747 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1795 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1748 } | 1796 } |
1749 | 1797 |
1750 static void testEnumOrNullAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 1798 static void testEnumOrNullAttributeAttributeGetter(const v8::FunctionCallbackInf
o<v8::Value>& info) |
1751 { | 1799 { |
1752 v8::Local<v8::Object> holder = info.Holder(); | 1800 v8::Local<v8::Object> holder = info.Holder(); |
1753 TestObject* impl = V8TestObject::toImpl(holder); | 1801 TestObject* impl = V8TestObject::toImpl(holder); |
1754 v8SetReturnValueStringOrNull(info, impl->testEnumOrNullAttribute(), info.Get
Isolate()); | 1802 v8SetReturnValueStringOrNull(info, impl->testEnumOrNullAttribute(), info.Get
Isolate()); |
1755 } | 1803 } |
1756 | 1804 |
1757 static void testEnumOrNullAttributeAttributeGetterCallback(v8::Local<v8::Name>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1805 static void testEnumOrNullAttributeAttributeGetterCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
1758 { | 1806 { |
1759 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1807 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1760 TestObjectV8Internal::testEnumOrNullAttributeAttributeGetter(info); | 1808 TestObjectV8Internal::testEnumOrNullAttributeAttributeGetter(info); |
1761 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1809 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1762 } | 1810 } |
1763 | 1811 |
1764 static void testEnumOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 1812 static void testEnumOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::FunctionCallbackInfo<v8::Value>& info) |
1765 { | 1813 { |
1766 v8::Local<v8::Object> holder = info.Holder(); | 1814 v8::Local<v8::Object> holder = info.Holder(); |
1767 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrNull
Attribute", "TestObject", holder, info.GetIsolate()); | 1815 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrNull
Attribute", "TestObject", holder, info.GetIsolate()); |
1768 TestObject* impl = V8TestObject::toImpl(holder); | 1816 TestObject* impl = V8TestObject::toImpl(holder); |
1769 V8StringResource<TreatNullAsNullString> cppValue = v8Value; | 1817 V8StringResource<TreatNullAsNullString> cppValue = v8Value; |
1770 if (!cppValue.prepare()) | 1818 if (!cppValue.prepare()) |
1771 return; | 1819 return; |
1772 static const char* validValues[] = { | 1820 static const char* validValues[] = { |
1773 "", | 1821 "", |
1774 "EnumValue1", | 1822 "EnumValue1", |
1775 "EnumValue2", | 1823 "EnumValue2", |
1776 "EnumValue3", | 1824 "EnumValue3", |
1777 }; | 1825 }; |
1778 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test
Enum", exceptionState)) { | 1826 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test
Enum", exceptionState)) { |
1779 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes
sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); | 1827 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes
sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); |
1780 return; | 1828 return; |
1781 } | 1829 } |
1782 impl->setTestEnumOrNullAttribute(cppValue); | 1830 impl->setTestEnumOrNullAttribute(cppValue); |
1783 } | 1831 } |
1784 | 1832 |
1785 static void testEnumOrNullAttributeAttributeSetterCallback(v8::Local<v8::Name>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1833 static void testEnumOrNullAttributeAttributeSetterCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
1786 { | 1834 { |
| 1835 v8::Local<v8::Value> v8Value = info[0]; |
1787 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1836 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1788 TestObjectV8Internal::testEnumOrNullAttributeAttributeSetter(v8Value, info); | 1837 TestObjectV8Internal::testEnumOrNullAttributeAttributeSetter(v8Value, info); |
1789 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1838 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1790 } | 1839 } |
1791 | 1840 |
1792 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1841 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
1793 { | 1842 { |
1794 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs
olate()); | 1843 v8SetReturnValueString(info, TestObject::staticStringAttribute(), info.GetIs
olate()); |
1795 } | 1844 } |
1796 | 1845 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1838 TestObject::setStaticLongAttribute(cppValue); | 1887 TestObject::setStaticLongAttribute(cppValue); |
1839 } | 1888 } |
1840 | 1889 |
1841 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1890 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1842 { | 1891 { |
1843 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1892 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1844 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info); | 1893 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info); |
1845 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1894 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1846 } | 1895 } |
1847 | 1896 |
1848 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 1897 static void eventHandlerAttributeAttributeGetter(const v8::FunctionCallbackInfo<
v8::Value>& info) |
1849 { | 1898 { |
1850 v8::Local<v8::Object> holder = info.Holder(); | 1899 v8::Local<v8::Object> holder = info.Holder(); |
1851 TestObject* impl = V8TestObject::toImpl(holder); | 1900 TestObject* impl = V8TestObject::toImpl(holder); |
1852 EventListener* cppValue(impl->eventHandlerAttribute()); | 1901 EventListener* cppValue(impl->eventHandlerAttribute()); |
1853 v8SetReturnValue(info, cppValue ? v8::Local<v8::Value>(V8AbstractEventListen
er::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Local<v8:
:Value>(v8::Null(info.GetIsolate()))); | 1902 v8SetReturnValue(info, cppValue ? v8::Local<v8::Value>(V8AbstractEventListen
er::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Local<v8:
:Value>(v8::Null(info.GetIsolate()))); |
1854 } | 1903 } |
1855 | 1904 |
1856 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::Name>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 1905 static void eventHandlerAttributeAttributeGetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
1857 { | 1906 { |
1858 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1907 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1859 TestObjectV8Internal::eventHandlerAttributeAttributeGetter(info); | 1908 TestObjectV8Internal::eventHandlerAttributeAttributeGetter(info); |
1860 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1909 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1861 } | 1910 } |
1862 | 1911 |
1863 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1912 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
1864 { | 1913 { |
1865 v8::Local<v8::Object> holder = info.Holder(); | 1914 v8::Local<v8::Object> holder = info.Holder(); |
1866 TestObject* impl = V8TestObject::toImpl(holder); | 1915 TestObject* impl = V8TestObject::toImpl(holder); |
1867 moveEventListenerToNewWrapper(info.GetIsolate(), holder, impl->eventHandlerA
ttribute(), v8Value, V8TestObject::eventListenerCacheIndex); | 1916 moveEventListenerToNewWrapper(info.GetIsolate(), holder, impl->eventHandlerA
ttribute(), v8Value, V8TestObject::eventListenerCacheIndex); |
1868 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(ScriptS
tate::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate)); | 1917 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(ScriptS
tate::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate)); |
1869 } | 1918 } |
1870 | 1919 |
1871 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1920 static void eventHandlerAttributeAttributeSetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
1872 { | 1921 { |
| 1922 v8::Local<v8::Value> v8Value = info[0]; |
1873 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1923 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1874 TestObjectV8Internal::eventHandlerAttributeAttributeSetter(v8Value, info); | 1924 TestObjectV8Internal::eventHandlerAttributeAttributeSetter(v8Value, info); |
1875 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1925 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1876 } | 1926 } |
1877 | 1927 |
1878 static void doubleOrStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 1928 static void doubleOrStringAttributeAttributeGetter(const v8::FunctionCallbackInf
o<v8::Value>& info) |
1879 { | 1929 { |
1880 v8::Local<v8::Object> holder = info.Holder(); | 1930 v8::Local<v8::Object> holder = info.Holder(); |
1881 TestObject* impl = V8TestObject::toImpl(holder); | 1931 TestObject* impl = V8TestObject::toImpl(holder); |
1882 DoubleOrString result; | 1932 DoubleOrString result; |
1883 impl->doubleOrStringAttribute(result); | 1933 impl->doubleOrStringAttribute(result); |
1884 v8SetReturnValue(info, result); | 1934 v8SetReturnValue(info, result); |
1885 } | 1935 } |
1886 | 1936 |
1887 static void doubleOrStringAttributeAttributeGetterCallback(v8::Local<v8::Name>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1937 static void doubleOrStringAttributeAttributeGetterCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
1888 { | 1938 { |
1889 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1939 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1890 TestObjectV8Internal::doubleOrStringAttributeAttributeGetter(info); | 1940 TestObjectV8Internal::doubleOrStringAttributeAttributeGetter(info); |
1891 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1941 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1892 } | 1942 } |
1893 | 1943 |
1894 static void doubleOrStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 1944 static void doubleOrStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::FunctionCallbackInfo<v8::Value>& info) |
1895 { | 1945 { |
1896 v8::Local<v8::Object> holder = info.Holder(); | 1946 v8::Local<v8::Object> holder = info.Holder(); |
1897 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString
Attribute", "TestObject", holder, info.GetIsolate()); | 1947 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString
Attribute", "TestObject", holder, info.GetIsolate()); |
1898 TestObject* impl = V8TestObject::toImpl(holder); | 1948 TestObject* impl = V8TestObject::toImpl(holder); |
1899 DoubleOrString cppValue; | 1949 DoubleOrString cppValue; |
1900 V8DoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionStat
e); | 1950 V8DoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionStat
e); |
1901 if (exceptionState.throwIfNeeded()) | 1951 if (exceptionState.throwIfNeeded()) |
1902 return; | 1952 return; |
1903 impl->setDoubleOrStringAttribute(cppValue); | 1953 impl->setDoubleOrStringAttribute(cppValue); |
1904 } | 1954 } |
1905 | 1955 |
1906 static void doubleOrStringAttributeAttributeSetterCallback(v8::Local<v8::Name>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1956 static void doubleOrStringAttributeAttributeSetterCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
1907 { | 1957 { |
| 1958 v8::Local<v8::Value> v8Value = info[0]; |
1908 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1959 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1909 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info); | 1960 TestObjectV8Internal::doubleOrStringAttributeAttributeSetter(v8Value, info); |
1910 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1961 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1911 } | 1962 } |
1912 | 1963 |
1913 static void doubleOrStringOrNullAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 1964 static void doubleOrStringOrNullAttributeAttributeGetter(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
1914 { | 1965 { |
1915 v8::Local<v8::Object> holder = info.Holder(); | 1966 v8::Local<v8::Object> holder = info.Holder(); |
1916 TestObject* impl = V8TestObject::toImpl(holder); | 1967 TestObject* impl = V8TestObject::toImpl(holder); |
1917 DoubleOrString result; | 1968 DoubleOrString result; |
1918 impl->doubleOrStringOrNullAttribute(result); | 1969 impl->doubleOrStringOrNullAttribute(result); |
1919 v8SetReturnValue(info, result); | 1970 v8SetReturnValue(info, result); |
1920 } | 1971 } |
1921 | 1972 |
1922 static void doubleOrStringOrNullAttributeAttributeGetterCallback(v8::Local<v8::N
ame>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1973 static void doubleOrStringOrNullAttributeAttributeGetterCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
1923 { | 1974 { |
1924 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1975 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1925 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info); | 1976 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeGetter(info); |
1926 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1977 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1927 } | 1978 } |
1928 | 1979 |
1929 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 1980 static void doubleOrStringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
1930 { | 1981 { |
1931 v8::Local<v8::Object> holder = info.Holder(); | 1982 v8::Local<v8::Object> holder = info.Holder(); |
1932 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString
OrNullAttribute", "TestObject", holder, info.GetIsolate()); | 1983 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrString
OrNullAttribute", "TestObject", holder, info.GetIsolate()); |
1933 TestObject* impl = V8TestObject::toImpl(holder); | 1984 TestObject* impl = V8TestObject::toImpl(holder); |
1934 DoubleOrString cppValue; | 1985 DoubleOrString cppValue; |
1935 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, excepti
onState); | 1986 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, excepti
onState); |
1936 if (exceptionState.throwIfNeeded()) | 1987 if (exceptionState.throwIfNeeded()) |
1937 return; | 1988 return; |
1938 impl->setDoubleOrStringOrNullAttribute(cppValue); | 1989 impl->setDoubleOrStringOrNullAttribute(cppValue); |
1939 } | 1990 } |
1940 | 1991 |
1941 static void doubleOrStringOrNullAttributeAttributeSetterCallback(v8::Local<v8::N
ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1992 static void doubleOrStringOrNullAttributeAttributeSetterCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
1942 { | 1993 { |
| 1994 v8::Local<v8::Value> v8Value = info[0]; |
1943 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1995 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1944 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value,
info); | 1996 TestObjectV8Internal::doubleOrStringOrNullAttributeAttributeSetter(v8Value,
info); |
1945 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1997 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1946 } | 1998 } |
1947 | 1999 |
1948 static void doubleOrNullStringAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 2000 static void doubleOrNullStringAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
1949 { | 2001 { |
1950 v8::Local<v8::Object> holder = info.Holder(); | 2002 v8::Local<v8::Object> holder = info.Holder(); |
1951 TestObject* impl = V8TestObject::toImpl(holder); | 2003 TestObject* impl = V8TestObject::toImpl(holder); |
1952 DoubleOrString result; | 2004 DoubleOrString result; |
1953 impl->doubleOrNullStringAttribute(result); | 2005 impl->doubleOrNullStringAttribute(result); |
1954 v8SetReturnValue(info, result); | 2006 v8SetReturnValue(info, result); |
1955 } | 2007 } |
1956 | 2008 |
1957 static void doubleOrNullStringAttributeAttributeGetterCallback(v8::Local<v8::Nam
e>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2009 static void doubleOrNullStringAttributeAttributeGetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
1958 { | 2010 { |
1959 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2011 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1960 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info); | 2012 TestObjectV8Internal::doubleOrNullStringAttributeAttributeGetter(info); |
1961 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2013 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1962 } | 2014 } |
1963 | 2015 |
1964 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 2016 static void doubleOrNullStringAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::FunctionCallbackInfo<v8::Value>& info) |
1965 { | 2017 { |
1966 v8::Local<v8::Object> holder = info.Holder(); | 2018 v8::Local<v8::Object> holder = info.Holder(); |
1967 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt
ringAttribute", "TestObject", holder, info.GetIsolate()); | 2019 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleOrNullSt
ringAttribute", "TestObject", holder, info.GetIsolate()); |
1968 TestObject* impl = V8TestObject::toImpl(holder); | 2020 TestObject* impl = V8TestObject::toImpl(holder); |
1969 DoubleOrString cppValue; | 2021 DoubleOrString cppValue; |
1970 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, excepti
onState); | 2022 V8DoubleOrStringOrNull::toImpl(info.GetIsolate(), v8Value, cppValue, excepti
onState); |
1971 if (exceptionState.throwIfNeeded()) | 2023 if (exceptionState.throwIfNeeded()) |
1972 return; | 2024 return; |
1973 impl->setDoubleOrNullStringAttribute(cppValue); | 2025 impl->setDoubleOrNullStringAttribute(cppValue); |
1974 } | 2026 } |
1975 | 2027 |
1976 static void doubleOrNullStringAttributeAttributeSetterCallback(v8::Local<v8::Nam
e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2028 static void doubleOrNullStringAttributeAttributeSetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
1977 { | 2029 { |
| 2030 v8::Local<v8::Value> v8Value = info[0]; |
1978 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2031 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1979 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in
fo); | 2032 TestObjectV8Internal::doubleOrNullStringAttributeAttributeSetter(v8Value, in
fo); |
1980 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2033 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1981 } | 2034 } |
1982 | 2035 |
1983 static void stringOrStringSequenceAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) | 2036 static void stringOrStringSequenceAttributeAttributeGetter(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
1984 { | 2037 { |
1985 v8::Local<v8::Object> holder = info.Holder(); | 2038 v8::Local<v8::Object> holder = info.Holder(); |
1986 TestObject* impl = V8TestObject::toImpl(holder); | 2039 TestObject* impl = V8TestObject::toImpl(holder); |
1987 StringOrStringSequence result; | 2040 StringOrStringSequence result; |
1988 impl->stringOrStringSequenceAttribute(result); | 2041 impl->stringOrStringSequenceAttribute(result); |
1989 v8SetReturnValue(info, result); | 2042 v8SetReturnValue(info, result); |
1990 } | 2043 } |
1991 | 2044 |
1992 static void stringOrStringSequenceAttributeAttributeGetterCallback(v8::Local<v8:
:Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2045 static void stringOrStringSequenceAttributeAttributeGetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
1993 { | 2046 { |
1994 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2047 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1995 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info); | 2048 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeGetter(info); |
1996 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2049 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1997 } | 2050 } |
1998 | 2051 |
1999 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 2052 static void stringOrStringSequenceAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
2000 { | 2053 { |
2001 v8::Local<v8::Object> holder = info.Holder(); | 2054 v8::Local<v8::Object> holder = info.Holder(); |
2002 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString
SequenceAttribute", "TestObject", holder, info.GetIsolate()); | 2055 ExceptionState exceptionState(ExceptionState::SetterContext, "stringOrString
SequenceAttribute", "TestObject", holder, info.GetIsolate()); |
2003 TestObject* impl = V8TestObject::toImpl(holder); | 2056 TestObject* impl = V8TestObject::toImpl(holder); |
2004 StringOrStringSequence cppValue; | 2057 StringOrStringSequence cppValue; |
2005 V8StringOrStringSequence::toImpl(info.GetIsolate(), v8Value, cppValue, excep
tionState); | 2058 V8StringOrStringSequence::toImpl(info.GetIsolate(), v8Value, cppValue, excep
tionState); |
2006 if (exceptionState.throwIfNeeded()) | 2059 if (exceptionState.throwIfNeeded()) |
2007 return; | 2060 return; |
2008 impl->setStringOrStringSequenceAttribute(cppValue); | 2061 impl->setStringOrStringSequenceAttribute(cppValue); |
2009 } | 2062 } |
2010 | 2063 |
2011 static void stringOrStringSequenceAttributeAttributeSetterCallback(v8::Local<v8:
:Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 2064 static void stringOrStringSequenceAttributeAttributeSetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
2012 { | 2065 { |
| 2066 v8::Local<v8::Value> v8Value = info[0]; |
2013 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2067 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2014 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value
, info); | 2068 TestObjectV8Internal::stringOrStringSequenceAttributeAttributeSetter(v8Value
, info); |
2015 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2069 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2016 } | 2070 } |
2017 | 2071 |
2018 static void testEnumOrDoubleAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 2072 static void testEnumOrDoubleAttributeAttributeGetter(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
2019 { | 2073 { |
2020 v8::Local<v8::Object> holder = info.Holder(); | 2074 v8::Local<v8::Object> holder = info.Holder(); |
2021 TestObject* impl = V8TestObject::toImpl(holder); | 2075 TestObject* impl = V8TestObject::toImpl(holder); |
2022 TestEnumOrDouble result; | 2076 TestEnumOrDouble result; |
2023 impl->testEnumOrDoubleAttribute(result); | 2077 impl->testEnumOrDoubleAttribute(result); |
2024 v8SetReturnValue(info, result); | 2078 v8SetReturnValue(info, result); |
2025 } | 2079 } |
2026 | 2080 |
2027 static void testEnumOrDoubleAttributeAttributeGetterCallback(v8::Local<v8::Name>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 2081 static void testEnumOrDoubleAttributeAttributeGetterCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
2028 { | 2082 { |
2029 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2083 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2030 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeGetter(info); | 2084 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeGetter(info); |
2031 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2085 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2032 } | 2086 } |
2033 | 2087 |
2034 static void testEnumOrDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 2088 static void testEnumOrDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::FunctionCallbackInfo<v8::Value>& info) |
2035 { | 2089 { |
2036 v8::Local<v8::Object> holder = info.Holder(); | 2090 v8::Local<v8::Object> holder = info.Holder(); |
2037 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrDoub
leAttribute", "TestObject", holder, info.GetIsolate()); | 2091 ExceptionState exceptionState(ExceptionState::SetterContext, "testEnumOrDoub
leAttribute", "TestObject", holder, info.GetIsolate()); |
2038 TestObject* impl = V8TestObject::toImpl(holder); | 2092 TestObject* impl = V8TestObject::toImpl(holder); |
2039 TestEnumOrDouble cppValue; | 2093 TestEnumOrDouble cppValue; |
2040 V8TestEnumOrDouble::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionSt
ate); | 2094 V8TestEnumOrDouble::toImpl(info.GetIsolate(), v8Value, cppValue, exceptionSt
ate); |
2041 if (exceptionState.throwIfNeeded()) | 2095 if (exceptionState.throwIfNeeded()) |
2042 return; | 2096 return; |
2043 impl->setTestEnumOrDoubleAttribute(cppValue); | 2097 impl->setTestEnumOrDoubleAttribute(cppValue); |
2044 } | 2098 } |
2045 | 2099 |
2046 static void testEnumOrDoubleAttributeAttributeSetterCallback(v8::Local<v8::Name>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2100 static void testEnumOrDoubleAttributeAttributeSetterCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
2047 { | 2101 { |
| 2102 v8::Local<v8::Value> v8Value = info[0]; |
2048 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2103 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2049 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeSetter(v8Value, info
); | 2104 TestObjectV8Internal::testEnumOrDoubleAttributeAttributeSetter(v8Value, info
); |
2050 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2105 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2051 } | 2106 } |
2052 | 2107 |
2053 static void unrestrictedDoubleOrStringAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) | 2108 static void unrestrictedDoubleOrStringAttributeAttributeGetter(const v8::Functio
nCallbackInfo<v8::Value>& info) |
2054 { | 2109 { |
2055 v8::Local<v8::Object> holder = info.Holder(); | 2110 v8::Local<v8::Object> holder = info.Holder(); |
2056 TestObject* impl = V8TestObject::toImpl(holder); | 2111 TestObject* impl = V8TestObject::toImpl(holder); |
2057 UnrestrictedDoubleOrString result; | 2112 UnrestrictedDoubleOrString result; |
2058 impl->unrestrictedDoubleOrStringAttribute(result); | 2113 impl->unrestrictedDoubleOrStringAttribute(result); |
2059 v8SetReturnValue(info, result); | 2114 v8SetReturnValue(info, result); |
2060 } | 2115 } |
2061 | 2116 |
2062 static void unrestrictedDoubleOrStringAttributeAttributeGetterCallback(v8::Local
<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2117 static void unrestrictedDoubleOrStringAttributeAttributeGetterCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
2063 { | 2118 { |
2064 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2119 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2065 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeGetter(inf
o); | 2120 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeGetter(inf
o); |
2066 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2121 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2067 } | 2122 } |
2068 | 2123 |
2069 static void unrestrictedDoubleOrStringAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2124 static void unrestrictedDoubleOrStringAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
2070 { | 2125 { |
2071 v8::Local<v8::Object> holder = info.Holder(); | 2126 v8::Local<v8::Object> holder = info.Holder(); |
2072 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleOrStringAttribute", "TestObject", holder, info.GetIsolate()); | 2127 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleOrStringAttribute", "TestObject", holder, info.GetIsolate()); |
2073 TestObject* impl = V8TestObject::toImpl(holder); | 2128 TestObject* impl = V8TestObject::toImpl(holder); |
2074 UnrestrictedDoubleOrString cppValue; | 2129 UnrestrictedDoubleOrString cppValue; |
2075 V8UnrestrictedDoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, e
xceptionState); | 2130 V8UnrestrictedDoubleOrString::toImpl(info.GetIsolate(), v8Value, cppValue, e
xceptionState); |
2076 if (exceptionState.throwIfNeeded()) | 2131 if (exceptionState.throwIfNeeded()) |
2077 return; | 2132 return; |
2078 impl->setUnrestrictedDoubleOrStringAttribute(cppValue); | 2133 impl->setUnrestrictedDoubleOrStringAttribute(cppValue); |
2079 } | 2134 } |
2080 | 2135 |
2081 static void unrestrictedDoubleOrStringAttributeAttributeSetterCallback(v8::Local
<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 2136 static void unrestrictedDoubleOrStringAttributeAttributeSetterCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
2082 { | 2137 { |
| 2138 v8::Local<v8::Value> v8Value = info[0]; |
2083 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2139 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2084 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeSetter(v8V
alue, info); | 2140 TestObjectV8Internal::unrestrictedDoubleOrStringAttributeAttributeSetter(v8V
alue, info); |
2085 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2141 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2086 } | 2142 } |
2087 | 2143 |
2088 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 2144 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const
v8::FunctionCallbackInfo<v8::Value>& info) |
2089 { | 2145 { |
2090 v8::Local<v8::Object> holder = info.Holder(); | 2146 v8::Local<v8::Object> holder = info.Holder(); |
2091 TestObject* impl = V8TestObject::toImpl(holder); | 2147 TestObject* impl = V8TestObject::toImpl(holder); |
2092 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu
te()); | 2148 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu
te()); |
2093 } | 2149 } |
2094 | 2150 |
2095 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2151 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac
k(const v8::FunctionCallbackInfo<v8::Value>& info) |
2096 { | 2152 { |
2097 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2153 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2098 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2154 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2099 V8PerContextData* contextData = scriptState->perContextData(); | 2155 V8PerContextData* contextData = scriptState->perContextData(); |
2100 if (contextData && contextData->activityLogger()) | 2156 if (contextData && contextData->activityLogger()) |
2101 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute"); | 2157 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute"); |
2102 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eGetter(info); | 2158 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eGetter(info); |
2103 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2159 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2104 } | 2160 } |
2105 | 2161 |
2106 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2162 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
2107 { | 2163 { |
2108 v8::Local<v8::Object> holder = info.Holder(); | 2164 v8::Local<v8::Object> holder = info.Holder(); |
2109 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2165 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2110 TestObject* impl = V8TestObject::toImpl(holder); | 2166 TestObject* impl = V8TestObject::toImpl(holder); |
2111 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 2167 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
2112 if (exceptionState.throwIfNeeded()) | 2168 if (exceptionState.throwIfNeeded()) |
2113 return; | 2169 return; |
2114 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); | 2170 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); |
2115 } | 2171 } |
2116 | 2172 |
2117 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 2173 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac
k(const v8::FunctionCallbackInfo<v8::Value>& info) |
2118 { | 2174 { |
| 2175 v8::Local<v8::Value> v8Value = info[0]; |
2119 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2176 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2120 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2177 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2121 V8PerContextData* contextData = scriptState->perContextData(); | 2178 V8PerContextData* contextData = scriptState->perContextData(); |
2122 if (contextData && contextData->activityLogger()) { | 2179 if (contextData && contextData->activityLogger()) { |
2123 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute", v8Value); | 2180 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForAllWorldsLongAttribute", v8Value); |
2124 } | 2181 } |
2125 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); | 2182 TestObjectV8Internal::activityLoggingAccessForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); |
2126 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2183 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2127 } | 2184 } |
2128 | 2185 |
2129 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 2186 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const
v8::FunctionCallbackInfo<v8::Value>& info) |
2130 { | 2187 { |
2131 v8::Local<v8::Object> holder = info.Holder(); | 2188 v8::Local<v8::Object> holder = info.Holder(); |
2132 TestObject* impl = V8TestObject::toImpl(holder); | 2189 TestObject* impl = V8TestObject::toImpl(holder); |
2133 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu
te()); | 2190 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu
te()); |
2134 } | 2191 } |
2135 | 2192 |
2136 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2193 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac
k(const v8::FunctionCallbackInfo<v8::Value>& info) |
2137 { | 2194 { |
2138 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2195 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2139 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2196 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2140 V8PerContextData* contextData = scriptState->perContextData(); | 2197 V8PerContextData* contextData = scriptState->perContextData(); |
2141 if (contextData && contextData->activityLogger()) | 2198 if (contextData && contextData->activityLogger()) |
2142 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForAllWorldsLongAttribute"); | 2199 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForAllWorldsLongAttribute"); |
2143 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eGetter(info); | 2200 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eGetter(info); |
2144 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2201 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2145 } | 2202 } |
2146 | 2203 |
2147 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2204 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
2148 { | 2205 { |
2149 v8::Local<v8::Object> holder = info.Holder(); | 2206 v8::Local<v8::Object> holder = info.Holder(); |
2150 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2207 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2151 TestObject* impl = V8TestObject::toImpl(holder); | 2208 TestObject* impl = V8TestObject::toImpl(holder); |
2152 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 2209 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
2153 if (exceptionState.throwIfNeeded()) | 2210 if (exceptionState.throwIfNeeded()) |
2154 return; | 2211 return; |
2155 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); | 2212 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); |
2156 } | 2213 } |
2157 | 2214 |
2158 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 2215 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac
k(const v8::FunctionCallbackInfo<v8::Value>& info) |
2159 { | 2216 { |
| 2217 v8::Local<v8::Value> v8Value = info[0]; |
2160 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2218 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2161 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); | 2219 TestObjectV8Internal::activityLoggingGetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); |
2162 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2220 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2163 } | 2221 } |
2164 | 2222 |
2165 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 2223 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const
v8::FunctionCallbackInfo<v8::Value>& info) |
2166 { | 2224 { |
2167 v8::Local<v8::Object> holder = info.Holder(); | 2225 v8::Local<v8::Object> holder = info.Holder(); |
2168 TestObject* impl = V8TestObject::toImpl(holder); | 2226 TestObject* impl = V8TestObject::toImpl(holder); |
2169 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu
te()); | 2227 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu
te()); |
2170 } | 2228 } |
2171 | 2229 |
2172 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2230 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac
k(const v8::FunctionCallbackInfo<v8::Value>& info) |
2173 { | 2231 { |
2174 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2232 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2175 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eGetter(info); | 2233 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eGetter(info); |
2176 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2234 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2177 } | 2235 } |
2178 | 2236 |
2179 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2237 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo
cal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
2180 { | 2238 { |
2181 v8::Local<v8::Object> holder = info.Holder(); | 2239 v8::Local<v8::Object> holder = info.Holder(); |
2182 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); | 2240 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gSetterForAllWorldsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2183 TestObject* impl = V8TestObject::toImpl(holder); | 2241 TestObject* impl = V8TestObject::toImpl(holder); |
2184 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 2242 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
2185 if (exceptionState.throwIfNeeded()) | 2243 if (exceptionState.throwIfNeeded()) |
2186 return; | 2244 return; |
2187 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); | 2245 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); |
2188 } | 2246 } |
2189 | 2247 |
2190 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 2248 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac
k(const v8::FunctionCallbackInfo<v8::Value>& info) |
2191 { | 2249 { |
| 2250 v8::Local<v8::Value> v8Value = info[0]; |
2192 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2251 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2193 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 2252 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2194 V8PerContextData* contextData = scriptState->perContextData(); | 2253 V8PerContextData* contextData = scriptState->perContextData(); |
2195 if (contextData && contextData->activityLogger()) { | 2254 if (contextData && contextData->activityLogger()) { |
2196 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett
erForAllWorldsLongAttribute", v8Value); | 2255 contextData->activityLogger()->logSetter("TestObject.activityLoggingSett
erForAllWorldsLongAttribute", v8Value); |
2197 } | 2256 } |
2198 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); | 2257 TestObjectV8Internal::activityLoggingSetterForAllWorldsLongAttributeAttribut
eSetter(v8Value, info); |
2199 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2258 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2200 } | 2259 } |
2201 | 2260 |
2202 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 2261 static void cachedAttributeAnyAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
2203 { | 2262 { |
2204 v8::Local<v8::Object> holder = info.Holder(); | 2263 v8::Local<v8::Object> holder = info.Holder(); |
2205 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach
edAttributeAnyAttribute"); | 2264 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach
edAttributeAnyAttribute"); |
2206 TestObject* impl = V8TestObject::toImpl(holder); | 2265 TestObject* impl = V8TestObject::toImpl(holder); |
2207 if (!impl->isValueDirty()) { | 2266 if (!impl->isValueDirty()) { |
2208 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso
late(), holder, propertyName); | 2267 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso
late(), holder, propertyName); |
2209 if (!v8Value.IsEmpty()) { | 2268 if (!v8Value.IsEmpty()) { |
2210 v8SetReturnValue(info, v8Value); | 2269 v8SetReturnValue(info, v8Value); |
2211 return; | 2270 return; |
2212 } | 2271 } |
2213 } | 2272 } |
2214 ScriptValue cppValue(impl->cachedAttributeAnyAttribute()); | 2273 ScriptValue cppValue(impl->cachedAttributeAnyAttribute()); |
2215 v8::Local<v8::Value> v8Value(cppValue.v8Value()); | 2274 v8::Local<v8::Value> v8Value(cppValue.v8Value()); |
2216 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val
ue); | 2275 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val
ue); |
2217 v8SetReturnValue(info, v8Value); | 2276 v8SetReturnValue(info, v8Value); |
2218 } | 2277 } |
2219 | 2278 |
2220 static void cachedAttributeAnyAttributeAttributeGetterCallback(v8::Local<v8::Nam
e>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2279 static void cachedAttributeAnyAttributeAttributeGetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
2221 { | 2280 { |
2222 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2281 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2223 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeGetter(info); | 2282 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeGetter(info); |
2224 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2283 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2225 } | 2284 } |
2226 | 2285 |
2227 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 2286 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::FunctionCallbackInfo<v8::Value>& info) |
2228 { | 2287 { |
2229 v8::Local<v8::Object> holder = info.Holder(); | 2288 v8::Local<v8::Object> holder = info.Holder(); |
2230 TestObject* impl = V8TestObject::toImpl(holder); | 2289 TestObject* impl = V8TestObject::toImpl(holder); |
2231 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); | 2290 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); |
2232 impl->setCachedAttributeAnyAttribute(cppValue); | 2291 impl->setCachedAttributeAnyAttribute(cppValue); |
2233 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu
e. | 2292 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu
e. |
2234 } | 2293 } |
2235 | 2294 |
2236 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Nam
e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2295 static void cachedAttributeAnyAttributeAttributeSetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
2237 { | 2296 { |
| 2297 v8::Local<v8::Value> v8Value = info[0]; |
2238 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2298 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2239 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeSetter(v8Value, in
fo); | 2299 TestObjectV8Internal::cachedAttributeAnyAttributeAttributeSetter(v8Value, in
fo); |
2240 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2300 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2241 } | 2301 } |
2242 | 2302 |
2243 static void cachedArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 2303 static void cachedArrayAttributeAttributeGetter(const v8::FunctionCallbackInfo<v
8::Value>& info) |
2244 { | 2304 { |
2245 v8::Local<v8::Object> holder = info.Holder(); | 2305 v8::Local<v8::Object> holder = info.Holder(); |
2246 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach
edArrayAttribute"); | 2306 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach
edArrayAttribute"); |
2247 TestObject* impl = V8TestObject::toImpl(holder); | 2307 TestObject* impl = V8TestObject::toImpl(holder); |
2248 if (!impl->isArrayDirty()) { | 2308 if (!impl->isArrayDirty()) { |
2249 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso
late(), holder, propertyName); | 2309 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso
late(), holder, propertyName); |
2250 if (!v8Value.IsEmpty()) { | 2310 if (!v8Value.IsEmpty()) { |
2251 v8SetReturnValue(info, v8Value); | 2311 v8SetReturnValue(info, v8Value); |
2252 return; | 2312 return; |
2253 } | 2313 } |
2254 } | 2314 } |
2255 Vector<String> cppValue(impl->cachedArrayAttribute()); | 2315 Vector<String> cppValue(impl->cachedArrayAttribute()); |
2256 v8::Local<v8::Value> v8Value(toV8(cppValue, info.Holder(), info.GetIsolate()
)); | 2316 v8::Local<v8::Value> v8Value(toV8(cppValue, info.Holder(), info.GetIsolate()
)); |
2257 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val
ue); | 2317 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val
ue); |
2258 v8SetReturnValue(info, v8Value); | 2318 v8SetReturnValue(info, v8Value); |
2259 } | 2319 } |
2260 | 2320 |
2261 static void cachedArrayAttributeAttributeGetterCallback(v8::Local<v8::Name>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 2321 static void cachedArrayAttributeAttributeGetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
2262 { | 2322 { |
2263 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2323 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2264 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info); | 2324 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info); |
2265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2325 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2266 } | 2326 } |
2267 | 2327 |
2268 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 2328 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
2269 { | 2329 { |
2270 v8::Local<v8::Object> holder = info.Holder(); | 2330 v8::Local<v8::Object> holder = info.Holder(); |
2271 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); | 2331 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); |
2272 TestObject* impl = V8TestObject::toImpl(holder); | 2332 TestObject* impl = V8TestObject::toImpl(holder); |
2273 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(),
exceptionState); | 2333 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(),
exceptionState); |
2274 if (exceptionState.throwIfNeeded()) | 2334 if (exceptionState.throwIfNeeded()) |
2275 return; | 2335 return; |
2276 impl->setCachedArrayAttribute(cppValue); | 2336 impl->setCachedArrayAttribute(cppValue); |
2277 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. | 2337 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. |
2278 } | 2338 } |
2279 | 2339 |
2280 static void cachedArrayAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2340 static void cachedArrayAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
2281 { | 2341 { |
| 2342 v8::Local<v8::Value> v8Value = info[0]; |
2282 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2343 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2283 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info); | 2344 TestObjectV8Internal::cachedArrayAttributeAttributeSetter(v8Value, info); |
2284 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2345 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2285 } | 2346 } |
2286 | 2347 |
2287 static void cachedStringOrNoneAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 2348 static void cachedStringOrNoneAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
2288 { | 2349 { |
2289 v8::Local<v8::Object> holder = info.Holder(); | 2350 v8::Local<v8::Object> holder = info.Holder(); |
2290 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach
edStringOrNoneAttribute"); | 2351 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach
edStringOrNoneAttribute"); |
2291 TestObject* impl = V8TestObject::toImpl(holder); | 2352 TestObject* impl = V8TestObject::toImpl(holder); |
2292 if (!impl->isStringDirty()) { | 2353 if (!impl->isStringDirty()) { |
2293 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso
late(), holder, propertyName); | 2354 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso
late(), holder, propertyName); |
2294 if (!v8Value.IsEmpty()) { | 2355 if (!v8Value.IsEmpty()) { |
2295 v8SetReturnValue(info, v8Value); | 2356 v8SetReturnValue(info, v8Value); |
2296 return; | 2357 return; |
2297 } | 2358 } |
2298 } | 2359 } |
2299 String cppValue(impl->cachedStringOrNoneAttribute()); | 2360 String cppValue(impl->cachedStringOrNoneAttribute()); |
2300 v8::Local<v8::Value> v8Value(cppValue.isNull() ? v8::Local<v8::Value>(v8::Nu
ll(info.GetIsolate())) : v8String(info.GetIsolate(), cppValue)); | 2361 v8::Local<v8::Value> v8Value(cppValue.isNull() ? v8::Local<v8::Value>(v8::Nu
ll(info.GetIsolate())) : v8String(info.GetIsolate(), cppValue)); |
2301 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val
ue); | 2362 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val
ue); |
2302 v8SetReturnValue(info, v8Value); | 2363 v8SetReturnValue(info, v8Value); |
2303 } | 2364 } |
2304 | 2365 |
2305 static void cachedStringOrNoneAttributeAttributeGetterCallback(v8::Local<v8::Nam
e>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2366 static void cachedStringOrNoneAttributeAttributeGetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
2306 { | 2367 { |
2307 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2368 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2308 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info); | 2369 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info); |
2309 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2370 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2310 } | 2371 } |
2311 | 2372 |
2312 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 2373 static void cachedStringOrNoneAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::FunctionCallbackInfo<v8::Value>& info) |
2313 { | 2374 { |
2314 v8::Local<v8::Object> holder = info.Holder(); | 2375 v8::Local<v8::Object> holder = info.Holder(); |
2315 TestObject* impl = V8TestObject::toImpl(holder); | 2376 TestObject* impl = V8TestObject::toImpl(holder); |
2316 V8StringResource<TreatNullAsNullString> cppValue = v8Value; | 2377 V8StringResource<TreatNullAsNullString> cppValue = v8Value; |
2317 if (!cppValue.prepare()) | 2378 if (!cppValue.prepare()) |
2318 return; | 2379 return; |
2319 impl->setCachedStringOrNoneAttribute(cppValue); | 2380 impl->setCachedStringOrNoneAttribute(cppValue); |
2320 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu
e. | 2381 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedStringOrNoneAttribute")); // Invalidate the cached valu
e. |
2321 } | 2382 } |
2322 | 2383 |
2323 static void cachedStringOrNoneAttributeAttributeSetterCallback(v8::Local<v8::Nam
e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2384 static void cachedStringOrNoneAttributeAttributeSetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
2324 { | 2385 { |
| 2386 v8::Local<v8::Value> v8Value = info[0]; |
2325 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2387 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2326 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in
fo); | 2388 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeSetter(v8Value, in
fo); |
2327 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2389 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2328 } | 2390 } |
2329 | 2391 |
2330 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) | 2392 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Functi
onCallbackInfo<v8::Value>& info) |
2331 { | 2393 { |
2332 v8::Local<v8::Object> holder = info.Holder(); | 2394 v8::Local<v8::Object> holder = info.Holder(); |
2333 TestObject* impl = V8TestObject::toImpl(holder); | 2395 TestObject* impl = V8TestObject::toImpl(holder); |
2334 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 2396 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
2335 v8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(executionC
ontext).v8Value()); | 2397 v8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(executionC
ontext).v8Value()); |
2336 } | 2398 } |
2337 | 2399 |
2338 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca
l<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2400 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) |
2339 { | 2401 { |
2340 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2402 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2341 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeGetter(in
fo); | 2403 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeGetter(in
fo); |
2342 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2404 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2343 } | 2405 } |
2344 | 2406 |
2345 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2407 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
2346 { | 2408 { |
2347 v8::Local<v8::Object> holder = info.Holder(); | 2409 v8::Local<v8::Object> holder = info.Holder(); |
2348 TestObject* impl = V8TestObject::toImpl(holder); | 2410 TestObject* impl = V8TestObject::toImpl(holder); |
2349 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); | 2411 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); |
2350 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 2412 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
2351 impl->setCallWithExecutionContextAnyAttribute(executionContext, cppValue); | 2413 impl->setCallWithExecutionContextAnyAttribute(executionContext, cppValue); |
2352 } | 2414 } |
2353 | 2415 |
2354 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca
l<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 2416 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) |
2355 { | 2417 { |
| 2418 v8::Local<v8::Value> v8Value = info[0]; |
2356 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2419 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2357 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeSetter(v8
Value, info); | 2420 TestObjectV8Internal::callWithExecutionContextAnyAttributeAttributeSetter(v8
Value, info); |
2358 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2421 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2359 } | 2422 } |
2360 | 2423 |
2361 static void callWithScriptStateAnyAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) | 2424 static void callWithScriptStateAnyAttributeAttributeGetter(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
2362 { | 2425 { |
2363 v8::Local<v8::Object> holder = info.Holder(); | 2426 v8::Local<v8::Object> holder = info.Holder(); |
2364 TestObject* impl = V8TestObject::toImpl(holder); | 2427 TestObject* impl = V8TestObject::toImpl(holder); |
2365 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 2428 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
2366 v8SetReturnValue(info, impl->callWithScriptStateAnyAttribute(scriptState).v8
Value()); | 2429 v8SetReturnValue(info, impl->callWithScriptStateAnyAttribute(scriptState).v8
Value()); |
2367 } | 2430 } |
2368 | 2431 |
2369 static void callWithScriptStateAnyAttributeAttributeGetterCallback(v8::Local<v8:
:Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2432 static void callWithScriptStateAnyAttributeAttributeGetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
2370 { | 2433 { |
2371 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2434 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2372 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeGetter(info); | 2435 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeGetter(info); |
2373 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2436 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2374 } | 2437 } |
2375 | 2438 |
2376 static void callWithScriptStateAnyAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 2439 static void callWithScriptStateAnyAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
2377 { | 2440 { |
2378 v8::Local<v8::Object> holder = info.Holder(); | 2441 v8::Local<v8::Object> holder = info.Holder(); |
2379 TestObject* impl = V8TestObject::toImpl(holder); | 2442 TestObject* impl = V8TestObject::toImpl(holder); |
2380 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); | 2443 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); |
2381 impl->setCallWithScriptStateAnyAttribute(scriptState, cppValue); | 2444 impl->setCallWithScriptStateAnyAttribute(scriptState, cppValue); |
2382 } | 2445 } |
2383 | 2446 |
2384 static void callWithScriptStateAnyAttributeAttributeSetterCallback(v8::Local<v8:
:Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info
) | 2447 static void callWithScriptStateAnyAttributeAttributeSetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
2385 { | 2448 { |
| 2449 v8::Local<v8::Value> v8Value = info[0]; |
2386 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2450 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2387 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeSetter(v8Value
, info); | 2451 TestObjectV8Internal::callWithScriptStateAnyAttributeAttributeSetter(v8Value
, info); |
2388 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2452 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2389 } | 2453 } |
2390 | 2454 |
2391 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 2455 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetter(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
2392 { | 2456 { |
2393 v8::Local<v8::Object> holder = info.Holder(); | 2457 v8::Local<v8::Object> holder = info.Holder(); |
2394 TestObject* impl = V8TestObject::toImpl(holder); | 2458 TestObject* impl = V8TestObject::toImpl(holder); |
2395 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 2459 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
2396 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); | 2460 ScriptState* scriptState = ScriptState::current(info.GetIsolate()); |
2397 v8SetReturnValue(info, impl->callWithExecutionContextAndScriptStateAnyAttrib
ute(scriptState, executionContext).v8Value()); | 2461 v8SetReturnValue(info, impl->callWithExecutionContextAndScriptStateAnyAttrib
ute(scriptState, executionContext).v8Value()); |
2398 } | 2462 } |
2399 | 2463 |
2400 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCal
lback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2464 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCal
lback(const v8::FunctionCallbackInfo<v8::Value>& info) |
2401 { | 2465 { |
2402 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2466 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2403 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr
ibuteGetter(info); | 2467 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr
ibuteGetter(info); |
2404 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2468 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2405 } | 2469 } |
2406 | 2470 |
2407 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2471 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
2408 { | 2472 { |
2409 v8::Local<v8::Object> holder = info.Holder(); | 2473 v8::Local<v8::Object> holder = info.Holder(); |
2410 TestObject* impl = V8TestObject::toImpl(holder); | 2474 TestObject* impl = V8TestObject::toImpl(holder); |
2411 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); | 2475 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); |
2412 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 2476 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
2413 impl->setCallWithExecutionContextAndScriptStateAnyAttribute(scriptState, exe
cutionContext, cppValue); | 2477 impl->setCallWithExecutionContextAndScriptStateAnyAttribute(scriptState, exe
cutionContext, cppValue); |
2414 } | 2478 } |
2415 | 2479 |
2416 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetterCal
lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 2480 static void callWithExecutionContextAndScriptStateAnyAttributeAttributeSetterCal
lback(const v8::FunctionCallbackInfo<v8::Value>& info) |
2417 { | 2481 { |
| 2482 v8::Local<v8::Value> v8Value = info[0]; |
2418 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2483 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2419 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr
ibuteSetter(v8Value, info); | 2484 TestObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttr
ibuteSetter(v8Value, info); |
2420 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2485 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2421 } | 2486 } |
2422 | 2487 |
2423 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) | 2488 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v
8::FunctionCallbackInfo<v8::Value>& info) |
2424 { | 2489 { |
2425 v8::Local<v8::Object> holder = info.Holder(); | 2490 v8::Local<v8::Object> holder = info.Holder(); |
2426 TestObject* impl = V8TestObject::toImpl(holder); | 2491 TestObject* impl = V8TestObject::toImpl(holder); |
2427 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF
orNodeReadonlyDocumentAttribute", "TestObject", holder, info.GetIsolate()); | 2492 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF
orNodeReadonlyDocumentAttribute", "TestObject", holder, info.GetIsolate()); |
2428 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check
SecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { | 2493 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check
SecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { |
2429 v8SetReturnValueNull(info); | 2494 v8SetReturnValueNull(info); |
2430 exceptionState.throwIfNeeded(); | 2495 exceptionState.throwIfNeeded(); |
2431 return; | 2496 return; |
2432 } | 2497 } |
2433 v8SetReturnValueFast(info, WTF::getPtr(impl->checkSecurityForNodeReadonlyDoc
umentAttribute()), impl); | 2498 v8SetReturnValueFast(info, WTF::getPtr(impl->checkSecurityForNodeReadonlyDoc
umentAttribute()), impl); |
2434 } | 2499 } |
2435 | 2500 |
2436 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback
(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2501 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) |
2437 { | 2502 { |
2438 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2503 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2439 TestObjectV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAttribute
Getter(info); | 2504 TestObjectV8Internal::checkSecurityForNodeReadonlyDocumentAttributeAttribute
Getter(info); |
2440 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2505 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2441 } | 2506 } |
2442 | 2507 |
2443 #if ENABLE(CONDITION) | 2508 #if ENABLE(CONDITION) |
2444 static void conditionalLongAttributeAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) | 2509 static void conditionalLongAttributeAttributeGetter(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
2445 { | 2510 { |
2446 v8::Local<v8::Object> holder = info.Holder(); | 2511 v8::Local<v8::Object> holder = info.Holder(); |
2447 TestObject* impl = V8TestObject::toImpl(holder); | 2512 TestObject* impl = V8TestObject::toImpl(holder); |
2448 v8SetReturnValueInt(info, impl->conditionalLongAttribute()); | 2513 v8SetReturnValueInt(info, impl->conditionalLongAttribute()); |
2449 } | 2514 } |
2450 #endif // ENABLE(CONDITION) | 2515 #endif // ENABLE(CONDITION) |
2451 | 2516 |
2452 #if ENABLE(CONDITION) | 2517 #if ENABLE(CONDITION) |
2453 static void conditionalLongAttributeAttributeGetterCallback(v8::Local<v8::Name>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 2518 static void conditionalLongAttributeAttributeGetterCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
2454 { | 2519 { |
2455 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2520 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2456 TestObjectV8Internal::conditionalLongAttributeAttributeGetter(info); | 2521 TestObjectV8Internal::conditionalLongAttributeAttributeGetter(info); |
2457 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2522 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2458 } | 2523 } |
2459 #endif // ENABLE(CONDITION) | 2524 #endif // ENABLE(CONDITION) |
2460 | 2525 |
2461 #if ENABLE(CONDITION) | 2526 #if ENABLE(CONDITION) |
2462 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) | 2527 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::FunctionCallbackInfo<v8::Value>& info) |
2463 { | 2528 { |
2464 v8::Local<v8::Object> holder = info.Holder(); | 2529 v8::Local<v8::Object> holder = info.Holder(); |
2465 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon
gAttribute", "TestObject", holder, info.GetIsolate()); | 2530 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon
gAttribute", "TestObject", holder, info.GetIsolate()); |
2466 TestObject* impl = V8TestObject::toImpl(holder); | 2531 TestObject* impl = V8TestObject::toImpl(holder); |
2467 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 2532 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
2468 if (exceptionState.throwIfNeeded()) | 2533 if (exceptionState.throwIfNeeded()) |
2469 return; | 2534 return; |
2470 impl->setConditionalLongAttribute(cppValue); | 2535 impl->setConditionalLongAttribute(cppValue); |
2471 } | 2536 } |
2472 #endif // ENABLE(CONDITION) | 2537 #endif // ENABLE(CONDITION) |
2473 | 2538 |
2474 #if ENABLE(CONDITION) | 2539 #if ENABLE(CONDITION) |
2475 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::Name>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2540 static void conditionalLongAttributeAttributeSetterCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
2476 { | 2541 { |
| 2542 v8::Local<v8::Value> v8Value = info[0]; |
2477 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2543 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2478 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info)
; | 2544 TestObjectV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info)
; |
2479 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2545 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2480 } | 2546 } |
2481 #endif // ENABLE(CONDITION) | 2547 #endif // ENABLE(CONDITION) |
2482 | 2548 |
2483 static void testInterfaceEmptyConstructorAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2549 static void testInterfaceEmptyConstructorAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2484 { | 2550 { |
2485 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "test
InterfaceEmptyConstructorAttribute"); | 2551 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "test
InterfaceEmptyConstructorAttribute"); |
2486 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info); | 2552 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2599 | 2665 |
2600 #if ENABLE(CONDITION) | 2666 #if ENABLE(CONDITION) |
2601 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2667 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
2602 { | 2668 { |
2603 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2669 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2604 V8TestObject::customLongAttributeAttributeSetterCustom(v8Value, info); | 2670 V8TestObject::customLongAttributeAttributeSetterCustom(v8Value, info); |
2605 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2671 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2606 } | 2672 } |
2607 #endif // ENABLE(CONDITION) | 2673 #endif // ENABLE(CONDITION) |
2608 | 2674 |
2609 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 2675 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8
::FunctionCallbackInfo<v8::Value>& info) |
2610 { | 2676 { |
2611 v8::Local<v8::Object> holder = info.Holder(); | 2677 v8::Local<v8::Object> holder = info.Holder(); |
2612 TestObject* impl = V8TestObject::toImpl(holder); | 2678 TestObject* impl = V8TestObject::toImpl(holder); |
2613 v8SetReturnValueInt(info, impl->customElementsCallbacksReadonlyLongAttribute
()); | 2679 v8SetReturnValueInt(info, impl->customElementsCallbacksReadonlyLongAttribute
()); |
2614 } | 2680 } |
2615 | 2681 |
2616 static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback(
v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2682 static void customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
2617 { | 2683 { |
2618 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2684 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2619 TestObjectV8Internal::customElementsCallbacksReadonlyLongAttributeAttributeG
etter(info); | 2685 TestObjectV8Internal::customElementsCallbacksReadonlyLongAttributeAttributeG
etter(info); |
2620 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2686 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2621 } | 2687 } |
2622 | 2688 |
2623 static void deprecatedLongAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 2689 static void deprecatedLongAttributeAttributeGetter(const v8::FunctionCallbackInf
o<v8::Value>& info) |
2624 { | 2690 { |
2625 v8::Local<v8::Object> holder = info.Holder(); | 2691 v8::Local<v8::Object> holder = info.Holder(); |
2626 TestObject* impl = V8TestObject::toImpl(holder); | 2692 TestObject* impl = V8TestObject::toImpl(holder); |
2627 v8SetReturnValueInt(info, impl->deprecatedLongAttribute()); | 2693 v8SetReturnValueInt(info, impl->deprecatedLongAttribute()); |
2628 } | 2694 } |
2629 | 2695 |
2630 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::Name>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 2696 static void deprecatedLongAttributeAttributeGetterCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
2631 { | 2697 { |
2632 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2698 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2633 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); | 2699 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); |
2634 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); | 2700 TestObjectV8Internal::deprecatedLongAttributeAttributeGetter(info); |
2635 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2701 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2636 } | 2702 } |
2637 | 2703 |
2638 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 2704 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::FunctionCallbackInfo<v8::Value>& info) |
2639 { | 2705 { |
2640 v8::Local<v8::Object> holder = info.Holder(); | 2706 v8::Local<v8::Object> holder = info.Holder(); |
2641 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong
Attribute", "TestObject", holder, info.GetIsolate()); | 2707 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong
Attribute", "TestObject", holder, info.GetIsolate()); |
2642 TestObject* impl = V8TestObject::toImpl(holder); | 2708 TestObject* impl = V8TestObject::toImpl(holder); |
2643 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 2709 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
2644 if (exceptionState.throwIfNeeded()) | 2710 if (exceptionState.throwIfNeeded()) |
2645 return; | 2711 return; |
2646 impl->setDeprecatedLongAttribute(cppValue); | 2712 impl->setDeprecatedLongAttribute(cppValue); |
2647 } | 2713 } |
2648 | 2714 |
2649 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::Name>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2715 static void deprecatedLongAttributeAttributeSetterCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
2650 { | 2716 { |
| 2717 v8::Local<v8::Value> v8Value = info[0]; |
2651 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2718 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2652 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); | 2719 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::LongAttribute); |
2653 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); | 2720 TestObjectV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info); |
2654 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2721 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2655 } | 2722 } |
2656 | 2723 |
2657 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 2724 static void enforceRangeLongAttributeAttributeGetter(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
2658 { | 2725 { |
2659 v8::Local<v8::Object> holder = info.Holder(); | 2726 v8::Local<v8::Object> holder = info.Holder(); |
2660 TestObject* impl = V8TestObject::toImpl(holder); | 2727 TestObject* impl = V8TestObject::toImpl(holder); |
2661 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute()); | 2728 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute()); |
2662 } | 2729 } |
2663 | 2730 |
2664 static void enforceRangeLongAttributeAttributeGetterCallback(v8::Local<v8::Name>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 2731 static void enforceRangeLongAttributeAttributeGetterCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
2665 { | 2732 { |
2666 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2733 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2667 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); | 2734 TestObjectV8Internal::enforceRangeLongAttributeAttributeGetter(info); |
2668 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2735 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2669 } | 2736 } |
2670 | 2737 |
2671 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 2738 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::FunctionCallbackInfo<v8::Value>& info) |
2672 { | 2739 { |
2673 v8::Local<v8::Object> holder = info.Holder(); | 2740 v8::Local<v8::Object> holder = info.Holder(); |
2674 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo
ngAttribute", "TestObject", holder, info.GetIsolate()); | 2741 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo
ngAttribute", "TestObject", holder, info.GetIsolate()); |
2675 TestObject* impl = V8TestObject::toImpl(holder); | 2742 TestObject* impl = V8TestObject::toImpl(holder); |
2676 int cppValue = toInt32(info.GetIsolate(), v8Value, EnforceRange, exceptionSt
ate); | 2743 int cppValue = toInt32(info.GetIsolate(), v8Value, EnforceRange, exceptionSt
ate); |
2677 if (exceptionState.throwIfNeeded()) | 2744 if (exceptionState.throwIfNeeded()) |
2678 return; | 2745 return; |
2679 impl->setEnforceRangeLongAttribute(cppValue); | 2746 impl->setEnforceRangeLongAttribute(cppValue); |
2680 } | 2747 } |
2681 | 2748 |
2682 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Name>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2749 static void enforceRangeLongAttributeAttributeSetterCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
2683 { | 2750 { |
| 2751 v8::Local<v8::Value> v8Value = info[0]; |
2684 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2752 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2685 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info
); | 2753 TestObjectV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value, info
); |
2686 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2754 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2687 } | 2755 } |
2688 | 2756 |
2689 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) | 2757 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) |
2690 { | 2758 { |
2691 v8::Local<v8::Object> holder = info.Holder(); | 2759 v8::Local<v8::Object> holder = info.Holder(); |
2692 TestObject* impl = V8TestObject::toImpl(holder); | 2760 TestObject* impl = V8TestObject::toImpl(holder); |
2693 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); | 2761 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); |
(...skipping 18 matching lines...) Expand all Loading... |
2712 } | 2780 } |
2713 | 2781 |
2714 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 2782 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
2715 { | 2783 { |
2716 v8::Local<v8::Value> v8Value = info[0]; | 2784 v8::Local<v8::Value> v8Value = info[0]; |
2717 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2785 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2718 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value,
info); | 2786 TestObjectV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8Value,
info); |
2719 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2787 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2720 } | 2788 } |
2721 | 2789 |
2722 static void implementedAsLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) | 2790 static void implementedAsLongAttributeAttributeGetter(const v8::FunctionCallback
Info<v8::Value>& info) |
2723 { | 2791 { |
2724 v8::Local<v8::Object> holder = info.Holder(); | 2792 v8::Local<v8::Object> holder = info.Holder(); |
2725 TestObject* impl = V8TestObject::toImpl(holder); | 2793 TestObject* impl = V8TestObject::toImpl(holder); |
2726 v8SetReturnValueInt(info, impl->implementedAsName()); | 2794 v8SetReturnValueInt(info, impl->implementedAsName()); |
2727 } | 2795 } |
2728 | 2796 |
2729 static void implementedAsLongAttributeAttributeGetterCallback(v8::Local<v8::Name
>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2797 static void implementedAsLongAttributeAttributeGetterCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
2730 { | 2798 { |
2731 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2799 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2732 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); | 2800 TestObjectV8Internal::implementedAsLongAttributeAttributeGetter(info); |
2733 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2801 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2734 } | 2802 } |
2735 | 2803 |
2736 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 2804 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::FunctionCallbackInfo<v8::Value>& info) |
2737 { | 2805 { |
2738 v8::Local<v8::Object> holder = info.Holder(); | 2806 v8::Local<v8::Object> holder = info.Holder(); |
2739 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL
ongAttribute", "TestObject", holder, info.GetIsolate()); | 2807 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL
ongAttribute", "TestObject", holder, info.GetIsolate()); |
2740 TestObject* impl = V8TestObject::toImpl(holder); | 2808 TestObject* impl = V8TestObject::toImpl(holder); |
2741 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 2809 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
2742 if (exceptionState.throwIfNeeded()) | 2810 if (exceptionState.throwIfNeeded()) |
2743 return; | 2811 return; |
2744 impl->setImplementedAsName(cppValue); | 2812 impl->setImplementedAsName(cppValue); |
2745 } | 2813 } |
2746 | 2814 |
2747 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Name
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2815 static void implementedAsLongAttributeAttributeSetterCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
2748 { | 2816 { |
| 2817 v8::Local<v8::Value> v8Value = info[0]; |
2749 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2818 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2750 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf
o); | 2819 TestObjectV8Internal::implementedAsLongAttributeAttributeSetter(v8Value, inf
o); |
2751 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2820 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2752 } | 2821 } |
2753 | 2822 |
2754 static void customImplementedAsLongAttributeAttributeGetterCallback(v8::Local<v8
::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2823 static void customImplementedAsLongAttributeAttributeGetterCallback(v8::Local<v8
::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) |
2755 { | 2824 { |
2756 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2825 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2757 V8TestObject::customImplementedAsLongAttributeAttributeGetterCustom(info); | 2826 V8TestObject::customImplementedAsLongAttributeAttributeGetterCustom(info); |
2758 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2827 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2804 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2873 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2805 } | 2874 } |
2806 | 2875 |
2807 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 2876 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) |
2808 { | 2877 { |
2809 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2878 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2810 V8TestObject::customSetterImplementedAsLongAttributeAttributeSetterCustom(v8
Value, info); | 2879 V8TestObject::customSetterImplementedAsLongAttributeAttributeSetterCustom(v8
Value, info); |
2811 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2880 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2812 } | 2881 } |
2813 | 2882 |
2814 static void measureAsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 2883 static void measureAsLongAttributeAttributeGetter(const v8::FunctionCallbackInfo
<v8::Value>& info) |
2815 { | 2884 { |
2816 v8::Local<v8::Object> holder = info.Holder(); | 2885 v8::Local<v8::Object> holder = info.Holder(); |
2817 TestObject* impl = V8TestObject::toImpl(holder); | 2886 TestObject* impl = V8TestObject::toImpl(holder); |
2818 v8SetReturnValueInt(info, impl->measureAsLongAttribute()); | 2887 v8SetReturnValueInt(info, impl->measureAsLongAttribute()); |
2819 } | 2888 } |
2820 | 2889 |
2821 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 2890 static void measureAsLongAttributeAttributeGetterCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
2822 { | 2891 { |
2823 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2892 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2824 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); | 2893 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); |
2825 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); | 2894 TestObjectV8Internal::measureAsLongAttributeAttributeGetter(info); |
2826 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2895 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2827 } | 2896 } |
2828 | 2897 |
2829 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 2898 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::FunctionCallbackInfo<v8::Value>& info) |
2830 { | 2899 { |
2831 v8::Local<v8::Object> holder = info.Holder(); | 2900 v8::Local<v8::Object> holder = info.Holder(); |
2832 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA
ttribute", "TestObject", holder, info.GetIsolate()); | 2901 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA
ttribute", "TestObject", holder, info.GetIsolate()); |
2833 TestObject* impl = V8TestObject::toImpl(holder); | 2902 TestObject* impl = V8TestObject::toImpl(holder); |
2834 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 2903 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
2835 if (exceptionState.throwIfNeeded()) | 2904 if (exceptionState.throwIfNeeded()) |
2836 return; | 2905 return; |
2837 impl->setMeasureAsLongAttribute(cppValue); | 2906 impl->setMeasureAsLongAttribute(cppValue); |
2838 } | 2907 } |
2839 | 2908 |
2840 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2909 static void measureAsLongAttributeAttributeSetterCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
2841 { | 2910 { |
| 2911 v8::Local<v8::Value> v8Value = info[0]; |
2842 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2912 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2843 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); | 2913 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::TestFeature); |
2844 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); | 2914 TestObjectV8Internal::measureAsLongAttributeAttributeSetter(v8Value, info); |
2845 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2915 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2846 } | 2916 } |
2847 | 2917 |
2848 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) | 2918 static void notEnumerableLongAttributeAttributeGetter(const v8::FunctionCallback
Info<v8::Value>& info) |
2849 { | 2919 { |
2850 v8::Local<v8::Object> holder = info.Holder(); | 2920 v8::Local<v8::Object> holder = info.Holder(); |
2851 TestObject* impl = V8TestObject::toImpl(holder); | 2921 TestObject* impl = V8TestObject::toImpl(holder); |
2852 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute()); | 2922 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute()); |
2853 } | 2923 } |
2854 | 2924 |
2855 static void notEnumerableLongAttributeAttributeGetterCallback(v8::Local<v8::Name
>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2925 static void notEnumerableLongAttributeAttributeGetterCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
2856 { | 2926 { |
2857 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2927 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2858 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); | 2928 TestObjectV8Internal::notEnumerableLongAttributeAttributeGetter(info); |
2859 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2929 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2860 } | 2930 } |
2861 | 2931 |
2862 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 2932 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::FunctionCallbackInfo<v8::Value>& info) |
2863 { | 2933 { |
2864 v8::Local<v8::Object> holder = info.Holder(); | 2934 v8::Local<v8::Object> holder = info.Holder(); |
2865 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL
ongAttribute", "TestObject", holder, info.GetIsolate()); | 2935 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL
ongAttribute", "TestObject", holder, info.GetIsolate()); |
2866 TestObject* impl = V8TestObject::toImpl(holder); | 2936 TestObject* impl = V8TestObject::toImpl(holder); |
2867 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 2937 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
2868 if (exceptionState.throwIfNeeded()) | 2938 if (exceptionState.throwIfNeeded()) |
2869 return; | 2939 return; |
2870 impl->setNotEnumerableLongAttribute(cppValue); | 2940 impl->setNotEnumerableLongAttribute(cppValue); |
2871 } | 2941 } |
2872 | 2942 |
2873 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Name
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 2943 static void notEnumerableLongAttributeAttributeSetterCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
2874 { | 2944 { |
| 2945 v8::Local<v8::Value> v8Value = info[0]; |
2875 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2946 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2876 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf
o); | 2947 TestObjectV8Internal::notEnumerableLongAttributeAttributeSetter(v8Value, inf
o); |
2877 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2948 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2878 } | 2949 } |
2879 | 2950 |
2880 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 2951 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetter(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
2881 { | 2952 { |
2882 v8::Local<v8::Object> holder = info.Holder(); | 2953 v8::Local<v8::Object> holder = info.Holder(); |
2883 TestObject* impl = V8TestObject::toImpl(holder); | 2954 TestObject* impl = V8TestObject::toImpl(holder); |
2884 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf
aceEmptyAttribute()); | 2955 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf
aceEmptyAttribute()); |
2885 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) | 2956 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) |
2886 return; | 2957 return; |
2887 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate())
); | 2958 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate())
); |
2888 if (!v8Value.IsEmpty()) { | 2959 if (!v8Value.IsEmpty()) { |
2889 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), v8Val
ue); | 2960 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), v8Val
ue); |
2890 v8SetReturnValue(info, v8Value); | 2961 v8SetReturnValue(info, v8Value); |
2891 } | 2962 } |
2892 } | 2963 } |
2893 | 2964 |
2894 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 2965 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llback(const v8::FunctionCallbackInfo<v8::Value>& info) |
2895 { | 2966 { |
2896 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2967 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2897 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt
ributeGetter(info); | 2968 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt
ributeGetter(info); |
2898 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2969 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2899 } | 2970 } |
2900 | 2971 |
2901 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo
rMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 2972 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterFo
rMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
2902 { | 2973 { |
2903 v8::Local<v8::Object> holder = info.Holder(); | 2974 v8::Local<v8::Object> holder = info.Holder(); |
2904 TestObject* impl = V8TestObject::toImpl(holder); | 2975 TestObject* impl = V8TestObject::toImpl(holder); |
2905 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf
aceEmptyAttribute()); | 2976 RefPtr<TestInterfaceEmpty> cppValue(impl->perWorldBindingsReadonlyTestInterf
aceEmptyAttribute()); |
2906 if (cppValue && DOMDataStore::setReturnValueForMainWorld(info.GetReturnValue
(), cppValue.get())) | 2977 if (cppValue && DOMDataStore::setReturnValueForMainWorld(info.GetReturnValue
(), cppValue.get())) |
2907 return; | 2978 return; |
2908 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate())
); | 2979 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate())
); |
2909 if (!v8Value.IsEmpty()) { | 2980 if (!v8Value.IsEmpty()) { |
2910 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), v8Val
ue); | 2981 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "perWorldBindingsReadonlyTestInterfaceEmptyAttribute"), v8Val
ue); |
2911 v8SetReturnValue(info, v8Value); | 2982 v8SetReturnValue(info, v8Value); |
2912 } | 2983 } |
2913 } | 2984 } |
2914 | 2985 |
2915 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llbackForMainWorld(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value
>& info) | 2986 static void perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCa
llbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
2916 { | 2987 { |
2917 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2918 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt
ributeGetterForMainWorld(info); | 2989 TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAtt
ributeGetterForMainWorld(info); |
2919 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2920 } | 2991 } |
2921 | 2992 |
2922 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 2993 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
2923 { | 2994 { |
2924 v8::Local<v8::Object> holder = info.Holder(); | 2995 v8::Local<v8::Object> holder = info.Holder(); |
2925 TestObject* impl = V8TestObject::toImpl(holder); | 2996 TestObject* impl = V8TestObject::toImpl(holder); |
2926 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); | 2997 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); |
2927 } | 2998 } |
2928 | 2999 |
2929 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3000 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lback(const v8::FunctionCallbackInfo<v8::Value>& info) |
2930 { | 3001 { |
2931 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3002 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2932 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 3003 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2933 V8PerContextData* contextData = scriptState->perContextData(); | 3004 V8PerContextData* contextData = scriptState->perContextData(); |
2934 if (contextData && contextData->activityLogger()) | 3005 if (contextData && contextData->activityLogger()) |
2935 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); | 3006 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); |
2936 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 3007 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetter(info); |
2937 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3008 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2938 } | 3009 } |
2939 | 3010 |
2940 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3011 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
2941 { | 3012 { |
2942 v8::Local<v8::Object> holder = info.Holder(); | 3013 v8::Local<v8::Object> holder = info.Holder(); |
2943 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 3014 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2944 TestObject* impl = V8TestObject::toImpl(holder); | 3015 TestObject* impl = V8TestObject::toImpl(holder); |
2945 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 3016 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
2946 if (exceptionState.throwIfNeeded()) | 3017 if (exceptionState.throwIfNeeded()) |
2947 return; | 3018 return; |
2948 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 3019 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2949 } | 3020 } |
2950 | 3021 |
2951 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 3022 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lback(const v8::FunctionCallbackInfo<v8::Value>& info) |
2952 { | 3023 { |
| 3024 v8::Local<v8::Value> v8Value = info[0]; |
2953 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3025 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2954 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 3026 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2955 V8PerContextData* contextData = scriptState->perContextData(); | 3027 V8PerContextData* contextData = scriptState->perContextData(); |
2956 if (contextData && contextData->activityLogger()) { | 3028 if (contextData && contextData->activityLogger()) { |
2957 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); | 3029 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); |
2958 } | 3030 } |
2959 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); | 3031 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); |
2960 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3032 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2961 } | 3033 } |
2962 | 3034 |
2963 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 3035 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
2964 { | 3036 { |
2965 v8::Local<v8::Object> holder = info.Holder(); | 3037 v8::Local<v8::Object> holder = info.Holder(); |
2966 TestObject* impl = V8TestObject::toImpl(holder); | 3038 TestObject* impl = V8TestObject::toImpl(holder); |
2967 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); | 3039 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt
ribute()); |
2968 } | 3040 } |
2969 | 3041 |
2970 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>
& info) | 3042 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
2971 { | 3043 { |
2972 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3044 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
2973 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 3045 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2974 V8PerContextData* contextData = scriptState->perContextData(); | 3046 V8PerContextData* contextData = scriptState->perContextData(); |
2975 if (contextData && contextData->activityLogger()) | 3047 if (contextData && contextData->activityLogger()) |
2976 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); | 3048 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute"); |
2977 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 3049 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); |
2978 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3050 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
2979 } | 3051 } |
2980 | 3052 |
2981 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 3053 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value
>& info) |
2982 { | 3054 { |
2983 v8::Local<v8::Object> holder = info.Holder(); | 3055 v8::Local<v8::Object> holder = info.Holder(); |
2984 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 3056 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
2985 TestObject* impl = V8TestObject::toImpl(holder); | 3057 TestObject* impl = V8TestObject::toImpl(holder); |
2986 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 3058 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
2987 if (exceptionState.throwIfNeeded()) | 3059 if (exceptionState.throwIfNeeded()) |
2988 return; | 3060 return; |
2989 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); | 3061 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); |
2990 } | 3062 } |
2991 | 3063 |
2992 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::P
ropertyCallbackInfo<void>& info) | 3064 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
2993 { | 3065 { |
| 3066 v8::Local<v8::Value> v8Value = info[0]; |
2994 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3067 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
2995 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 3068 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
2996 V8PerContextData* contextData = scriptState->perContextData(); | 3069 V8PerContextData* contextData = scriptState->perContextData(); |
2997 if (contextData && contextData->activityLogger()) { | 3070 if (contextData && contextData->activityLogger()) { |
2998 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); | 3071 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssPerWorldBindingsLongAttribute", v8Value); |
2999 } | 3072 } |
3000 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); | 3073 TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); |
3001 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3074 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3002 } | 3075 } |
3003 | 3076 |
3004 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 3077 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
3005 { | 3078 { |
3006 v8::Local<v8::Object> holder = info.Holder(); | 3079 v8::Local<v8::Object> holder = info.Holder(); |
3007 TestObject* impl = V8TestObject::toImpl(holder); | 3080 TestObject* impl = V8TestObject::toImpl(holder); |
3008 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 3081 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
3009 } | 3082 } |
3010 | 3083 |
3011 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::V
alue>& info) | 3084 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
3012 { | 3085 { |
3013 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3086 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3014 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 3087 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
3015 V8PerContextData* contextData = scriptState->perContextData(); | 3088 V8PerContextData* contextData = scriptState->perContextData(); |
3016 if (contextData && contextData->activityLogger()) | 3089 if (contextData && contextData->activityLogger()) |
3017 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute"); | 3090 contextData->activityLogger()->logGetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute"); |
3018 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 3091 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); |
3019 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3092 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3020 } | 3093 } |
3021 | 3094 |
3022 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 3095 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::
Value>& info) |
3023 { | 3096 { |
3024 v8::Local<v8::Object> holder = info.Holder(); | 3097 v8::Local<v8::Object> holder = info.Holder(); |
3025 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 3098 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
3026 TestObject* impl = V8TestObject::toImpl(holder); | 3099 TestObject* impl = V8TestObject::toImpl(holder); |
3027 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 3100 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
3028 if (exceptionState.throwIfNeeded()) | 3101 if (exceptionState.throwIfNeeded()) |
3029 return; | 3102 return; |
3030 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 3103 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
3031 } | 3104 } |
3032 | 3105 |
3033 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 3106 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
3034 { | 3107 { |
| 3108 v8::Local<v8::Value> v8Value = info[0]; |
3035 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3109 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3036 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 3110 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
3037 V8PerContextData* contextData = scriptState->perContextData(); | 3111 V8PerContextData* contextData = scriptState->perContextData(); |
3038 if (contextData && contextData->activityLogger()) { | 3112 if (contextData && contextData->activityLogger()) { |
3039 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); | 3113 contextData->activityLogger()->logSetter("TestObject.activityLoggingAcce
ssForIsolatedWorldsPerWorldBindingsLongAttribute", v8Value); |
3040 } | 3114 } |
3041 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); | 3115 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); |
3042 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3116 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3043 } | 3117 } |
3044 | 3118 |
3045 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 3119 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
3046 { | 3120 { |
3047 v8::Local<v8::Object> holder = info.Holder(); | 3121 v8::Local<v8::Object> holder = info.Holder(); |
3048 TestObject* impl = V8TestObject::toImpl(holder); | 3122 TestObject* impl = V8TestObject::toImpl(holder); |
3049 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 3123 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
3050 } | 3124 } |
3051 | 3125 |
3052 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::Name>, const v8::PropertyCallba
ckInfo<v8::Value>& info) | 3126 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
3053 { | 3127 { |
3054 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3128 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3055 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); | 3129 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); |
3056 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3130 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3057 } | 3131 } |
3058 | 3132 |
3059 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 3133 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallb
ackInfo<v8::Value>& info) |
3060 { | 3134 { |
3061 v8::Local<v8::Object> holder = info.Holder(); | 3135 v8::Local<v8::Object> holder = info.Holder(); |
3062 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 3136 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
3063 TestObject* impl = V8TestObject::toImpl(holder); | 3137 TestObject* impl = V8TestObject::toImpl(holder); |
3064 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 3138 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
3065 if (exceptionState.throwIfNeeded()) | 3139 if (exceptionState.throwIfNeeded()) |
3066 return; | 3140 return; |
3067 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 3141 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
3068 } | 3142 } |
3069 | 3143 |
3070 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3144 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
3071 { | 3145 { |
| 3146 v8::Local<v8::Value> v8Value = info[0]; |
3072 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3147 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3073 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); | 3148 TestObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); |
3074 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3149 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3075 } | 3150 } |
3076 | 3151 |
3077 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 3152 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
3078 { | 3153 { |
3079 v8::Local<v8::Object> holder = info.Holder(); | 3154 v8::Local<v8::Object> holder = info.Holder(); |
3080 TestObject* impl = V8TestObject::toImpl(holder); | 3155 TestObject* impl = V8TestObject::toImpl(holder); |
3081 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); | 3156 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); |
3082 } | 3157 } |
3083 | 3158 |
3084 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3159 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lback(const v8::FunctionCallbackInfo<v8::Value>& info) |
3085 { | 3160 { |
3086 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3161 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3087 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 3162 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
3088 V8PerContextData* contextData = scriptState->perContextData(); | 3163 V8PerContextData* contextData = scriptState->perContextData(); |
3089 if (contextData && contextData->activityLogger()) | 3164 if (contextData && contextData->activityLogger()) |
3090 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); | 3165 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); |
3091 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetter(info); | 3166 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetter(info); |
3092 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3167 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3093 } | 3168 } |
3094 | 3169 |
3095 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3170 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
3096 { | 3171 { |
3097 v8::Local<v8::Object> holder = info.Holder(); | 3172 v8::Local<v8::Object> holder = info.Holder(); |
3098 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 3173 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
3099 TestObject* impl = V8TestObject::toImpl(holder); | 3174 TestObject* impl = V8TestObject::toImpl(holder); |
3100 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 3175 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
3101 if (exceptionState.throwIfNeeded()) | 3176 if (exceptionState.throwIfNeeded()) |
3102 return; | 3177 return; |
3103 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 3178 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
3104 } | 3179 } |
3105 | 3180 |
3106 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 3181 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lback(const v8::FunctionCallbackInfo<v8::Value>& info) |
3107 { | 3182 { |
| 3183 v8::Local<v8::Value> v8Value = info[0]; |
3108 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3184 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3109 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); | 3185 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetter(v8Value, info); |
3110 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3186 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3111 } | 3187 } |
3112 | 3188 |
3113 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 3189 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor
MainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
3114 { | 3190 { |
3115 v8::Local<v8::Object> holder = info.Holder(); | 3191 v8::Local<v8::Object> holder = info.Holder(); |
3116 TestObject* impl = V8TestObject::toImpl(holder); | 3192 TestObject* impl = V8TestObject::toImpl(holder); |
3117 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); | 3193 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt
ribute()); |
3118 } | 3194 } |
3119 | 3195 |
3120 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>
& info) | 3196 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal
lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
3121 { | 3197 { |
3122 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3198 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3123 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 3199 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
3124 V8PerContextData* contextData = scriptState->perContextData(); | 3200 V8PerContextData* contextData = scriptState->perContextData(); |
3125 if (contextData && contextData->activityLogger()) | 3201 if (contextData && contextData->activityLogger()) |
3126 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); | 3202 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erPerWorldBindingsLongAttribute"); |
3127 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); | 3203 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteGetterForMainWorld(info); |
3128 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3204 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3129 } | 3205 } |
3130 | 3206 |
3131 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 3207 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor
MainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value
>& info) |
3132 { | 3208 { |
3133 v8::Local<v8::Object> holder = info.Holder(); | 3209 v8::Local<v8::Object> holder = info.Holder(); |
3134 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); | 3210 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterPerWorldBindingsLongAttribute", "TestObject", holder, info.GetIsolate()); |
3135 TestObject* impl = V8TestObject::toImpl(holder); | 3211 TestObject* impl = V8TestObject::toImpl(holder); |
3136 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 3212 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
3137 if (exceptionState.throwIfNeeded()) | 3213 if (exceptionState.throwIfNeeded()) |
3138 return; | 3214 return; |
3139 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); | 3215 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); |
3140 } | 3216 } |
3141 | 3217 |
3142 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::P
ropertyCallbackInfo<void>& info) | 3218 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal
lbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
3143 { | 3219 { |
| 3220 v8::Local<v8::Value> v8Value = info[0]; |
3144 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3221 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3145 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); | 3222 TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttr
ibuteSetterForMainWorld(v8Value, info); |
3146 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3223 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3147 } | 3224 } |
3148 | 3225 |
3149 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 3226 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
3150 { | 3227 { |
3151 v8::Local<v8::Object> holder = info.Holder(); | 3228 v8::Local<v8::Object> holder = info.Holder(); |
3152 TestObject* impl = V8TestObject::toImpl(holder); | 3229 TestObject* impl = V8TestObject::toImpl(holder); |
3153 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 3230 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
3154 } | 3231 } |
3155 | 3232 |
3156 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::V
alue>& info) | 3233 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
3157 { | 3234 { |
3158 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3235 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3159 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); | 3236 ScriptState* scriptState = ScriptState::from(info.GetIsolate()->GetCurrentCo
ntext()); |
3160 V8PerContextData* contextData = scriptState->perContextData(); | 3237 V8PerContextData* contextData = scriptState->perContextData(); |
3161 if (contextData && contextData->activityLogger()) | 3238 if (contextData && contextData->activityLogger()) |
3162 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForIsolatedWorldsPerWorldBindingsLongAttribute"); | 3239 contextData->activityLogger()->logGetter("TestObject.activityLoggingGett
erForIsolatedWorldsPerWorldBindingsLongAttribute"); |
3163 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); | 3240 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetter(info); |
3164 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3241 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3165 } | 3242 } |
3166 | 3243 |
3167 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 3244 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::
Value>& info) |
3168 { | 3245 { |
3169 v8::Local<v8::Object> holder = info.Holder(); | 3246 v8::Local<v8::Object> holder = info.Holder(); |
3170 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 3247 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
3171 TestObject* impl = V8TestObject::toImpl(holder); | 3248 TestObject* impl = V8TestObject::toImpl(holder); |
3172 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 3249 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
3173 if (exceptionState.throwIfNeeded()) | 3250 if (exceptionState.throwIfNeeded()) |
3174 return; | 3251 return; |
3175 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 3252 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
3176 } | 3253 } |
3177 | 3254 |
3178 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) | 3255 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
3179 { | 3256 { |
| 3257 v8::Local<v8::Value> v8Value = info[0]; |
3180 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3258 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3181 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); | 3259 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetter(v8Value, info); |
3182 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3260 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3183 } | 3261 } |
3184 | 3262 |
3185 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) | 3263 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& info) |
3186 { | 3264 { |
3187 v8::Local<v8::Object> holder = info.Holder(); | 3265 v8::Local<v8::Object> holder = info.Holder(); |
3188 TestObject* impl = V8TestObject::toImpl(holder); | 3266 TestObject* impl = V8TestObject::toImpl(holder); |
3189 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); | 3267 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor
ldBindingsLongAttribute()); |
3190 } | 3268 } |
3191 | 3269 |
3192 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(v8::Local<v8::Name>, const v8::PropertyCallba
ckInfo<v8::Value>& info) | 3270 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeGetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
3193 { | 3271 { |
3194 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3272 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3195 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); | 3273 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeGetterForMainWorld(info); |
3196 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3274 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3197 } | 3275 } |
3198 | 3276 |
3199 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 3277 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::FunctionCallb
ackInfo<v8::Value>& info) |
3200 { | 3278 { |
3201 v8::Local<v8::Object> holder = info.Holder(); | 3279 v8::Local<v8::Object> holder = info.Holder(); |
3202 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); | 3280 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin
gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObject", holder, in
fo.GetIsolate()); |
3203 TestObject* impl = V8TestObject::toImpl(holder); | 3281 TestObject* impl = V8TestObject::toImpl(holder); |
3204 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 3282 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
3205 if (exceptionState.throwIfNeeded()) | 3283 if (exceptionState.throwIfNeeded()) |
3206 return; | 3284 return; |
3207 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); | 3285 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute
(cppValue); |
3208 } | 3286 } |
3209 | 3287 |
3210 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(v8::Local<v8::Name>, v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3288 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA
ttributeSetterCallbackForMainWorld(const v8::FunctionCallbackInfo<v8::Value>& in
fo) |
3211 { | 3289 { |
| 3290 v8::Local<v8::Value> v8Value = info[0]; |
3212 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3291 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3213 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); | 3292 TestObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindings
LongAttributeAttributeSetterForMainWorld(v8Value, info); |
3214 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3293 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3215 } | 3294 } |
3216 | 3295 |
3217 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i
nfo) | 3296 static void locationAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
3218 { | 3297 { |
3219 v8::Local<v8::Object> holder = info.Holder(); | 3298 v8::Local<v8::Object> holder = info.Holder(); |
3220 TestObject* impl = V8TestObject::toImpl(holder); | 3299 TestObject* impl = V8TestObject::toImpl(holder); |
3221 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl); | 3300 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl); |
3222 } | 3301 } |
3223 | 3302 |
3224 static void locationAttributeGetterCallback(v8::Local<v8::Name>, const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 3303 static void locationAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
3225 { | 3304 { |
3226 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3305 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3227 TestObjectV8Internal::locationAttributeGetter(info); | 3306 TestObjectV8Internal::locationAttributeGetter(info); |
3228 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3307 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3229 } | 3308 } |
3230 | 3309 |
3231 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop
ertyCallbackInfo<void>& info) | 3310 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Func
tionCallbackInfo<v8::Value>& info) |
3232 { | 3311 { |
3233 v8::Local<v8::Object> holder = info.Holder(); | 3312 v8::Local<v8::Object> holder = info.Holder(); |
3234 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3313 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3235 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); | 3314 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); |
3236 if (!impl) | 3315 if (!impl) |
3237 return; | 3316 return; |
3238 V8StringResource<> cppValue = v8Value; | 3317 V8StringResource<> cppValue = v8Value; |
3239 if (!cppValue.prepare()) | 3318 if (!cppValue.prepare()) |
3240 return; | 3319 return; |
3241 impl->setHref(cppValue); | 3320 impl->setHref(cppValue); |
3242 } | 3321 } |
3243 | 3322 |
3244 static void locationAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::V
alue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3323 static void locationAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
3245 { | 3324 { |
| 3325 v8::Local<v8::Value> v8Value = info[0]; |
3246 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3326 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3247 TestObjectV8Internal::locationAttributeSetter(v8Value, info); | 3327 TestObjectV8Internal::locationAttributeSetter(v8Value, info); |
3248 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3328 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3249 } | 3329 } |
3250 | 3330 |
3251 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 3331 static void locationWithExceptionAttributeGetter(const v8::FunctionCallbackInfo<
v8::Value>& info) |
3252 { | 3332 { |
3253 v8::Local<v8::Object> holder = info.Holder(); | 3333 v8::Local<v8::Object> holder = info.Holder(); |
3254 TestObject* impl = V8TestObject::toImpl(holder); | 3334 TestObject* impl = V8TestObject::toImpl(holder); |
3255 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithException()), impl)
; | 3335 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithException()), impl)
; |
3256 } | 3336 } |
3257 | 3337 |
3258 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::Name>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 3338 static void locationWithExceptionAttributeGetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
3259 { | 3339 { |
3260 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3340 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3261 TestObjectV8Internal::locationWithExceptionAttributeGetter(info); | 3341 TestObjectV8Internal::locationWithExceptionAttributeGetter(info); |
3262 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3342 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3263 } | 3343 } |
3264 | 3344 |
3265 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 3345 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
3266 { | 3346 { |
3267 v8::Local<v8::Object> holder = info.Holder(); | 3347 v8::Local<v8::Object> holder = info.Holder(); |
3268 ExceptionState exceptionState(ExceptionState::SetterContext, "locationWithEx
ception", "TestObject", holder, info.GetIsolate()); | 3348 ExceptionState exceptionState(ExceptionState::SetterContext, "locationWithEx
ception", "TestObject", holder, info.GetIsolate()); |
3269 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3349 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3270 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithExcep
tion()); | 3350 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithExcep
tion()); |
3271 if (!impl) | 3351 if (!impl) |
3272 return; | 3352 return; |
3273 V8StringResource<> cppValue = v8Value; | 3353 V8StringResource<> cppValue = v8Value; |
3274 if (!cppValue.prepare()) | 3354 if (!cppValue.prepare()) |
3275 return; | 3355 return; |
3276 impl->setHrefThrows(cppValue, exceptionState); | 3356 impl->setHrefThrows(cppValue, exceptionState); |
3277 exceptionState.throwIfNeeded(); | 3357 exceptionState.throwIfNeeded(); |
3278 } | 3358 } |
3279 | 3359 |
3280 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::Name>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3360 static void locationWithExceptionAttributeSetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
3281 { | 3361 { |
| 3362 v8::Local<v8::Value> v8Value = info[0]; |
3282 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3363 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3283 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info); | 3364 TestObjectV8Internal::locationWithExceptionAttributeSetter(v8Value, info); |
3284 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3365 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3285 } | 3366 } |
3286 | 3367 |
3287 static void locationWithCallWithAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 3368 static void locationWithCallWithAttributeGetter(const v8::FunctionCallbackInfo<v
8::Value>& info) |
3288 { | 3369 { |
3289 v8::Local<v8::Object> holder = info.Holder(); | 3370 v8::Local<v8::Object> holder = info.Holder(); |
3290 TestObject* impl = V8TestObject::toImpl(holder); | 3371 TestObject* impl = V8TestObject::toImpl(holder); |
3291 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithCallWith()), impl); | 3372 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithCallWith()), impl); |
3292 } | 3373 } |
3293 | 3374 |
3294 static void locationWithCallWithAttributeGetterCallback(v8::Local<v8::Name>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 3375 static void locationWithCallWithAttributeGetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
3295 { | 3376 { |
3296 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3377 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3297 TestObjectV8Internal::locationWithCallWithAttributeGetter(info); | 3378 TestObjectV8Internal::locationWithCallWithAttributeGetter(info); |
3298 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3379 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3299 } | 3380 } |
3300 | 3381 |
3301 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 3382 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
3302 { | 3383 { |
3303 v8::Local<v8::Object> holder = info.Holder(); | 3384 v8::Local<v8::Object> holder = info.Holder(); |
3304 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3385 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3305 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallW
ith()); | 3386 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallW
ith()); |
3306 if (!impl) | 3387 if (!impl) |
3307 return; | 3388 return; |
3308 V8StringResource<> cppValue = v8Value; | 3389 V8StringResource<> cppValue = v8Value; |
3309 if (!cppValue.prepare()) | 3390 if (!cppValue.prepare()) |
3310 return; | 3391 return; |
3311 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 3392 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
3312 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()),
enteredDOMWindow(info.GetIsolate()), cppValue); | 3393 impl->setHrefCallWith(executionContext, callingDOMWindow(info.GetIsolate()),
enteredDOMWindow(info.GetIsolate()), cppValue); |
3313 } | 3394 } |
3314 | 3395 |
3315 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::Name>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3396 static void locationWithCallWithAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
3316 { | 3397 { |
| 3398 v8::Local<v8::Value> v8Value = info[0]; |
3317 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3399 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3318 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info); | 3400 TestObjectV8Internal::locationWithCallWithAttributeSetter(v8Value, info); |
3319 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3401 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3320 } | 3402 } |
3321 | 3403 |
3322 static void locationByteStringAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) | 3404 static void locationByteStringAttributeGetter(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
3323 { | 3405 { |
3324 v8::Local<v8::Object> holder = info.Holder(); | 3406 v8::Local<v8::Object> holder = info.Holder(); |
3325 TestObject* impl = V8TestObject::toImpl(holder); | 3407 TestObject* impl = V8TestObject::toImpl(holder); |
3326 v8SetReturnValueFast(info, WTF::getPtr(impl->locationByteString()), impl); | 3408 v8SetReturnValueFast(info, WTF::getPtr(impl->locationByteString()), impl); |
3327 } | 3409 } |
3328 | 3410 |
3329 static void locationByteStringAttributeGetterCallback(v8::Local<v8::Name>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 3411 static void locationByteStringAttributeGetterCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
3330 { | 3412 { |
3331 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3413 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3332 TestObjectV8Internal::locationByteStringAttributeGetter(info); | 3414 TestObjectV8Internal::locationByteStringAttributeGetter(info); |
3333 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3415 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3334 } | 3416 } |
3335 | 3417 |
3336 static void locationByteStringAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 3418 static void locationByteStringAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
3337 { | 3419 { |
3338 v8::Local<v8::Object> holder = info.Holder(); | 3420 v8::Local<v8::Object> holder = info.Holder(); |
3339 ExceptionState exceptionState(ExceptionState::SetterContext, "locationByteSt
ring", "TestObject", holder, info.GetIsolate()); | 3421 ExceptionState exceptionState(ExceptionState::SetterContext, "locationByteSt
ring", "TestObject", holder, info.GetIsolate()); |
3340 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3422 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3341 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationByteStrin
g()); | 3423 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationByteStrin
g()); |
3342 if (!impl) | 3424 if (!impl) |
3343 return; | 3425 return; |
3344 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep
tionState); | 3426 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep
tionState); |
3345 if (exceptionState.throwIfNeeded()) | 3427 if (exceptionState.throwIfNeeded()) |
3346 return; | 3428 return; |
3347 impl->setHrefByteString(cppValue); | 3429 impl->setHrefByteString(cppValue); |
3348 } | 3430 } |
3349 | 3431 |
3350 static void locationByteStringAttributeSetterCallback(v8::Local<v8::Name>, v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3432 static void locationByteStringAttributeSetterCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
3351 { | 3433 { |
| 3434 v8::Local<v8::Value> v8Value = info[0]; |
3352 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3435 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3353 TestObjectV8Internal::locationByteStringAttributeSetter(v8Value, info); | 3436 TestObjectV8Internal::locationByteStringAttributeSetter(v8Value, info); |
3354 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3437 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3355 } | 3438 } |
3356 | 3439 |
3357 static void locationWithPerWorldBindingsAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 3440 static void locationWithPerWorldBindingsAttributeGetter(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
3358 { | 3441 { |
3359 v8::Local<v8::Object> holder = info.Holder(); | 3442 v8::Local<v8::Object> holder = info.Holder(); |
3360 TestObject* impl = V8TestObject::toImpl(holder); | 3443 TestObject* impl = V8TestObject::toImpl(holder); |
3361 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithPerWorldBindings())
, impl); | 3444 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithPerWorldBindings())
, impl); |
3362 } | 3445 } |
3363 | 3446 |
3364 static void locationWithPerWorldBindingsAttributeGetterCallback(v8::Local<v8::Na
me>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3447 static void locationWithPerWorldBindingsAttributeGetterCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
3365 { | 3448 { |
3366 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3449 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3367 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetter(info); | 3450 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetter(info); |
3368 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3451 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3369 } | 3452 } |
3370 | 3453 |
3371 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3454 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::FunctionCallbackInfo<v8::Value>& info) |
3372 { | 3455 { |
3373 v8::Local<v8::Object> holder = info.Holder(); | 3456 v8::Local<v8::Object> holder = info.Holder(); |
3374 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3457 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3375 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); | 3458 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); |
3376 if (!impl) | 3459 if (!impl) |
3377 return; | 3460 return; |
3378 V8StringResource<> cppValue = v8Value; | 3461 V8StringResource<> cppValue = v8Value; |
3379 if (!cppValue.prepare()) | 3462 if (!cppValue.prepare()) |
3380 return; | 3463 return; |
3381 impl->setHref(cppValue); | 3464 impl->setHref(cppValue); |
3382 } | 3465 } |
3383 | 3466 |
3384 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::Na
me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3467 static void locationWithPerWorldBindingsAttributeSetterCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
3385 { | 3468 { |
| 3469 v8::Local<v8::Value> v8Value = info[0]; |
3386 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3470 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3387 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i
nfo); | 3471 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Value, i
nfo); |
3388 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3472 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3389 } | 3473 } |
3390 | 3474 |
3391 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 3475 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
3392 { | 3476 { |
3393 v8::Local<v8::Object> holder = info.Holder(); | 3477 v8::Local<v8::Object> holder = info.Holder(); |
3394 TestObject* impl = V8TestObject::toImpl(holder); | 3478 TestObject* impl = V8TestObject::toImpl(holder); |
3395 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->locationWithPerWorldBin
dings())); | 3479 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->locationWithPerWorldBin
dings())); |
3396 } | 3480 } |
3397 | 3481 |
3398 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(v8::
Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3482 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
3399 { | 3483 { |
3400 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3484 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3401 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetterForMainWorl
d(info); | 3485 TestObjectV8Internal::locationWithPerWorldBindingsAttributeGetterForMainWorl
d(info); |
3402 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3486 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3403 } | 3487 } |
3404 | 3488 |
3405 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3489 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8
::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
3406 { | 3490 { |
3407 v8::Local<v8::Object> holder = info.Holder(); | 3491 v8::Local<v8::Object> holder = info.Holder(); |
3408 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3492 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3409 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); | 3493 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWo
rldBindings()); |
3410 if (!impl) | 3494 if (!impl) |
3411 return; | 3495 return; |
3412 V8StringResource<> cppValue = v8Value; | 3496 V8StringResource<> cppValue = v8Value; |
3413 if (!cppValue.prepare()) | 3497 if (!cppValue.prepare()) |
3414 return; | 3498 return; |
3415 impl->setHref(cppValue); | 3499 impl->setHref(cppValue); |
3416 } | 3500 } |
3417 | 3501 |
3418 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8::
Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo
id>& info) | 3502 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
3419 { | 3503 { |
| 3504 v8::Local<v8::Value> v8Value = info[0]; |
3420 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3505 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3421 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl
d(v8Value, info); | 3506 TestObjectV8Internal::locationWithPerWorldBindingsAttributeSetterForMainWorl
d(v8Value, info); |
3422 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3507 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3423 } | 3508 } |
3424 | 3509 |
3425 static void locationTypeCheckingInterfaceAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 3510 static void locationTypeCheckingInterfaceAttributeGetter(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
3426 { | 3511 { |
3427 v8::Local<v8::Object> holder = info.Holder(); | 3512 v8::Local<v8::Object> holder = info.Holder(); |
3428 TestObject* impl = V8TestObject::toImpl(holder); | 3513 TestObject* impl = V8TestObject::toImpl(holder); |
3429 v8SetReturnValueFast(info, WTF::getPtr(impl->locationTypeCheckingInterface()
), impl); | 3514 v8SetReturnValueFast(info, WTF::getPtr(impl->locationTypeCheckingInterface()
), impl); |
3430 } | 3515 } |
3431 | 3516 |
3432 static void locationTypeCheckingInterfaceAttributeGetterCallback(v8::Local<v8::N
ame>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3517 static void locationTypeCheckingInterfaceAttributeGetterCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
3433 { | 3518 { |
3434 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3519 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3435 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeGetter(info); | 3520 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeGetter(info); |
3436 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3521 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3437 } | 3522 } |
3438 | 3523 |
3439 static void locationTypeCheckingInterfaceAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 3524 static void locationTypeCheckingInterfaceAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
3440 { | 3525 { |
3441 v8::Local<v8::Object> holder = info.Holder(); | 3526 v8::Local<v8::Object> holder = info.Holder(); |
3442 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3527 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3443 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationTypeCheck
ingInterface()); | 3528 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationTypeCheck
ingInterface()); |
3444 if (!impl) | 3529 if (!impl) |
3445 return; | 3530 return; |
3446 V8StringResource<> cppValue = v8Value; | 3531 V8StringResource<> cppValue = v8Value; |
3447 if (!cppValue.prepare()) | 3532 if (!cppValue.prepare()) |
3448 return; | 3533 return; |
3449 impl->setHref(cppValue); | 3534 impl->setHref(cppValue); |
3450 } | 3535 } |
3451 | 3536 |
3452 static void locationTypeCheckingInterfaceAttributeSetterCallback(v8::Local<v8::N
ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3537 static void locationTypeCheckingInterfaceAttributeSetterCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
3453 { | 3538 { |
| 3539 v8::Local<v8::Value> v8Value = info[0]; |
3454 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3540 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3455 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeSetter(v8Value,
info); | 3541 TestObjectV8Internal::locationTypeCheckingInterfaceAttributeSetter(v8Value,
info); |
3456 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3542 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3457 } | 3543 } |
3458 | 3544 |
3459 static void locationGarbageCollectedAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) | 3545 static void locationGarbageCollectedAttributeGetter(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
3460 { | 3546 { |
3461 v8::Local<v8::Object> holder = info.Holder(); | 3547 v8::Local<v8::Object> holder = info.Holder(); |
3462 TestObject* impl = V8TestObject::toImpl(holder); | 3548 TestObject* impl = V8TestObject::toImpl(holder); |
3463 RawPtr<TestInterfaceGarbageCollected> cppValue(impl->locationGarbageCollecte
d()); | 3549 RawPtr<TestInterfaceGarbageCollected> cppValue(impl->locationGarbageCollecte
d()); |
3464 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) | 3550 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) |
3465 return; | 3551 return; |
3466 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate())
); | 3552 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate())
); |
3467 if (!v8Value.IsEmpty()) { | 3553 if (!v8Value.IsEmpty()) { |
3468 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "locationGarbageCollected"), v8Value); | 3554 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "locationGarbageCollected"), v8Value); |
3469 v8SetReturnValue(info, v8Value); | 3555 v8SetReturnValue(info, v8Value); |
3470 } | 3556 } |
3471 } | 3557 } |
3472 | 3558 |
3473 static void locationGarbageCollectedAttributeGetterCallback(v8::Local<v8::Name>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 3559 static void locationGarbageCollectedAttributeGetterCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
3474 { | 3560 { |
3475 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3561 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3476 TestObjectV8Internal::locationGarbageCollectedAttributeGetter(info); | 3562 TestObjectV8Internal::locationGarbageCollectedAttributeGetter(info); |
3477 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3563 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3478 } | 3564 } |
3479 | 3565 |
3480 static void locationGarbageCollectedAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) | 3566 static void locationGarbageCollectedAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::FunctionCallbackInfo<v8::Value>& info) |
3481 { | 3567 { |
3482 v8::Local<v8::Object> holder = info.Holder(); | 3568 v8::Local<v8::Object> holder = info.Holder(); |
3483 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3569 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3484 RawPtr<TestInterfaceGarbageCollected> impl = WTF::getPtr(proxyImpl->location
GarbageCollected()); | 3570 RawPtr<TestInterfaceGarbageCollected> impl = WTF::getPtr(proxyImpl->location
GarbageCollected()); |
3485 if (!impl) | 3571 if (!impl) |
3486 return; | 3572 return; |
3487 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t
oImplWithTypeCheck(info.GetIsolate(), v8Value); | 3573 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t
oImplWithTypeCheck(info.GetIsolate(), v8Value); |
3488 impl->setAttr1(WTF::getPtr(cppValue)); | 3574 impl->setAttr1(WTF::getPtr(cppValue)); |
3489 } | 3575 } |
3490 | 3576 |
3491 static void locationGarbageCollectedAttributeSetterCallback(v8::Local<v8::Name>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3577 static void locationGarbageCollectedAttributeSetterCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
3492 { | 3578 { |
| 3579 v8::Local<v8::Value> v8Value = info[0]; |
3493 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3580 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3494 TestObjectV8Internal::locationGarbageCollectedAttributeSetter(v8Value, info)
; | 3581 TestObjectV8Internal::locationGarbageCollectedAttributeSetter(v8Value, info)
; |
3495 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3582 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3496 } | 3583 } |
3497 | 3584 |
3498 static void locationWillBeGarbageCollectedAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 3585 static void locationWillBeGarbageCollectedAttributeGetter(const v8::FunctionCall
backInfo<v8::Value>& info) |
3499 { | 3586 { |
3500 v8::Local<v8::Object> holder = info.Holder(); | 3587 v8::Local<v8::Object> holder = info.Holder(); |
3501 TestObject* impl = V8TestObject::toImpl(holder); | 3588 TestObject* impl = V8TestObject::toImpl(holder); |
3502 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> cppValue(impl->locat
ionWillBeGarbageCollected()); | 3589 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> cppValue(impl->locat
ionWillBeGarbageCollected()); |
3503 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) | 3590 if (cppValue && DOMDataStore::setReturnValue(info.GetReturnValue(), cppValue
.get())) |
3504 return; | 3591 return; |
3505 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate())
); | 3592 v8::Local<v8::Value> v8Value(toV8(cppValue.get(), holder, info.GetIsolate())
); |
3506 if (!v8Value.IsEmpty()) { | 3593 if (!v8Value.IsEmpty()) { |
3507 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "locationWillBeGarbageCollected"), v8Value); | 3594 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString(
info.GetIsolate(), "locationWillBeGarbageCollected"), v8Value); |
3508 v8SetReturnValue(info, v8Value); | 3595 v8SetReturnValue(info, v8Value); |
3509 } | 3596 } |
3510 } | 3597 } |
3511 | 3598 |
3512 static void locationWillBeGarbageCollectedAttributeGetterCallback(v8::Local<v8::
Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3599 static void locationWillBeGarbageCollectedAttributeGetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
3513 { | 3600 { |
3514 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3601 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3515 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeGetter(info); | 3602 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeGetter(info); |
3516 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3603 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3517 } | 3604 } |
3518 | 3605 |
3519 static void locationWillBeGarbageCollectedAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<void>& info) | 3606 static void locationWillBeGarbageCollectedAttributeSetter(v8::Local<v8::Value> v
8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
3520 { | 3607 { |
3521 v8::Local<v8::Object> holder = info.Holder(); | 3608 v8::Local<v8::Object> holder = info.Holder(); |
3522 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 3609 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
3523 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = WTF::getPtr(p
roxyImpl->locationWillBeGarbageCollected()); | 3610 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = WTF::getPtr(p
roxyImpl->locationWillBeGarbageCollected()); |
3524 if (!impl) | 3611 if (!impl) |
3525 return; | 3612 return; |
3526 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage
Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); | 3613 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage
Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); |
3527 impl->setAttr1(WTF::getPtr(cppValue)); | 3614 impl->setAttr1(WTF::getPtr(cppValue)); |
3528 } | 3615 } |
3529 | 3616 |
3530 static void locationWillBeGarbageCollectedAttributeSetterCallback(v8::Local<v8::
Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3617 static void locationWillBeGarbageCollectedAttributeSetterCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
3531 { | 3618 { |
| 3619 v8::Local<v8::Value> v8Value = info[0]; |
3532 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3620 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3533 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeSetter(v8Value,
info); | 3621 TestObjectV8Internal::locationWillBeGarbageCollectedAttributeSetter(v8Value,
info); |
3534 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3622 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3535 } | 3623 } |
3536 | 3624 |
3537 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 3625 static void raisesExceptionLongAttributeAttributeGetter(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
3538 { | 3626 { |
3539 v8::Local<v8::Object> holder = info.Holder(); | 3627 v8::Local<v8::Object> holder = info.Holder(); |
3540 TestObject* impl = V8TestObject::toImpl(holder); | 3628 TestObject* impl = V8TestObject::toImpl(holder); |
3541 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nLongAttribute", "TestObject", holder, info.GetIsolate()); | 3629 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nLongAttribute", "TestObject", holder, info.GetIsolate()); |
3542 int cppValue(impl->raisesExceptionLongAttribute(exceptionState)); | 3630 int cppValue(impl->raisesExceptionLongAttribute(exceptionState)); |
3543 if (UNLIKELY(exceptionState.throwIfNeeded())) | 3631 if (UNLIKELY(exceptionState.throwIfNeeded())) |
3544 return; | 3632 return; |
3545 v8SetReturnValueInt(info, cppValue); | 3633 v8SetReturnValueInt(info, cppValue); |
3546 } | 3634 } |
3547 | 3635 |
3548 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::Na
me>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3636 static void raisesExceptionLongAttributeAttributeGetterCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
3549 { | 3637 { |
3550 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3638 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3551 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); | 3639 TestObjectV8Internal::raisesExceptionLongAttributeAttributeGetter(info); |
3552 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3640 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3553 } | 3641 } |
3554 | 3642 |
3555 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 3643 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::FunctionCallbackInfo<v8::Value>& info) |
3556 { | 3644 { |
3557 v8::Local<v8::Object> holder = info.Holder(); | 3645 v8::Local<v8::Object> holder = info.Holder(); |
3558 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nLongAttribute", "TestObject", holder, info.GetIsolate()); | 3646 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nLongAttribute", "TestObject", holder, info.GetIsolate()); |
3559 TestObject* impl = V8TestObject::toImpl(holder); | 3647 TestObject* impl = V8TestObject::toImpl(holder); |
3560 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 3648 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
3561 if (exceptionState.throwIfNeeded()) | 3649 if (exceptionState.throwIfNeeded()) |
3562 return; | 3650 return; |
3563 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); | 3651 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); |
3564 exceptionState.throwIfNeeded(); | 3652 exceptionState.throwIfNeeded(); |
3565 } | 3653 } |
3566 | 3654 |
3567 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::Na
me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3655 static void raisesExceptionLongAttributeAttributeSetterCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
3568 { | 3656 { |
| 3657 v8::Local<v8::Value> v8Value = info[0]; |
3569 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3658 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3570 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i
nfo); | 3659 TestObjectV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Value, i
nfo); |
3571 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3660 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3572 } | 3661 } |
3573 | 3662 |
3574 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 3663 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Function
CallbackInfo<v8::Value>& info) |
3575 { | 3664 { |
3576 v8::Local<v8::Object> holder = info.Holder(); | 3665 v8::Local<v8::Object> holder = info.Holder(); |
3577 TestObject* impl = V8TestObject::toImpl(holder); | 3666 TestObject* impl = V8TestObject::toImpl(holder); |
3578 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); | 3667 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); |
3579 int cppValue(impl->raisesExceptionGetterLongAttribute(exceptionState)); | 3668 int cppValue(impl->raisesExceptionGetterLongAttribute(exceptionState)); |
3580 if (UNLIKELY(exceptionState.throwIfNeeded())) | 3669 if (UNLIKELY(exceptionState.throwIfNeeded())) |
3581 return; | 3670 return; |
3582 v8SetReturnValueInt(info, cppValue); | 3671 v8SetReturnValueInt(info, cppValue); |
3583 } | 3672 } |
3584 | 3673 |
3585 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(v8::Local<
v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3674 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
3586 { | 3675 { |
3587 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3676 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3588 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info
); | 3677 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeGetter(info
); |
3589 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3678 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3590 } | 3679 } |
3591 | 3680 |
3592 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3681 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
3593 { | 3682 { |
3594 v8::Local<v8::Object> holder = info.Holder(); | 3683 v8::Local<v8::Object> holder = info.Holder(); |
3595 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); | 3684 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nGetterLongAttribute", "TestObject", holder, info.GetIsolate()); |
3596 TestObject* impl = V8TestObject::toImpl(holder); | 3685 TestObject* impl = V8TestObject::toImpl(holder); |
3597 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 3686 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
3598 if (exceptionState.throwIfNeeded()) | 3687 if (exceptionState.throwIfNeeded()) |
3599 return; | 3688 return; |
3600 impl->setRaisesExceptionGetterLongAttribute(cppValue); | 3689 impl->setRaisesExceptionGetterLongAttribute(cppValue); |
3601 } | 3690 } |
3602 | 3691 |
3603 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local<
v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) | 3692 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
3604 { | 3693 { |
| 3694 v8::Local<v8::Value> v8Value = info[0]; |
3605 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3695 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3606 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va
lue, info); | 3696 TestObjectV8Internal::raisesExceptionGetterLongAttributeAttributeSetter(v8Va
lue, info); |
3607 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3697 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3608 } | 3698 } |
3609 | 3699 |
3610 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 3700 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Function
CallbackInfo<v8::Value>& info) |
3611 { | 3701 { |
3612 v8::Local<v8::Object> holder = info.Holder(); | 3702 v8::Local<v8::Object> holder = info.Holder(); |
3613 TestObject* impl = V8TestObject::toImpl(holder); | 3703 TestObject* impl = V8TestObject::toImpl(holder); |
3614 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); | 3704 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); |
3615 } | 3705 } |
3616 | 3706 |
3617 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local<
v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3707 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
3618 { | 3708 { |
3619 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3709 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3620 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info
); | 3710 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeGetter(info
); |
3621 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3711 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3622 } | 3712 } |
3623 | 3713 |
3624 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3714 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
3625 { | 3715 { |
3626 v8::Local<v8::Object> holder = info.Holder(); | 3716 v8::Local<v8::Object> holder = info.Holder(); |
3627 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx
ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); | 3717 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx
ceptionLongAttribute", "TestObject", holder, info.GetIsolate()); |
3628 TestObject* impl = V8TestObject::toImpl(holder); | 3718 TestObject* impl = V8TestObject::toImpl(holder); |
3629 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 3719 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
3630 if (exceptionState.throwIfNeeded()) | 3720 if (exceptionState.throwIfNeeded()) |
3631 return; | 3721 return; |
3632 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); | 3722 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); |
3633 exceptionState.throwIfNeeded(); | 3723 exceptionState.throwIfNeeded(); |
3634 } | 3724 } |
3635 | 3725 |
3636 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local<
v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) | 3726 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
3637 { | 3727 { |
| 3728 v8::Local<v8::Value> v8Value = info[0]; |
3638 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3729 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3639 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va
lue, info); | 3730 TestObjectV8Internal::setterRaisesExceptionLongAttributeAttributeSetter(v8Va
lue, info); |
3640 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3731 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3641 } | 3732 } |
3642 | 3733 |
3643 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) | 3734 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8::
FunctionCallbackInfo<v8::Value>& info) |
3644 { | 3735 { |
3645 v8::Local<v8::Object> holder = info.Holder(); | 3736 v8::Local<v8::Object> holder = info.Holder(); |
3646 TestObject* impl = V8TestObject::toImpl(holder); | 3737 TestObject* impl = V8TestObject::toImpl(holder); |
3647 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate()); | 3738 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio
nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate()); |
3648 RefPtr<TestInterfaceEmpty> cppValue(impl->raisesExceptionTestInterfaceEmptyA
ttribute(exceptionState)); | 3739 RefPtr<TestInterfaceEmpty> cppValue(impl->raisesExceptionTestInterfaceEmptyA
ttribute(exceptionState)); |
3649 if (UNLIKELY(exceptionState.throwIfNeeded())) | 3740 if (UNLIKELY(exceptionState.throwIfNeeded())) |
3650 return; | 3741 return; |
3651 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); | 3742 v8SetReturnValueFast(info, WTF::getPtr(cppValue.release()), impl); |
3652 } | 3743 } |
3653 | 3744 |
3654 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(v8
::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3745 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
3655 { | 3746 { |
3656 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3747 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3657 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeGet
ter(info); | 3748 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeGet
ter(info); |
3658 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3749 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3659 } | 3750 } |
3660 | 3751 |
3661 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3752 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local<
v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
3662 { | 3753 { |
3663 v8::Local<v8::Object> holder = info.Holder(); | 3754 v8::Local<v8::Object> holder = info.Holder(); |
3664 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate()); | 3755 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio
nTestInterfaceEmptyAttribute", "TestObject", holder, info.GetIsolate()); |
3665 TestObject* impl = V8TestObject::toImpl(holder); | 3756 TestObject* impl = V8TestObject::toImpl(holder); |
3666 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf
o.GetIsolate(), v8Value); | 3757 TestInterfaceEmpty* cppValue = V8TestInterfaceEmpty::toImplWithTypeCheck(inf
o.GetIsolate(), v8Value); |
3667 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e
xceptionState); | 3758 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e
xceptionState); |
3668 exceptionState.throwIfNeeded(); | 3759 exceptionState.throwIfNeeded(); |
3669 } | 3760 } |
3670 | 3761 |
3671 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(v8
::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) | 3762 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
3672 { | 3763 { |
| 3764 v8::Local<v8::Value> v8Value = info[0]; |
3673 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3765 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3674 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeSet
ter(v8Value, info); | 3766 TestObjectV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttributeSet
ter(v8Value, info); |
3675 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3767 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3676 } | 3768 } |
3677 | 3769 |
3678 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 3770 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
3679 { | 3771 { |
3680 v8::Local<v8::Object> holder = info.Holder(); | 3772 v8::Local<v8::Object> holder = info.Holder(); |
3681 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach
edAttributeRaisesExceptionGetterAnyAttribute"); | 3773 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach
edAttributeRaisesExceptionGetterAnyAttribute"); |
3682 TestObject* impl = V8TestObject::toImpl(holder); | 3774 TestObject* impl = V8TestObject::toImpl(holder); |
3683 if (!impl->isValueDirty()) { | 3775 if (!impl->isValueDirty()) { |
3684 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso
late(), holder, propertyName); | 3776 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso
late(), holder, propertyName); |
3685 if (!v8Value.IsEmpty()) { | 3777 if (!v8Value.IsEmpty()) { |
3686 v8SetReturnValue(info, v8Value); | 3778 v8SetReturnValue(info, v8Value); |
3687 return; | 3779 return; |
3688 } | 3780 } |
3689 } | 3781 } |
3690 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut
eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate()); | 3782 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut
eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate()); |
3691 ScriptValue cppValue(impl->cachedAttributeRaisesExceptionGetterAnyAttribute(
exceptionState)); | 3783 ScriptValue cppValue(impl->cachedAttributeRaisesExceptionGetterAnyAttribute(
exceptionState)); |
3692 if (UNLIKELY(exceptionState.throwIfNeeded())) | 3784 if (UNLIKELY(exceptionState.throwIfNeeded())) |
3693 return; | 3785 return; |
3694 v8::Local<v8::Value> v8Value(cppValue.v8Value()); | 3786 v8::Local<v8::Value> v8Value(cppValue.v8Value()); |
3695 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val
ue); | 3787 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val
ue); |
3696 v8SetReturnValue(info, v8Value); | 3788 v8SetReturnValue(info, v8Value); |
3697 } | 3789 } |
3698 | 3790 |
3699 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb
ack(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3791 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb
ack(const v8::FunctionCallbackInfo<v8::Value>& info) |
3700 { | 3792 { |
3701 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3793 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3702 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib
uteGetter(info); | 3794 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib
uteGetter(info); |
3703 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3795 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3704 } | 3796 } |
3705 | 3797 |
3706 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3798 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8::
Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
3707 { | 3799 { |
3708 v8::Local<v8::Object> holder = info.Holder(); | 3800 v8::Local<v8::Object> holder = info.Holder(); |
3709 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut
eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate()); | 3801 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut
eRaisesExceptionGetterAnyAttribute", "TestObject", holder, info.GetIsolate()); |
3710 TestObject* impl = V8TestObject::toImpl(holder); | 3802 TestObject* impl = V8TestObject::toImpl(holder); |
3711 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); | 3803 ScriptValue cppValue = ScriptValue(ScriptState::current(info.GetIsolate()),
v8Value); |
3712 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio
nState); | 3804 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio
nState); |
3713 exceptionState.throwIfNeeded(); | 3805 exceptionState.throwIfNeeded(); |
3714 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval
idate the cached value. | 3806 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval
idate the cached value. |
3715 } | 3807 } |
3716 | 3808 |
3717 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb
ack(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 3809 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb
ack(const v8::FunctionCallbackInfo<v8::Value>& info) |
3718 { | 3810 { |
| 3811 v8::Local<v8::Value> v8Value = info[0]; |
3719 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3812 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3720 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib
uteSetter(v8Value, info); | 3813 TestObjectV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttrib
uteSetter(v8Value, info); |
3721 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3814 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3722 } | 3815 } |
3723 | 3816 |
3724 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 3817 static void reflectTestInterfaceAttributeAttributeGetter(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
3725 { | 3818 { |
3726 v8::Local<v8::Object> holder = info.Holder(); | 3819 v8::Local<v8::Object> holder = info.Holder(); |
3727 TestObject* impl = V8TestObject::toImpl(holder); | 3820 TestObject* impl = V8TestObject::toImpl(holder); |
3728 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref
lecttestinterfaceattributeAttr)), impl); | 3821 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref
lecttestinterfaceattributeAttr)), impl); |
3729 } | 3822 } |
3730 | 3823 |
3731 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::N
ame>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3824 static void reflectTestInterfaceAttributeAttributeGetterCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
3732 { | 3825 { |
3733 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3826 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3734 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeGetter(info); | 3827 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeGetter(info); |
3735 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3828 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3736 } | 3829 } |
3737 | 3830 |
3738 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 3831 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
3739 { | 3832 { |
3740 v8::Local<v8::Object> holder = info.Holder(); | 3833 v8::Local<v8::Object> holder = info.Holder(); |
3741 TestObject* impl = V8TestObject::toImpl(holder); | 3834 TestObject* impl = V8TestObject::toImpl(holder); |
3742 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); | 3835 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); |
3743 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3836 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3744 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr
(cppValue)); | 3837 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr
(cppValue)); |
3745 } | 3838 } |
3746 | 3839 |
3747 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::N
ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3840 static void reflectTestInterfaceAttributeAttributeSetterCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
3748 { | 3841 { |
| 3842 v8::Local<v8::Value> v8Value = info[0]; |
3749 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3843 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3750 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3844 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3751 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8Value,
info); | 3845 TestObjectV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8Value,
info); |
3752 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3846 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3753 } | 3847 } |
3754 | 3848 |
3755 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8::
PropertyCallbackInfo<v8::Value>& info) | 3849 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8::
FunctionCallbackInfo<v8::Value>& info) |
3756 { | 3850 { |
3757 v8::Local<v8::Object> holder = info.Holder(); | 3851 v8::Local<v8::Object> holder = info.Holder(); |
3758 TestObject* impl = V8TestObject::toImpl(holder); | 3852 TestObject* impl = V8TestObject::toImpl(holder); |
3759 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref
lectedNameAttributeAttr)), impl); | 3853 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref
lectedNameAttributeAttr)), impl); |
3760 } | 3854 } |
3761 | 3855 |
3762 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8
::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3856 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
3763 { | 3857 { |
3764 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3858 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3765 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeGet
ter(info); | 3859 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeGet
ter(info); |
3766 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3860 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3767 } | 3861 } |
3768 | 3862 |
3769 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3863 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local<
v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
3770 { | 3864 { |
3771 v8::Local<v8::Object> holder = info.Holder(); | 3865 v8::Local<v8::Object> holder = info.Holder(); |
3772 TestObject* impl = V8TestObject::toImpl(holder); | 3866 TestObject* impl = V8TestObject::toImpl(holder); |
3773 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); | 3867 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); |
3774 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3868 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3775 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal
ue)); | 3869 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal
ue)); |
3776 } | 3870 } |
3777 | 3871 |
3778 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8
::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) | 3872 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
3779 { | 3873 { |
| 3874 v8::Local<v8::Value> v8Value = info[0]; |
3780 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3875 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3781 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3876 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3782 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSet
ter(v8Value, info); | 3877 TestObjectV8Internal::reflectReflectedNameAttributeTestAttributeAttributeSet
ter(v8Value, info); |
3783 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3878 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3784 } | 3879 } |
3785 | 3880 |
3786 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 3881 static void reflectBooleanAttributeAttributeGetter(const v8::FunctionCallbackInf
o<v8::Value>& info) |
3787 { | 3882 { |
3788 v8::Local<v8::Object> holder = info.Holder(); | 3883 v8::Local<v8::Object> holder = info.Holder(); |
3789 TestObject* impl = V8TestObject::toImpl(holder); | 3884 TestObject* impl = V8TestObject::toImpl(holder); |
3790 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana
ttributeAttr)); | 3885 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana
ttributeAttr)); |
3791 } | 3886 } |
3792 | 3887 |
3793 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::Name>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 3888 static void reflectBooleanAttributeAttributeGetterCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
3794 { | 3889 { |
3795 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3890 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3796 TestObjectV8Internal::reflectBooleanAttributeAttributeGetter(info); | 3891 TestObjectV8Internal::reflectBooleanAttributeAttributeGetter(info); |
3797 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3892 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3798 } | 3893 } |
3799 | 3894 |
3800 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 3895 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::FunctionCallbackInfo<v8::Value>& info) |
3801 { | 3896 { |
3802 v8::Local<v8::Object> holder = info.Holder(); | 3897 v8::Local<v8::Object> holder = info.Holder(); |
3803 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectBoolean
Attribute", "TestObject", holder, info.GetIsolate()); | 3898 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectBoolean
Attribute", "TestObject", holder, info.GetIsolate()); |
3804 TestObject* impl = V8TestObject::toImpl(holder); | 3899 TestObject* impl = V8TestObject::toImpl(holder); |
3805 bool cppValue = toBoolean(info.GetIsolate(), v8Value, exceptionState); | 3900 bool cppValue = toBoolean(info.GetIsolate(), v8Value, exceptionState); |
3806 if (exceptionState.throwIfNeeded()) | 3901 if (exceptionState.throwIfNeeded()) |
3807 return; | 3902 return; |
3808 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3903 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3809 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue); | 3904 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue); |
3810 } | 3905 } |
3811 | 3906 |
3812 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::Name>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3907 static void reflectBooleanAttributeAttributeSetterCallback(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
3813 { | 3908 { |
| 3909 v8::Local<v8::Value> v8Value = info[0]; |
3814 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3910 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3815 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3911 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3816 TestObjectV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info); | 3912 TestObjectV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info); |
3817 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3913 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3818 } | 3914 } |
3819 | 3915 |
3820 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 3916 static void reflectLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<v
8::Value>& info) |
3821 { | 3917 { |
3822 v8::Local<v8::Object> holder = info.Holder(); | 3918 v8::Local<v8::Object> holder = info.Holder(); |
3823 TestObject* impl = V8TestObject::toImpl(holder); | 3919 TestObject* impl = V8TestObject::toImpl(holder); |
3824 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga
ttributeAttr)); | 3920 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga
ttributeAttr)); |
3825 } | 3921 } |
3826 | 3922 |
3827 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 3923 static void reflectLongAttributeAttributeGetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
3828 { | 3924 { |
3829 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3925 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3830 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); | 3926 TestObjectV8Internal::reflectLongAttributeAttributeGetter(info); |
3831 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3832 } | 3928 } |
3833 | 3929 |
3834 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 3930 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
3835 { | 3931 { |
3836 v8::Local<v8::Object> holder = info.Holder(); | 3932 v8::Local<v8::Object> holder = info.Holder(); |
3837 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt
ribute", "TestObject", holder, info.GetIsolate()); | 3933 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt
ribute", "TestObject", holder, info.GetIsolate()); |
3838 TestObject* impl = V8TestObject::toImpl(holder); | 3934 TestObject* impl = V8TestObject::toImpl(holder); |
3839 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 3935 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
3840 if (exceptionState.throwIfNeeded()) | 3936 if (exceptionState.throwIfNeeded()) |
3841 return; | 3937 return; |
3842 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3938 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3843 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); | 3939 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); |
3844 } | 3940 } |
3845 | 3941 |
3846 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3942 static void reflectLongAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
3847 { | 3943 { |
| 3944 v8::Local<v8::Value> v8Value = info[0]; |
3848 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3945 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3849 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3946 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3850 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); | 3947 TestObjectV8Internal::reflectLongAttributeAttributeSetter(v8Value, info); |
3851 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3948 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3852 } | 3949 } |
3853 | 3950 |
3854 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb
ackInfo<v8::Value>& info) | 3951 static void reflectUnsignedShortAttributeAttributeGetter(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
3855 { | 3952 { |
3856 v8::Local<v8::Object> holder = info.Holder(); | 3953 v8::Local<v8::Object> holder = info.Holder(); |
3857 TestObject* impl = V8TestObject::toImpl(holder); | 3954 TestObject* impl = V8TestObject::toImpl(holder); |
3858 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->fastGetAtt
ribute(HTMLNames::reflectunsignedshortattributeAttr)))); | 3955 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->fastGetAtt
ribute(HTMLNames::reflectunsignedshortattributeAttr)))); |
3859 } | 3956 } |
3860 | 3957 |
3861 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::N
ame>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3958 static void reflectUnsignedShortAttributeAttributeGetterCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
3862 { | 3959 { |
3863 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3960 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3864 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); | 3961 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeGetter(info); |
3865 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3962 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3866 } | 3963 } |
3867 | 3964 |
3868 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::PropertyCallbackInfo<void>& info) | 3965 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8
Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
3869 { | 3966 { |
3870 v8::Local<v8::Object> holder = info.Holder(); | 3967 v8::Local<v8::Object> holder = info.Holder(); |
3871 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dShortAttribute", "TestObject", holder, info.GetIsolate()); | 3968 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dShortAttribute", "TestObject", holder, info.GetIsolate()); |
3872 TestObject* impl = V8TestObject::toImpl(holder); | 3969 TestObject* impl = V8TestObject::toImpl(holder); |
3873 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, NormalConversion, e
xceptionState); | 3970 unsigned cppValue = toUInt16(info.GetIsolate(), v8Value, NormalConversion, e
xceptionState); |
3874 if (exceptionState.throwIfNeeded()) | 3971 if (exceptionState.throwIfNeeded()) |
3875 return; | 3972 return; |
3876 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3973 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3877 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); | 3974 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); |
3878 } | 3975 } |
3879 | 3976 |
3880 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::N
ame>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 3977 static void reflectUnsignedShortAttributeAttributeSetterCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
3881 { | 3978 { |
| 3979 v8::Local<v8::Value> v8Value = info[0]; |
3882 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 3980 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3883 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 3981 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3884 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value,
info); | 3982 TestObjectV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8Value,
info); |
3885 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3983 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3886 } | 3984 } |
3887 | 3985 |
3888 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba
ckInfo<v8::Value>& info) | 3986 static void reflectUnsignedLongAttributeAttributeGetter(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
3889 { | 3987 { |
3890 v8::Local<v8::Object> holder = info.Holder(); | 3988 v8::Local<v8::Object> holder = info.Holder(); |
3891 TestObject* impl = V8TestObject::toImpl(holder); | 3989 TestObject* impl = V8TestObject::toImpl(holder); |
3892 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->getIntegra
lAttribute(HTMLNames::reflectunsignedlongattributeAttr)))); | 3990 v8SetReturnValueUnsigned(info, std::max(0, static_cast<int>(impl->getIntegra
lAttribute(HTMLNames::reflectunsignedlongattributeAttr)))); |
3893 } | 3991 } |
3894 | 3992 |
3895 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::Na
me>, const v8::PropertyCallbackInfo<v8::Value>& info) | 3993 static void reflectUnsignedLongAttributeAttributeGetterCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
3896 { | 3994 { |
3897 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 3995 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3898 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); | 3996 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeGetter(info); |
3899 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 3997 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3900 } | 3998 } |
3901 | 3999 |
3902 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::PropertyCallbackInfo<void>& info) | 4000 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V
alue, const v8::FunctionCallbackInfo<v8::Value>& info) |
3903 { | 4001 { |
3904 v8::Local<v8::Object> holder = info.Holder(); | 4002 v8::Local<v8::Object> holder = info.Holder(); |
3905 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dLongAttribute", "TestObject", holder, info.GetIsolate()); | 4003 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne
dLongAttribute", "TestObject", holder, info.GetIsolate()); |
3906 TestObject* impl = V8TestObject::toImpl(holder); | 4004 TestObject* impl = V8TestObject::toImpl(holder); |
3907 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, NormalConversion, e
xceptionState); | 4005 unsigned cppValue = toUInt32(info.GetIsolate(), v8Value, NormalConversion, e
xceptionState); |
3908 if (exceptionState.throwIfNeeded()) | 4006 if (exceptionState.throwIfNeeded()) |
3909 return; | 4007 return; |
3910 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4008 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3911 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt
tr, cppValue); | 4009 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt
tr, cppValue); |
3912 } | 4010 } |
3913 | 4011 |
3914 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::Na
me>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4012 static void reflectUnsignedLongAttributeAttributeSetterCallback(const v8::Functi
onCallbackInfo<v8::Value>& info) |
3915 { | 4013 { |
| 4014 v8::Local<v8::Value> v8Value = info[0]; |
3916 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4015 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3917 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4016 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3918 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i
nfo); | 4017 TestObjectV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Value, i
nfo); |
3919 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4018 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3920 } | 4019 } |
3921 | 4020 |
3922 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 4021 static void idAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
3923 { | 4022 { |
3924 v8::Local<v8::Object> holder = info.Holder(); | 4023 v8::Local<v8::Object> holder = info.Holder(); |
3925 TestObject* impl = V8TestObject::toImpl(holder); | 4024 TestObject* impl = V8TestObject::toImpl(holder); |
3926 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); | 4025 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); |
3927 } | 4026 } |
3928 | 4027 |
3929 static void idAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyCal
lbackInfo<v8::Value>& info) | 4028 static void idAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
3930 { | 4029 { |
3931 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4030 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3932 TestObjectV8Internal::idAttributeGetter(info); | 4031 TestObjectV8Internal::idAttributeGetter(info); |
3933 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4032 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3934 } | 4033 } |
3935 | 4034 |
3936 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa
llbackInfo<void>& info) | 4035 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::FunctionCa
llbackInfo<v8::Value>& info) |
3937 { | 4036 { |
3938 v8::Local<v8::Object> holder = info.Holder(); | 4037 v8::Local<v8::Object> holder = info.Holder(); |
3939 TestObject* impl = V8TestObject::toImpl(holder); | 4038 TestObject* impl = V8TestObject::toImpl(holder); |
3940 V8StringResource<> cppValue = v8Value; | 4039 V8StringResource<> cppValue = v8Value; |
3941 if (!cppValue.prepare()) | 4040 if (!cppValue.prepare()) |
3942 return; | 4041 return; |
3943 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4042 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3944 impl->setAttribute(HTMLNames::idAttr, cppValue); | 4043 impl->setAttribute(HTMLNames::idAttr, cppValue); |
3945 } | 4044 } |
3946 | 4045 |
3947 static void idAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 4046 static void idAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
3948 { | 4047 { |
| 4048 v8::Local<v8::Value> v8Value = info[0]; |
3949 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4049 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3950 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4050 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3951 TestObjectV8Internal::idAttributeSetter(v8Value, info); | 4051 TestObjectV8Internal::idAttributeSetter(v8Value, info); |
3952 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4052 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3953 } | 4053 } |
3954 | 4054 |
3955 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) | 4055 static void nameAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info) |
3956 { | 4056 { |
3957 v8::Local<v8::Object> holder = info.Holder(); | 4057 v8::Local<v8::Object> holder = info.Holder(); |
3958 TestObject* impl = V8TestObject::toImpl(holder); | 4058 TestObject* impl = V8TestObject::toImpl(holder); |
3959 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); | 4059 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); |
3960 } | 4060 } |
3961 | 4061 |
3962 static void nameAttributeGetterCallback(v8::Local<v8::Name>, const v8::PropertyC
allbackInfo<v8::Value>& info) | 4062 static void nameAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) |
3963 { | 4063 { |
3964 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4064 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3965 TestObjectV8Internal::nameAttributeGetter(info); | 4065 TestObjectV8Internal::nameAttributeGetter(info); |
3966 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4066 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3967 } | 4067 } |
3968 | 4068 |
3969 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) | 4069 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Function
CallbackInfo<v8::Value>& info) |
3970 { | 4070 { |
3971 v8::Local<v8::Object> holder = info.Holder(); | 4071 v8::Local<v8::Object> holder = info.Holder(); |
3972 TestObject* impl = V8TestObject::toImpl(holder); | 4072 TestObject* impl = V8TestObject::toImpl(holder); |
3973 V8StringResource<> cppValue = v8Value; | 4073 V8StringResource<> cppValue = v8Value; |
3974 if (!cppValue.prepare()) | 4074 if (!cppValue.prepare()) |
3975 return; | 4075 return; |
3976 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4076 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3977 impl->setAttribute(HTMLNames::nameAttr, cppValue); | 4077 impl->setAttribute(HTMLNames::nameAttr, cppValue); |
3978 } | 4078 } |
3979 | 4079 |
3980 static void nameAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Value
> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4080 static void nameAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value
>& info) |
3981 { | 4081 { |
| 4082 v8::Local<v8::Value> v8Value = info[0]; |
3982 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4083 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
3983 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4084 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
3984 TestObjectV8Internal::nameAttributeSetter(v8Value, info); | 4085 TestObjectV8Internal::nameAttributeSetter(v8Value, info); |
3985 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4086 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
3986 } | 4087 } |
3987 | 4088 |
3988 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info
) | 4089 static void classAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>& info
) |
3989 { | 4090 { |
3990 v8::Local<v8::Object> holder = info.Holder(); | 4091 v8::Local<v8::Object> holder = info.Holder(); |
3991 TestObject* impl = V8TestObject::toImpl(holder); | 4092 TestObject* impl = V8TestObject::toImpl(holder); |
3992 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); | 4093 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); |
3993 } | 4094 } |
3994 | 4095 |
3995 static void classAttributeGetterCallback(v8::Local<v8::Name>, const v8::Property
CallbackInfo<v8::Value>& info) | 4096 static void classAttributeGetterCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
3996 { | 4097 { |
3997 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4098 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
3998 TestObjectV8Internal::classAttributeGetter(info); | 4099 TestObjectV8Internal::classAttributeGetter(info); |
3999 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4100 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4000 } | 4101 } |
4001 | 4102 |
4002 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert
yCallbackInfo<void>& info) | 4103 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Functio
nCallbackInfo<v8::Value>& info) |
4003 { | 4104 { |
4004 v8::Local<v8::Object> holder = info.Holder(); | 4105 v8::Local<v8::Object> holder = info.Holder(); |
4005 TestObject* impl = V8TestObject::toImpl(holder); | 4106 TestObject* impl = V8TestObject::toImpl(holder); |
4006 V8StringResource<> cppValue = v8Value; | 4107 V8StringResource<> cppValue = v8Value; |
4007 if (!cppValue.prepare()) | 4108 if (!cppValue.prepare()) |
4008 return; | 4109 return; |
4009 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4110 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4010 impl->setAttribute(HTMLNames::classAttr, cppValue); | 4111 impl->setAttribute(HTMLNames::classAttr, cppValue); |
4011 } | 4112 } |
4012 | 4113 |
4013 static void classAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4114 static void classAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
4014 { | 4115 { |
| 4116 v8::Local<v8::Value> v8Value = info[0]; |
4015 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4117 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4016 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4118 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4017 TestObjectV8Internal::classAttributeSetter(v8Value, info); | 4119 TestObjectV8Internal::classAttributeSetter(v8Value, info); |
4018 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4120 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4019 } | 4121 } |
4020 | 4122 |
4021 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>
& info) | 4123 static void reflectedIdAttributeGetter(const v8::FunctionCallbackInfo<v8::Value>
& info) |
4022 { | 4124 { |
4023 v8::Local<v8::Object> holder = info.Holder(); | 4125 v8::Local<v8::Object> holder = info.Holder(); |
4024 TestObject* impl = V8TestObject::toImpl(holder); | 4126 TestObject* impl = V8TestObject::toImpl(holder); |
4025 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); | 4127 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); |
4026 } | 4128 } |
4027 | 4129 |
4028 static void reflectedIdAttributeGetterCallback(v8::Local<v8::Name>, const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 4130 static void reflectedIdAttributeGetterCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
4029 { | 4131 { |
4030 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4132 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4031 TestObjectV8Internal::reflectedIdAttributeGetter(info); | 4133 TestObjectV8Internal::reflectedIdAttributeGetter(info); |
4032 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4134 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4033 } | 4135 } |
4034 | 4136 |
4035 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P
ropertyCallbackInfo<void>& info) | 4137 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::F
unctionCallbackInfo<v8::Value>& info) |
4036 { | 4138 { |
4037 v8::Local<v8::Object> holder = info.Holder(); | 4139 v8::Local<v8::Object> holder = info.Holder(); |
4038 TestObject* impl = V8TestObject::toImpl(holder); | 4140 TestObject* impl = V8TestObject::toImpl(holder); |
4039 V8StringResource<> cppValue = v8Value; | 4141 V8StringResource<> cppValue = v8Value; |
4040 if (!cppValue.prepare()) | 4142 if (!cppValue.prepare()) |
4041 return; | 4143 return; |
4042 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4144 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4043 impl->setAttribute(HTMLNames::idAttr, cppValue); | 4145 impl->setAttribute(HTMLNames::idAttr, cppValue); |
4044 } | 4146 } |
4045 | 4147 |
4046 static void reflectedIdAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4148 static void reflectedIdAttributeSetterCallback(const v8::FunctionCallbackInfo<v8
::Value>& info) |
4047 { | 4149 { |
| 4150 v8::Local<v8::Value> v8Value = info[0]; |
4048 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4151 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4049 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4152 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4050 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); | 4153 TestObjectV8Internal::reflectedIdAttributeSetter(v8Value, info); |
4051 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4154 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4052 } | 4155 } |
4053 | 4156 |
4054 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 4157 static void reflectedNameAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
4055 { | 4158 { |
4056 v8::Local<v8::Object> holder = info.Holder(); | 4159 v8::Local<v8::Object> holder = info.Holder(); |
4057 TestObject* impl = V8TestObject::toImpl(holder); | 4160 TestObject* impl = V8TestObject::toImpl(holder); |
4058 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); | 4161 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); |
4059 } | 4162 } |
4060 | 4163 |
4061 static void reflectedNameAttributeGetterCallback(v8::Local<v8::Name>, const v8::
PropertyCallbackInfo<v8::Value>& info) | 4164 static void reflectedNameAttributeGetterCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
4062 { | 4165 { |
4063 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4166 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4064 TestObjectV8Internal::reflectedNameAttributeGetter(info); | 4167 TestObjectV8Internal::reflectedNameAttributeGetter(info); |
4065 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4168 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4066 } | 4169 } |
4067 | 4170 |
4068 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 4171 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:FunctionCallbackInfo<v8::Value>& info) |
4069 { | 4172 { |
4070 v8::Local<v8::Object> holder = info.Holder(); | 4173 v8::Local<v8::Object> holder = info.Holder(); |
4071 TestObject* impl = V8TestObject::toImpl(holder); | 4174 TestObject* impl = V8TestObject::toImpl(holder); |
4072 V8StringResource<> cppValue = v8Value; | 4175 V8StringResource<> cppValue = v8Value; |
4073 if (!cppValue.prepare()) | 4176 if (!cppValue.prepare()) |
4074 return; | 4177 return; |
4075 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4178 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4076 impl->setAttribute(HTMLNames::nameAttr, cppValue); | 4179 impl->setAttribute(HTMLNames::nameAttr, cppValue); |
4077 } | 4180 } |
4078 | 4181 |
4079 static void reflectedNameAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4182 static void reflectedNameAttributeSetterCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
4080 { | 4183 { |
| 4184 v8::Local<v8::Value> v8Value = info[0]; |
4081 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4185 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4082 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4186 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4083 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); | 4187 TestObjectV8Internal::reflectedNameAttributeSetter(v8Value, info); |
4084 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4188 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4085 } | 4189 } |
4086 | 4190 |
4087 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 4191 static void reflectedClassAttributeGetter(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
4088 { | 4192 { |
4089 v8::Local<v8::Object> holder = info.Holder(); | 4193 v8::Local<v8::Object> holder = info.Holder(); |
4090 TestObject* impl = V8TestObject::toImpl(holder); | 4194 TestObject* impl = V8TestObject::toImpl(holder); |
4091 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); | 4195 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); |
4092 } | 4196 } |
4093 | 4197 |
4094 static void reflectedClassAttributeGetterCallback(v8::Local<v8::Name>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 4198 static void reflectedClassAttributeGetterCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
4095 { | 4199 { |
4096 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4200 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4097 TestObjectV8Internal::reflectedClassAttributeGetter(info); | 4201 TestObjectV8Internal::reflectedClassAttributeGetter(info); |
4098 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4202 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4099 } | 4203 } |
4100 | 4204 |
4101 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 4205 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::FunctionCallbackInfo<v8::Value>& info) |
4102 { | 4206 { |
4103 v8::Local<v8::Object> holder = info.Holder(); | 4207 v8::Local<v8::Object> holder = info.Holder(); |
4104 TestObject* impl = V8TestObject::toImpl(holder); | 4208 TestObject* impl = V8TestObject::toImpl(holder); |
4105 V8StringResource<> cppValue = v8Value; | 4209 V8StringResource<> cppValue = v8Value; |
4106 if (!cppValue.prepare()) | 4210 if (!cppValue.prepare()) |
4107 return; | 4211 return; |
4108 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4212 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4109 impl->setAttribute(HTMLNames::classAttr, cppValue); | 4213 impl->setAttribute(HTMLNames::classAttr, cppValue); |
4110 } | 4214 } |
4111 | 4215 |
4112 static void reflectedClassAttributeSetterCallback(v8::Local<v8::Name>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4216 static void reflectedClassAttributeSetterCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
4113 { | 4217 { |
| 4218 v8::Local<v8::Value> v8Value = info[0]; |
4114 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4219 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4115 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4220 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4116 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); | 4221 TestObjectV8Internal::reflectedClassAttributeSetter(v8Value, info); |
4117 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4222 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4118 } | 4223 } |
4119 | 4224 |
4120 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 4225 static void limitedToOnlyOneAttributeAttributeGetter(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
4121 { | 4226 { |
4122 v8::Local<v8::Object> holder = info.Holder(); | 4227 v8::Local<v8::Object> holder = info.Holder(); |
4123 TestObject* impl = V8TestObject::toImpl(holder); | 4228 TestObject* impl = V8TestObject::toImpl(holder); |
4124 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattributeA
ttr)); | 4229 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattributeA
ttr)); |
4125 if (cppValue.isEmpty()) { | 4230 if (cppValue.isEmpty()) { |
4126 ; | 4231 ; |
4127 } else if (equalIgnoringCase(cppValue, "unique")) { | 4232 } else if (equalIgnoringCase(cppValue, "unique")) { |
4128 cppValue = "unique"; | 4233 cppValue = "unique"; |
4129 } else { | 4234 } else { |
4130 cppValue = ""; | 4235 cppValue = ""; |
4131 } | 4236 } |
4132 v8SetReturnValueString(info, cppValue, info.GetIsolate()); | 4237 v8SetReturnValueString(info, cppValue, info.GetIsolate()); |
4133 } | 4238 } |
4134 | 4239 |
4135 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Name>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 4240 static void limitedToOnlyOneAttributeAttributeGetterCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
4136 { | 4241 { |
4137 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4242 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4138 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); | 4243 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); |
4139 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4244 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4140 } | 4245 } |
4141 | 4246 |
4142 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 4247 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::FunctionCallbackInfo<v8::Value>& info) |
4143 { | 4248 { |
4144 v8::Local<v8::Object> holder = info.Holder(); | 4249 v8::Local<v8::Object> holder = info.Holder(); |
4145 TestObject* impl = V8TestObject::toImpl(holder); | 4250 TestObject* impl = V8TestObject::toImpl(holder); |
4146 V8StringResource<> cppValue = v8Value; | 4251 V8StringResource<> cppValue = v8Value; |
4147 if (!cppValue.prepare()) | 4252 if (!cppValue.prepare()) |
4148 return; | 4253 return; |
4149 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4254 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4150 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); | 4255 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); |
4151 } | 4256 } |
4152 | 4257 |
4153 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Name>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4258 static void limitedToOnlyOneAttributeAttributeSetterCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
4154 { | 4259 { |
| 4260 v8::Local<v8::Value> v8Value = info[0]; |
4155 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4261 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4156 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4262 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4157 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info
); | 4263 TestObjectV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value, info
); |
4158 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4264 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4159 } | 4265 } |
4160 | 4266 |
4161 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 4267 static void limitedToOnlyAttributeAttributeGetter(const v8::FunctionCallbackInfo
<v8::Value>& info) |
4162 { | 4268 { |
4163 v8::Local<v8::Object> holder = info.Holder(); | 4269 v8::Local<v8::Object> holder = info.Holder(); |
4164 TestObject* impl = V8TestObject::toImpl(holder); | 4270 TestObject* impl = V8TestObject::toImpl(holder); |
4165 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAttr
)); | 4271 String cppValue(impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAttr
)); |
4166 if (cppValue.isEmpty()) { | 4272 if (cppValue.isEmpty()) { |
4167 ; | 4273 ; |
4168 } else if (equalIgnoringCase(cppValue, "Per")) { | 4274 } else if (equalIgnoringCase(cppValue, "Per")) { |
4169 cppValue = "Per"; | 4275 cppValue = "Per"; |
4170 } else if (equalIgnoringCase(cppValue, "Paal")) { | 4276 } else if (equalIgnoringCase(cppValue, "Paal")) { |
4171 cppValue = "Paal"; | 4277 cppValue = "Paal"; |
4172 } else if (equalIgnoringCase(cppValue, "Espen")) { | 4278 } else if (equalIgnoringCase(cppValue, "Espen")) { |
4173 cppValue = "Espen"; | 4279 cppValue = "Espen"; |
4174 } else { | 4280 } else { |
4175 cppValue = ""; | 4281 cppValue = ""; |
4176 } | 4282 } |
4177 v8SetReturnValueString(info, cppValue, info.GetIsolate()); | 4283 v8SetReturnValueString(info, cppValue, info.GetIsolate()); |
4178 } | 4284 } |
4179 | 4285 |
4180 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::Name>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 4286 static void limitedToOnlyAttributeAttributeGetterCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
4181 { | 4287 { |
4182 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4288 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4183 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); | 4289 TestObjectV8Internal::limitedToOnlyAttributeAttributeGetter(info); |
4184 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4290 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4185 } | 4291 } |
4186 | 4292 |
4187 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 4293 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::FunctionCallbackInfo<v8::Value>& info) |
4188 { | 4294 { |
4189 v8::Local<v8::Object> holder = info.Holder(); | 4295 v8::Local<v8::Object> holder = info.Holder(); |
4190 TestObject* impl = V8TestObject::toImpl(holder); | 4296 TestObject* impl = V8TestObject::toImpl(holder); |
4191 V8StringResource<> cppValue = v8Value; | 4297 V8StringResource<> cppValue = v8Value; |
4192 if (!cppValue.prepare()) | 4298 if (!cppValue.prepare()) |
4193 return; | 4299 return; |
4194 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4300 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4195 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); | 4301 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); |
4196 } | 4302 } |
4197 | 4303 |
4198 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::Name>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4304 static void limitedToOnlyAttributeAttributeSetterCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
4199 { | 4305 { |
| 4306 v8::Local<v8::Value> v8Value = info[0]; |
4200 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4307 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4201 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4308 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4202 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); | 4309 TestObjectV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, info); |
4203 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4310 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4204 } | 4311 } |
4205 | 4312 |
4206 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 4313 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
4207 { | 4314 { |
4208 v8::Local<v8::Object> holder = info.Holder(); | 4315 v8::Local<v8::Object> holder = info.Holder(); |
4209 TestObject* impl = V8TestObject::toImpl(holder); | 4316 TestObject* impl = V8TestObject::toImpl(holder); |
4210 String cppValue(impl->fastGetAttribute(HTMLNames::otherAttr)); | 4317 String cppValue(impl->fastGetAttribute(HTMLNames::otherAttr)); |
4211 if (cppValue.isEmpty()) { | 4318 if (cppValue.isEmpty()) { |
4212 ; | 4319 ; |
4213 } else if (equalIgnoringCase(cppValue, "Value1")) { | 4320 } else if (equalIgnoringCase(cppValue, "Value1")) { |
4214 cppValue = "Value1"; | 4321 cppValue = "Value1"; |
4215 } else if (equalIgnoringCase(cppValue, "Value2")) { | 4322 } else if (equalIgnoringCase(cppValue, "Value2")) { |
4216 cppValue = "Value2"; | 4323 cppValue = "Value2"; |
4217 } else { | 4324 } else { |
4218 cppValue = ""; | 4325 cppValue = ""; |
4219 } | 4326 } |
4220 v8SetReturnValueString(info, cppValue, info.GetIsolate()); | 4327 v8SetReturnValueString(info, cppValue, info.GetIsolate()); |
4221 } | 4328 } |
4222 | 4329 |
4223 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Nam
e>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4330 static void limitedToOnlyOtherAttributeAttributeGetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
4224 { | 4331 { |
4225 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4332 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4226 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); | 4333 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info); |
4227 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4334 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4228 } | 4335 } |
4229 | 4336 |
4230 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 4337 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::FunctionCallbackInfo<v8::Value>& info) |
4231 { | 4338 { |
4232 v8::Local<v8::Object> holder = info.Holder(); | 4339 v8::Local<v8::Object> holder = info.Holder(); |
4233 TestObject* impl = V8TestObject::toImpl(holder); | 4340 TestObject* impl = V8TestObject::toImpl(holder); |
4234 V8StringResource<> cppValue = v8Value; | 4341 V8StringResource<> cppValue = v8Value; |
4235 if (!cppValue.prepare()) | 4342 if (!cppValue.prepare()) |
4236 return; | 4343 return; |
4237 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4344 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4238 impl->setAttribute(HTMLNames::otherAttr, cppValue); | 4345 impl->setAttribute(HTMLNames::otherAttr, cppValue); |
4239 } | 4346 } |
4240 | 4347 |
4241 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Nam
e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4348 static void limitedToOnlyOtherAttributeAttributeSetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
4242 { | 4349 { |
| 4350 v8::Local<v8::Value> v8Value = info[0]; |
4243 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4351 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4244 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4352 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4245 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in
fo); | 4353 TestObjectV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Value, in
fo); |
4246 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4354 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4247 } | 4355 } |
4248 | 4356 |
4249 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property
CallbackInfo<v8::Value>& info) | 4357 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Function
CallbackInfo<v8::Value>& info) |
4250 { | 4358 { |
4251 v8::Local<v8::Object> holder = info.Holder(); | 4359 v8::Local<v8::Object> holder = info.Holder(); |
4252 TestObject* impl = V8TestObject::toImpl(holder); | 4360 TestObject* impl = V8TestObject::toImpl(holder); |
4253 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithmissingdefaulta
ttributeAttr)); | 4361 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithmissingdefaulta
ttributeAttr)); |
4254 if (cppValue.isEmpty()) { | 4362 if (cppValue.isEmpty()) { |
4255 cppValue = "rsa"; | 4363 cppValue = "rsa"; |
4256 } else if (equalIgnoringCase(cppValue, "rsa")) { | 4364 } else if (equalIgnoringCase(cppValue, "rsa")) { |
4257 cppValue = "rsa"; | 4365 cppValue = "rsa"; |
4258 } else if (equalIgnoringCase(cppValue, "dsa")) { | 4366 } else if (equalIgnoringCase(cppValue, "dsa")) { |
4259 cppValue = "dsa"; | 4367 cppValue = "dsa"; |
4260 } else { | 4368 } else { |
4261 cppValue = ""; | 4369 cppValue = ""; |
4262 } | 4370 } |
4263 v8SetReturnValueString(info, cppValue, info.GetIsolate()); | 4371 v8SetReturnValueString(info, cppValue, info.GetIsolate()); |
4264 } | 4372 } |
4265 | 4373 |
4266 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local<
v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4374 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
4267 { | 4375 { |
4268 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4376 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4269 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info
); | 4377 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeGetter(info
); |
4270 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4378 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4271 } | 4379 } |
4272 | 4380 |
4273 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4381 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu
e> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4274 { | 4382 { |
4275 v8::Local<v8::Object> holder = info.Holder(); | 4383 v8::Local<v8::Object> holder = info.Holder(); |
4276 TestObject* impl = V8TestObject::toImpl(holder); | 4384 TestObject* impl = V8TestObject::toImpl(holder); |
4277 V8StringResource<> cppValue = v8Value; | 4385 V8StringResource<> cppValue = v8Value; |
4278 if (!cppValue.prepare()) | 4386 if (!cppValue.prepare()) |
4279 return; | 4387 return; |
4280 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4388 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4281 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal
ue); | 4389 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal
ue); |
4282 } | 4390 } |
4283 | 4391 |
4284 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local<
v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) | 4392 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(const v8::
FunctionCallbackInfo<v8::Value>& info) |
4285 { | 4393 { |
| 4394 v8::Local<v8::Value> v8Value = info[0]; |
4286 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4395 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4287 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4396 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4288 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va
lue, info); | 4397 TestObjectV8Internal::limitedWithMissingDefaultAttributeAttributeSetter(v8Va
lue, info); |
4289 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4398 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4290 } | 4399 } |
4291 | 4400 |
4292 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P
ropertyCallbackInfo<v8::Value>& info) | 4401 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::F
unctionCallbackInfo<v8::Value>& info) |
4293 { | 4402 { |
4294 v8::Local<v8::Object> holder = info.Holder(); | 4403 v8::Local<v8::Object> holder = info.Holder(); |
4295 TestObject* impl = V8TestObject::toImpl(holder); | 4404 TestObject* impl = V8TestObject::toImpl(holder); |
4296 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissingd
efaultattributeAttr)); | 4405 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissingd
efaultattributeAttr)); |
4297 if (cppValue.isEmpty()) { | 4406 if (cppValue.isEmpty()) { |
4298 cppValue = "auto"; | 4407 cppValue = "auto"; |
4299 } else if (equalIgnoringCase(cppValue, "ltr")) { | 4408 } else if (equalIgnoringCase(cppValue, "ltr")) { |
4300 cppValue = "ltr"; | 4409 cppValue = "ltr"; |
4301 } else if (equalIgnoringCase(cppValue, "rtl")) { | 4410 } else if (equalIgnoringCase(cppValue, "rtl")) { |
4302 cppValue = "rtl"; | 4411 cppValue = "rtl"; |
4303 } else if (equalIgnoringCase(cppValue, "auto")) { | 4412 } else if (equalIgnoringCase(cppValue, "auto")) { |
4304 cppValue = "auto"; | 4413 cppValue = "auto"; |
4305 } else { | 4414 } else { |
4306 cppValue = "ltr"; | 4415 cppValue = "ltr"; |
4307 } | 4416 } |
4308 v8SetReturnValueString(info, cppValue, info.GetIsolate()); | 4417 v8SetReturnValueString(info, cppValue, info.GetIsolate()); |
4309 } | 4418 } |
4310 | 4419 |
4311 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8:
:Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4420 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
4312 { | 4421 { |
4313 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4422 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4314 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett
er(info); | 4423 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeGett
er(info); |
4315 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4424 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4316 } | 4425 } |
4317 | 4426 |
4318 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4427 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v
8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4319 { | 4428 { |
4320 v8::Local<v8::Object> holder = info.Holder(); | 4429 v8::Local<v8::Object> holder = info.Holder(); |
4321 TestObject* impl = V8TestObject::toImpl(holder); | 4430 TestObject* impl = V8TestObject::toImpl(holder); |
4322 V8StringResource<> cppValue = v8Value; | 4431 V8StringResource<> cppValue = v8Value; |
4323 if (!cppValue.prepare()) | 4432 if (!cppValue.prepare()) |
4324 return; | 4433 return; |
4325 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4434 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4326 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); | 4435 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr,
cppValue); |
4327 } | 4436 } |
4328 | 4437 |
4329 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8:
:Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<v
oid>& info) | 4438 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
4330 { | 4439 { |
| 4440 v8::Local<v8::Value> v8Value = info[0]; |
4331 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4441 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4332 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 4442 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
4333 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett
er(v8Value, info); | 4443 TestObjectV8Internal::limitedWithInvalidMissingDefaultAttributeAttributeSett
er(v8Value, info); |
4334 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4444 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4335 } | 4445 } |
4336 | 4446 |
4337 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 4447 static void corsSettingAttributeAttributeGetter(const v8::FunctionCallbackInfo<v
8::Value>& info) |
4338 { | 4448 { |
4339 v8::Local<v8::Object> holder = info.Holder(); | 4449 v8::Local<v8::Object> holder = info.Holder(); |
4340 TestObject* impl = V8TestObject::toImpl(holder); | 4450 TestObject* impl = V8TestObject::toImpl(holder); |
4341 String cppValue(impl->fastGetAttribute(HTMLNames::corssettingattributeAttr))
; | 4451 String cppValue(impl->fastGetAttribute(HTMLNames::corssettingattributeAttr))
; |
4342 if (cppValue.isNull()) { | 4452 if (cppValue.isNull()) { |
4343 ; | 4453 ; |
4344 } else if (cppValue.isEmpty()) { | 4454 } else if (cppValue.isEmpty()) { |
4345 cppValue = "anonymous"; | 4455 cppValue = "anonymous"; |
4346 } else if (equalIgnoringCase(cppValue, "anonymous")) { | 4456 } else if (equalIgnoringCase(cppValue, "anonymous")) { |
4347 cppValue = "anonymous"; | 4457 cppValue = "anonymous"; |
4348 } else if (equalIgnoringCase(cppValue, "use-credentials")) { | 4458 } else if (equalIgnoringCase(cppValue, "use-credentials")) { |
4349 cppValue = "use-credentials"; | 4459 cppValue = "use-credentials"; |
4350 } else { | 4460 } else { |
4351 cppValue = "anonymous"; | 4461 cppValue = "anonymous"; |
4352 } | 4462 } |
4353 v8SetReturnValueString(info, cppValue, info.GetIsolate()); | 4463 v8SetReturnValueString(info, cppValue, info.GetIsolate()); |
4354 } | 4464 } |
4355 | 4465 |
4356 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::Name>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 4466 static void corsSettingAttributeAttributeGetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
4357 { | 4467 { |
4358 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4468 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4359 TestObjectV8Internal::corsSettingAttributeAttributeGetter(info); | 4469 TestObjectV8Internal::corsSettingAttributeAttributeGetter(info); |
4360 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4470 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4361 } | 4471 } |
4362 | 4472 |
4363 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro
pertyCallbackInfo<v8::Value>& info) | 4473 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
4364 { | 4474 { |
4365 v8::Local<v8::Object> holder = info.Holder(); | 4475 v8::Local<v8::Object> holder = info.Holder(); |
4366 TestObject* impl = V8TestObject::toImpl(holder); | 4476 TestObject* impl = V8TestObject::toImpl(holder); |
4367 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithemptymissinginv
alidattributeAttr)); | 4477 String cppValue(impl->fastGetAttribute(HTMLNames::limitedwithemptymissinginv
alidattributeAttr)); |
4368 if (cppValue.isNull()) { | 4478 if (cppValue.isNull()) { |
4369 cppValue = "missing"; | 4479 cppValue = "missing"; |
4370 } else if (cppValue.isEmpty()) { | 4480 } else if (cppValue.isEmpty()) { |
4371 cppValue = "empty"; | 4481 cppValue = "empty"; |
4372 } else if (equalIgnoringCase(cppValue, "empty")) { | 4482 } else if (equalIgnoringCase(cppValue, "empty")) { |
4373 cppValue = "empty"; | 4483 cppValue = "empty"; |
4374 } else if (equalIgnoringCase(cppValue, "missing")) { | 4484 } else if (equalIgnoringCase(cppValue, "missing")) { |
4375 cppValue = "missing"; | 4485 cppValue = "missing"; |
4376 } else if (equalIgnoringCase(cppValue, "invalid")) { | 4486 } else if (equalIgnoringCase(cppValue, "invalid")) { |
4377 cppValue = "invalid"; | 4487 cppValue = "invalid"; |
4378 } else if (equalIgnoringCase(cppValue, "a-normal")) { | 4488 } else if (equalIgnoringCase(cppValue, "a-normal")) { |
4379 cppValue = "a-normal"; | 4489 cppValue = "a-normal"; |
4380 } else { | 4490 } else { |
4381 cppValue = "invalid"; | 4491 cppValue = "invalid"; |
4382 } | 4492 } |
4383 v8SetReturnValueString(info, cppValue, info.GetIsolate()); | 4493 v8SetReturnValueString(info, cppValue, info.GetIsolate()); |
4384 } | 4494 } |
4385 | 4495 |
4386 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L
ocal<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4496 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
4387 { | 4497 { |
4388 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4498 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4389 TestObjectV8Internal::limitedWithEmptyMissingInvalidAttributeAttributeGetter
(info); | 4499 TestObjectV8Internal::limitedWithEmptyMissingInvalidAttributeAttributeGetter
(info); |
4390 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4500 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4391 } | 4501 } |
4392 | 4502 |
4393 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) | 4503 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
4394 { | 4504 { |
4395 v8::Local<v8::Object> holder = info.Holder(); | 4505 v8::Local<v8::Object> holder = info.Holder(); |
4396 TestObject* impl = V8TestObject::toImpl(holder); | 4506 TestObject* impl = V8TestObject::toImpl(holder); |
4397 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAttribute()); | 4507 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAttribute()); |
4398 } | 4508 } |
4399 | 4509 |
4400 static void replaceableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8
::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4510 static void replaceableReadonlyLongAttributeAttributeGetterCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
4401 { | 4511 { |
4402 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4512 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4403 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeGetter(info); | 4513 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeGetter(info); |
4404 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4514 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4405 } | 4515 } |
4406 | 4516 |
4407 static void replaceableReadonlyLongAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 4517 static void replaceableReadonlyLongAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4408 { | 4518 { |
4409 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "repl
aceableReadonlyLongAttribute"); | 4519 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "repl
aceableReadonlyLongAttribute"); |
4410 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info); | 4520 TestObjectForceSetAttributeOnThis(propertyName, v8Value, info); |
4411 } | 4521 } |
4412 | 4522 |
4413 static void replaceableReadonlyLongAttributeAttributeSetterCallback(v8::Local<v8
::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf
o) | 4523 static void replaceableReadonlyLongAttributeAttributeSetterCallback(const v8::Fu
nctionCallbackInfo<v8::Value>& info) |
4414 { | 4524 { |
| 4525 v8::Local<v8::Value> v8Value = info[0]; |
4415 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4526 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4416 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeSetter(v8Valu
e, info); | 4527 TestObjectV8Internal::replaceableReadonlyLongAttributeAttributeSetter(v8Valu
e, info); |
4417 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4528 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4418 } | 4529 } |
4419 | 4530 |
4420 static void replaceableReadonlyLongAccessorAttributeGetter(const v8::FunctionCal
lbackInfo<v8::Value>& info) | 4531 static void replaceableReadonlyLongAccessorAttributeGetter(const v8::FunctionCal
lbackInfo<v8::Value>& info) |
4421 { | 4532 { |
4422 v8::Local<v8::Object> holder = info.Holder(); | 4533 v8::Local<v8::Object> holder = info.Holder(); |
4423 TestObject* impl = V8TestObject::toImpl(holder); | 4534 TestObject* impl = V8TestObject::toImpl(holder); |
4424 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAccessor()); | 4535 v8SetReturnValueInt(info, impl->replaceableReadonlyLongAccessor()); |
(...skipping 13 matching lines...) Expand all Loading... |
4438 } | 4549 } |
4439 | 4550 |
4440 static void replaceableReadonlyLongAccessorAttributeSetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) | 4551 static void replaceableReadonlyLongAccessorAttributeSetterCallback(const v8::Fun
ctionCallbackInfo<v8::Value>& info) |
4441 { | 4552 { |
4442 v8::Local<v8::Value> v8Value = info[0]; | 4553 v8::Local<v8::Value> v8Value = info[0]; |
4443 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4554 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4444 TestObjectV8Internal::replaceableReadonlyLongAccessorAttributeSetter(v8Value
, info); | 4555 TestObjectV8Internal::replaceableReadonlyLongAccessorAttributeSetter(v8Value
, info); |
4445 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4556 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4446 } | 4557 } |
4447 | 4558 |
4448 static void locationPutForwardsAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 4559 static void locationPutForwardsAttributeGetter(const v8::FunctionCallbackInfo<v8
::Value>& info) |
4449 { | 4560 { |
4450 v8::Local<v8::Object> holder = info.Holder(); | 4561 v8::Local<v8::Object> holder = info.Holder(); |
4451 TestObject* impl = V8TestObject::toImpl(holder); | 4562 TestObject* impl = V8TestObject::toImpl(holder); |
4452 v8SetReturnValueFast(info, WTF::getPtr(impl->locationPutForwards()), impl); | 4563 v8SetReturnValueFast(info, WTF::getPtr(impl->locationPutForwards()), impl); |
4453 } | 4564 } |
4454 | 4565 |
4455 static void locationPutForwardsAttributeGetterCallback(v8::Local<v8::Name>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 4566 static void locationPutForwardsAttributeGetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
4456 { | 4567 { |
4457 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4568 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4458 TestObjectV8Internal::locationPutForwardsAttributeGetter(info); | 4569 TestObjectV8Internal::locationPutForwardsAttributeGetter(info); |
4459 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4570 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4460 } | 4571 } |
4461 | 4572 |
4462 static void locationPutForwardsAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 4573 static void locationPutForwardsAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::FunctionCallbackInfo<v8::Value>& info) |
4463 { | 4574 { |
4464 v8::Local<v8::Object> holder = info.Holder(); | 4575 v8::Local<v8::Object> holder = info.Holder(); |
4465 TestObject* proxyImpl = V8TestObject::toImpl(holder); | 4576 TestObject* proxyImpl = V8TestObject::toImpl(holder); |
4466 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationPutForwar
ds()); | 4577 RefPtrWillBeRawPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationPutForwar
ds()); |
4467 if (!impl) | 4578 if (!impl) |
4468 return; | 4579 return; |
4469 V8StringResource<> cppValue = v8Value; | 4580 V8StringResource<> cppValue = v8Value; |
4470 if (!cppValue.prepare()) | 4581 if (!cppValue.prepare()) |
4471 return; | 4582 return; |
4472 impl->setHref(cppValue); | 4583 impl->setHref(cppValue); |
4473 } | 4584 } |
4474 | 4585 |
4475 static void locationPutForwardsAttributeSetterCallback(v8::Local<v8::Name>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4586 static void locationPutForwardsAttributeSetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
4476 { | 4587 { |
| 4588 v8::Local<v8::Value> v8Value = info[0]; |
4477 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4589 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4478 TestObjectV8Internal::locationPutForwardsAttributeSetter(v8Value, info); | 4590 TestObjectV8Internal::locationPutForwardsAttributeSetter(v8Value, info); |
4479 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4591 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4480 } | 4592 } |
4481 | 4593 |
4482 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 4594 static void runtimeEnabledLongAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
4483 { | 4595 { |
4484 v8::Local<v8::Object> holder = info.Holder(); | 4596 v8::Local<v8::Object> holder = info.Holder(); |
4485 TestObject* impl = V8TestObject::toImpl(holder); | 4597 TestObject* impl = V8TestObject::toImpl(holder); |
4486 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); | 4598 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); |
4487 } | 4599 } |
4488 | 4600 |
4489 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Nam
e>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4601 static void runtimeEnabledLongAttributeAttributeGetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
4490 { | 4602 { |
4491 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4603 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4492 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); | 4604 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeGetter(info); |
4493 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4605 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4494 } | 4606 } |
4495 | 4607 |
4496 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 4608 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::FunctionCallbackInfo<v8::Value>& info) |
4497 { | 4609 { |
4498 v8::Local<v8::Object> holder = info.Holder(); | 4610 v8::Local<v8::Object> holder = info.Holder(); |
4499 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObject", holder, info.GetIsolate()); | 4611 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled
LongAttribute", "TestObject", holder, info.GetIsolate()); |
4500 TestObject* impl = V8TestObject::toImpl(holder); | 4612 TestObject* impl = V8TestObject::toImpl(holder); |
4501 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 4613 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
4502 if (exceptionState.throwIfNeeded()) | 4614 if (exceptionState.throwIfNeeded()) |
4503 return; | 4615 return; |
4504 impl->setRuntimeEnabledLongAttribute(cppValue); | 4616 impl->setRuntimeEnabledLongAttribute(cppValue); |
4505 } | 4617 } |
4506 | 4618 |
4507 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Nam
e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4619 static void runtimeEnabledLongAttributeAttributeSetterCallback(const v8::Functio
nCallbackInfo<v8::Value>& info) |
4508 { | 4620 { |
| 4621 v8::Local<v8::Value> v8Value = info[0]; |
4509 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4622 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4510 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in
fo); | 4623 TestObjectV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Value, in
fo); |
4511 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4624 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4512 } | 4625 } |
4513 | 4626 |
4514 #if ENABLE(CONDITION) | 4627 #if ENABLE(CONDITION) |
4515 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop
ertyCallbackInfo<v8::Value>& info) | 4628 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Func
tionCallbackInfo<v8::Value>& info) |
4516 { | 4629 { |
4517 v8::Local<v8::Object> holder = info.Holder(); | 4630 v8::Local<v8::Object> holder = info.Holder(); |
4518 TestObject* impl = V8TestObject::toImpl(holder); | 4631 TestObject* impl = V8TestObject::toImpl(holder); |
4519 v8SetReturnValueInt(info, impl->conditionalRuntimeEnabledLongAttribute()); | 4632 v8SetReturnValueInt(info, impl->conditionalRuntimeEnabledLongAttribute()); |
4520 } | 4633 } |
4521 #endif // ENABLE(CONDITION) | 4634 #endif // ENABLE(CONDITION) |
4522 | 4635 |
4523 #if ENABLE(CONDITION) | 4636 #if ENABLE(CONDITION) |
4524 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4637 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
4525 { | 4638 { |
4526 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4639 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4527 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeGetter(
info); | 4640 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeGetter(
info); |
4528 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4641 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4529 } | 4642 } |
4530 #endif // ENABLE(CONDITION) | 4643 #endif // ENABLE(CONDITION) |
4531 | 4644 |
4532 #if ENABLE(CONDITION) | 4645 #if ENABLE(CONDITION) |
4533 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4646 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4534 { | 4647 { |
4535 v8::Local<v8::Object> holder = info.Holder(); | 4648 v8::Local<v8::Object> holder = info.Holder(); |
4536 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun
timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); | 4649 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun
timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); |
4537 TestObject* impl = V8TestObject::toImpl(holder); | 4650 TestObject* impl = V8TestObject::toImpl(holder); |
4538 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 4651 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
4539 if (exceptionState.throwIfNeeded()) | 4652 if (exceptionState.throwIfNeeded()) |
4540 return; | 4653 return; |
4541 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); | 4654 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); |
4542 } | 4655 } |
4543 #endif // ENABLE(CONDITION) | 4656 #endif // ENABLE(CONDITION) |
4544 | 4657 |
4545 #if ENABLE(CONDITION) | 4658 #if ENABLE(CONDITION) |
4546 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 4659 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
4547 { | 4660 { |
| 4661 v8::Local<v8::Value> v8Value = info[0]; |
4548 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4662 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4549 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter(
v8Value, info); | 4663 TestObjectV8Internal::conditionalRuntimeEnabledLongAttributeAttributeSetter(
v8Value, info); |
4550 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4664 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4551 } | 4665 } |
4552 #endif // ENABLE(CONDITION) | 4666 #endif // ENABLE(CONDITION) |
4553 | 4667 |
4554 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
er(const v8::PropertyCallbackInfo<v8::Value>& info) | 4668 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
er(const v8::FunctionCallbackInfo<v8::Value>& info) |
4555 { | 4669 { |
4556 v8::Local<v8::Object> holder = info.Holder(); | 4670 v8::Local<v8::Object> holder = info.Holder(); |
4557 TestObject* impl = V8TestObject::toImpl(holder); | 4671 TestObject* impl = V8TestObject::toImpl(holder); |
4558 v8SetReturnValueString(info, impl->setterCallWithActiveWindowAndFirstWindowS
tringAttribute(), info.GetIsolate()); | 4672 v8SetReturnValueString(info, impl->setterCallWithActiveWindowAndFirstWindowS
tringAttribute(), info.GetIsolate()); |
4559 } | 4673 } |
4560 | 4674 |
4561 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
erCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4675 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett
erCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
4562 { | 4676 { |
4563 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4677 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4564 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeGetter(info); | 4678 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeGetter(info); |
4565 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4679 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4566 } | 4680 } |
4567 | 4681 |
4568 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4682 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info
) |
4569 { | 4683 { |
4570 v8::Local<v8::Object> holder = info.Holder(); | 4684 v8::Local<v8::Object> holder = info.Holder(); |
4571 TestObject* impl = V8TestObject::toImpl(holder); | 4685 TestObject* impl = V8TestObject::toImpl(holder); |
4572 V8StringResource<> cppValue = v8Value; | 4686 V8StringResource<> cppValue = v8Value; |
4573 if (!cppValue.prepare()) | 4687 if (!cppValue.prepare()) |
4574 return; | 4688 return; |
4575 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW
indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); | 4689 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW
indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); |
4576 } | 4690 } |
4577 | 4691 |
4578 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) | 4692 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett
erCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
4579 { | 4693 { |
| 4694 v8::Local<v8::Value> v8Value = info[0]; |
4580 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4695 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4581 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeSetter(v8Value, info); | 4696 TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttribut
eAttributeSetter(v8Value, info); |
4582 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4697 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4583 } | 4698 } |
4584 | 4699 |
4585 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) | 4700 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v
8::FunctionCallbackInfo<v8::Value>& info) |
4586 { | 4701 { |
4587 v8::Local<v8::Object> holder = info.Holder(); | 4702 v8::Local<v8::Object> holder = info.Holder(); |
4588 TestObject* impl = V8TestObject::toImpl(holder); | 4703 TestObject* impl = V8TestObject::toImpl(holder); |
4589 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri
bute(), info.GetIsolate()); | 4704 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri
bute(), info.GetIsolate()); |
4590 } | 4705 } |
4591 | 4706 |
4592 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback
(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4707 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) |
4593 { | 4708 { |
4594 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4709 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4595 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Getter(info); | 4710 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Getter(info); |
4596 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4711 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4597 } | 4712 } |
4598 | 4713 |
4599 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4714 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4600 { | 4715 { |
4601 v8::Local<v8::Object> holder = info.Holder(); | 4716 v8::Local<v8::Object> holder = info.Holder(); |
4602 TestObject* impl = V8TestObject::toImpl(holder); | 4717 TestObject* impl = V8TestObject::toImpl(holder); |
4603 V8StringResource<> cppValue = v8Value; | 4718 V8StringResource<> cppValue = v8Value; |
4604 if (!cppValue.prepare()) | 4719 if (!cppValue.prepare()) |
4605 return; | 4720 return; |
4606 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 4721 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
4607 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp
Value); | 4722 impl->setSetterCallWithExecutionContextStringAttribute(executionContext, cpp
Value); |
4608 } | 4723 } |
4609 | 4724 |
4610 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback
(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn
fo<void>& info) | 4725 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) |
4611 { | 4726 { |
| 4727 v8::Local<v8::Value> v8Value = info[0]; |
4612 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4728 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4613 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Setter(v8Value, info); | 4729 TestObjectV8Internal::setterCallWithExecutionContextStringAttributeAttribute
Setter(v8Value, info); |
4614 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4730 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4615 } | 4731 } |
4616 | 4732 |
4617 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 4733 static void treatNullAsEmptyStringStringAttributeAttributeGetter(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
4618 { | 4734 { |
4619 v8::Local<v8::Object> holder = info.Holder(); | 4735 v8::Local<v8::Object> holder = info.Holder(); |
4620 TestObject* impl = V8TestObject::toImpl(holder); | 4736 TestObject* impl = V8TestObject::toImpl(holder); |
4621 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(),
info.GetIsolate()); | 4737 v8SetReturnValueString(info, impl->treatNullAsEmptyStringStringAttribute(),
info.GetIsolate()); |
4622 } | 4738 } |
4623 | 4739 |
4624 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(v8::Loc
al<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4740 static void treatNullAsEmptyStringStringAttributeAttributeGetterCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
4625 { | 4741 { |
4626 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4742 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4627 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i
nfo); | 4743 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeGetter(i
nfo); |
4628 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4744 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4629 } | 4745 } |
4630 | 4746 |
4631 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V
alue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4747 static void treatNullAsEmptyStringStringAttributeAttributeSetter(v8::Local<v8::V
alue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4632 { | 4748 { |
4633 v8::Local<v8::Object> holder = info.Holder(); | 4749 v8::Local<v8::Object> holder = info.Holder(); |
4634 TestObject* impl = V8TestObject::toImpl(holder); | 4750 TestObject* impl = V8TestObject::toImpl(holder); |
4635 V8StringResource<TreatNullAsEmptyString> cppValue = v8Value; | 4751 V8StringResource<TreatNullAsEmptyString> cppValue = v8Value; |
4636 if (!cppValue.prepare()) | 4752 if (!cppValue.prepare()) |
4637 return; | 4753 return; |
4638 impl->setTreatNullAsEmptyStringStringAttribute(cppValue); | 4754 impl->setTreatNullAsEmptyStringStringAttribute(cppValue); |
4639 } | 4755 } |
4640 | 4756 |
4641 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(v8::Loc
al<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>
& info) | 4757 static void treatNullAsEmptyStringStringAttributeAttributeSetterCallback(const v
8::FunctionCallbackInfo<v8::Value>& info) |
4642 { | 4758 { |
| 4759 v8::Local<v8::Value> v8Value = info[0]; |
4643 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4760 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4644 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v
8Value, info); | 4761 TestObjectV8Internal::treatNullAsEmptyStringStringAttributeAttributeSetter(v
8Value, info); |
4645 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4762 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4646 } | 4763 } |
4647 | 4764 |
4648 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper
tyCallbackInfo<v8::Value>& info) | 4765 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Functi
onCallbackInfo<v8::Value>& info) |
4649 { | 4766 { |
4650 v8::Local<v8::Object> holder = info.Holder(); | 4767 v8::Local<v8::Object> holder = info.Holder(); |
4651 TestObject* impl = V8TestObject::toImpl(holder); | 4768 TestObject* impl = V8TestObject::toImpl(holder); |
4652 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i
nfo.GetIsolate()); | 4769 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i
nfo.GetIsolate()); |
4653 } | 4770 } |
4654 | 4771 |
4655 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca
l<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4772 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) |
4656 { | 4773 { |
4657 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4774 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4658 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in
fo); | 4775 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeGetter(in
fo); |
4659 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4776 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4660 } | 4777 } |
4661 | 4778 |
4662 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4779 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va
lue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4663 { | 4780 { |
4664 v8::Local<v8::Object> holder = info.Holder(); | 4781 v8::Local<v8::Object> holder = info.Holder(); |
4665 TestObject* impl = V8TestObject::toImpl(holder); | 4782 TestObject* impl = V8TestObject::toImpl(holder); |
4666 V8StringResource<TreatNullAsNullString> cppValue = v8Value; | 4783 V8StringResource<TreatNullAsNullString> cppValue = v8Value; |
4667 if (!cppValue.prepare()) | 4784 if (!cppValue.prepare()) |
4668 return; | 4785 return; |
4669 impl->setTreatNullAsNullStringStringAttribute(cppValue); | 4786 impl->setTreatNullAsNullStringStringAttribute(cppValue); |
4670 } | 4787 } |
4671 | 4788 |
4672 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca
l<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 4789 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(const v8
::FunctionCallbackInfo<v8::Value>& info) |
4673 { | 4790 { |
| 4791 v8::Local<v8::Value> v8Value = info[0]; |
4674 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4792 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4675 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8
Value, info); | 4793 TestObjectV8Internal::treatNullAsNullStringStringAttributeAttributeSetter(v8
Value, info); |
4676 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4794 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4677 } | 4795 } |
4678 | 4796 |
4679 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 4797 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8
::FunctionCallbackInfo<v8::Value>& info) |
4680 { | 4798 { |
4681 v8::Local<v8::Object> holder = info.Holder(); | 4799 v8::Local<v8::Object> holder = info.Holder(); |
4682 TestObject* impl = V8TestObject::toImpl(holder); | 4800 TestObject* impl = V8TestObject::toImpl(holder); |
4683 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Attribute(), info.GetIsolate()); | 4801 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString
Attribute(), info.GetIsolate()); |
4684 } | 4802 } |
4685 | 4803 |
4686 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4804 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
4687 { | 4805 { |
4688 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4806 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4689 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG
etter(info); | 4807 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeG
etter(info); |
4690 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4808 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4691 } | 4809 } |
4692 | 4810 |
4693 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4811 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4694 { | 4812 { |
4695 v8::Local<v8::Object> holder = info.Holder(); | 4813 v8::Local<v8::Object> holder = info.Holder(); |
4696 TestObject* impl = V8TestObject::toImpl(holder); | 4814 TestObject* impl = V8TestObject::toImpl(holder); |
4697 V8StringResource<> cppValue = v8Value; | 4815 V8StringResource<> cppValue = v8Value; |
4698 if (!cppValue.prepare()) | 4816 if (!cppValue.prepare()) |
4699 return; | 4817 return; |
4700 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); | 4818 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); |
4701 } | 4819 } |
4702 | 4820 |
4703 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf
o<void>& info) | 4821 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
4704 { | 4822 { |
| 4823 v8::Local<v8::Value> v8Value = info[0]; |
4705 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4824 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4706 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS
etter(v8Value, info); | 4825 TestObjectV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeS
etter(v8Value, info); |
4707 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4826 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4708 } | 4827 } |
4709 | 4828 |
4710 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 4829 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
4711 { | 4830 { |
4712 v8::Local<v8::Object> holder = info.Holder(); | 4831 v8::Local<v8::Object> holder = info.Holder(); |
4713 TestObject* impl = V8TestObject::toImpl(holder); | 4832 TestObject* impl = V8TestObject::toImpl(holder); |
4714 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringAttribute(), info.GetIsolate()); | 4833 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedStringAttribute(), info.GetIsolate()); |
4715 } | 4834 } |
4716 | 4835 |
4717 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4836 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
4718 { | 4837 { |
4719 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4838 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4720 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteGetter(info); | 4839 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteGetter(info); |
4721 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4840 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4722 } | 4841 } |
4723 | 4842 |
4724 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4843 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4725 { | 4844 { |
4726 v8::Local<v8::Object> holder = info.Holder(); | 4845 v8::Local<v8::Object> holder = info.Holder(); |
4727 TestObject* impl = V8TestObject::toImpl(holder); | 4846 TestObject* impl = V8TestObject::toImpl(holder); |
4728 V8StringResource<> cppValue = v8Value; | 4847 V8StringResource<> cppValue = v8Value; |
4729 if (!cppValue.prepare()) | 4848 if (!cppValue.prepare()) |
4730 return; | 4849 return; |
4731 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); | 4850 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); |
4732 } | 4851 } |
4733 | 4852 |
4734 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallba
ckInfo<void>& info) | 4853 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
4735 { | 4854 { |
| 4855 v8::Local<v8::Value> v8Value = info[0]; |
4736 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4856 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4737 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteSetter(v8Value, info); | 4857 TestObjectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttri
buteSetter(v8Value, info); |
4738 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4858 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4739 } | 4859 } |
4740 | 4860 |
4741 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett
er(const v8::PropertyCallbackInfo<v8::Value>& info) | 4861 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett
er(const v8::FunctionCallbackInfo<v8::Value>& info) |
4742 { | 4862 { |
4743 v8::Local<v8::Object> holder = info.Holder(); | 4863 v8::Local<v8::Object> holder = info.Holder(); |
4744 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach
edTreatReturnedNullStringAsUndefinedStringAttribute"); | 4864 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach
edTreatReturnedNullStringAsUndefinedStringAttribute"); |
4745 TestObject* impl = V8TestObject::toImpl(holder); | 4865 TestObject* impl = V8TestObject::toImpl(holder); |
4746 if (!impl->isStringDirty()) { | 4866 if (!impl->isStringDirty()) { |
4747 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso
late(), holder, propertyName); | 4867 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso
late(), holder, propertyName); |
4748 if (!v8Value.IsEmpty()) { | 4868 if (!v8Value.IsEmpty()) { |
4749 v8SetReturnValue(info, v8Value); | 4869 v8SetReturnValue(info, v8Value); |
4750 return; | 4870 return; |
4751 } | 4871 } |
4752 } | 4872 } |
4753 String cppValue(impl->cachedTreatReturnedNullStringAsUndefinedStringAttribut
e()); | 4873 String cppValue(impl->cachedTreatReturnedNullStringAsUndefinedStringAttribut
e()); |
4754 v8::Local<v8::Value> v8Value(cppValue.isNull() ? v8Undefined() : v8String(in
fo.GetIsolate(), cppValue)); | 4874 v8::Local<v8::Value> v8Value(cppValue.isNull() ? v8Undefined() : v8String(in
fo.GetIsolate(), cppValue)); |
4755 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val
ue); | 4875 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val
ue); |
4756 v8SetReturnValue(info, v8Value); | 4876 v8SetReturnValue(info, v8Value); |
4757 } | 4877 } |
4758 | 4878 |
4759 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett
erCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4879 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGett
erCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
4760 { | 4880 { |
4761 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4881 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4762 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeGetter(info); | 4882 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeGetter(info); |
4763 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4883 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4764 } | 4884 } |
4765 | 4885 |
4766 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4886 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
er(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info
) |
4767 { | 4887 { |
4768 v8::Local<v8::Object> holder = info.Holder(); | 4888 v8::Local<v8::Object> holder = info.Holder(); |
4769 TestObject* impl = V8TestObject::toImpl(holder); | 4889 TestObject* impl = V8TestObject::toImpl(holder); |
4770 V8StringResource<> cppValue = v8Value; | 4890 V8StringResource<> cppValue = v8Value; |
4771 if (!cppValue.prepare()) | 4891 if (!cppValue.prepare()) |
4772 return; | 4892 return; |
4773 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); | 4893 impl->setCachedTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); |
4774 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); /
/ Invalidate the cached value. | 4894 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedTreatReturnedNullStringAsUndefinedStringAttribute")); /
/ Invalidate the cached value. |
4775 } | 4895 } |
4776 | 4896 |
4777 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
erCallback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::Property
CallbackInfo<void>& info) | 4897 static void cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeSett
erCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
4778 { | 4898 { |
| 4899 v8::Local<v8::Value> v8Value = info[0]; |
4779 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4900 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4780 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeSetter(v8Value, info); | 4901 TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttribut
eAttributeSetter(v8Value, info); |
4781 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4902 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4782 } | 4903 } |
4783 | 4904 |
4784 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetter(cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 4905 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetter(cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
4785 { | 4906 { |
4786 v8::Local<v8::Object> holder = info.Holder(); | 4907 v8::Local<v8::Object> holder = info.Holder(); |
4787 TestObject* impl = V8TestObject::toImpl(holder); | 4908 TestObject* impl = V8TestObject::toImpl(holder); |
4788 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullByteSt
ringAttribute(), info.GetIsolate()); | 4909 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullByteSt
ringAttribute(), info.GetIsolate()); |
4789 } | 4910 } |
4790 | 4911 |
4791 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallb
ack(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4912 static void treatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallb
ack(const v8::FunctionCallbackInfo<v8::Value>& info) |
4792 { | 4913 { |
4793 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4914 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4794 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteGetter(info); | 4915 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteGetter(info); |
4795 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4916 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4796 } | 4917 } |
4797 | 4918 |
4798 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4919 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetter(v8::
Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4799 { | 4920 { |
4800 v8::Local<v8::Object> holder = info.Holder(); | 4921 v8::Local<v8::Object> holder = info.Holder(); |
4801 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate()); | 4922 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullByteStringAttribute", "TestObject", holder, info.GetIsolate()); |
4802 TestObject* impl = V8TestObject::toImpl(holder); | 4923 TestObject* impl = V8TestObject::toImpl(holder); |
4803 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep
tionState); | 4924 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep
tionState); |
4804 if (exceptionState.throwIfNeeded()) | 4925 if (exceptionState.throwIfNeeded()) |
4805 return; | 4926 return; |
4806 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue); | 4927 impl->setTreatReturnedNullStringAsNullByteStringAttribute(cppValue); |
4807 } | 4928 } |
4808 | 4929 |
4809 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb
ack(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac
kInfo<void>& info) | 4930 static void treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCallb
ack(const v8::FunctionCallbackInfo<v8::Value>& info) |
4810 { | 4931 { |
| 4932 v8::Local<v8::Value> v8Value = info[0]; |
4811 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4933 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4812 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteSetter(v8Value, info); | 4934 TestObjectV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttrib
uteSetter(v8Value, info); |
4813 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4935 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4814 } | 4936 } |
4815 | 4937 |
4816 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
(const v8::PropertyCallbackInfo<v8::Value>& info) | 4938 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
(const v8::FunctionCallbackInfo<v8::Value>& info) |
4817 { | 4939 { |
4818 v8::Local<v8::Object> holder = info.Holder(); | 4940 v8::Local<v8::Object> holder = info.Holder(); |
4819 TestObject* impl = V8TestObject::toImpl(holder); | 4941 TestObject* impl = V8TestObject::toImpl(holder); |
4820 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedByteStringAttribute(), info.GetIsolate()); | 4942 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedByteStringAttribute(), info.GetIsolate()); |
4821 } | 4943 } |
4822 | 4944 |
4823 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
Callback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4945 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetter
Callback(const v8::FunctionCallbackInfo<v8::Value>& info) |
4824 { | 4946 { |
4825 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4947 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4826 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeGetter(info); | 4948 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeGetter(info); |
4827 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4949 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4828 } | 4950 } |
4829 | 4951 |
4830 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4952 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
(v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4831 { | 4953 { |
4832 v8::Local<v8::Object> holder = info.Holder(); | 4954 v8::Local<v8::Object> holder = info.Holder(); |
4833 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate(
)); | 4955 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedByteStringAttribute", "TestObject", holder, info.GetIsolate(
)); |
4834 TestObject* impl = V8TestObject::toImpl(holder); | 4956 TestObject* impl = V8TestObject::toImpl(holder); |
4835 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep
tionState); | 4957 V8StringResource<> cppValue = toByteString(info.GetIsolate(), v8Value, excep
tionState); |
4836 if (exceptionState.throwIfNeeded()) | 4958 if (exceptionState.throwIfNeeded()) |
4837 return; | 4959 return; |
4838 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue); | 4960 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue); |
4839 } | 4961 } |
4840 | 4962 |
4841 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
Callback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCa
llbackInfo<void>& info) | 4963 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter
Callback(const v8::FunctionCallbackInfo<v8::Value>& info) |
4842 { | 4964 { |
| 4965 v8::Local<v8::Value> v8Value = info[0]; |
4843 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4966 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4844 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeSetter(v8Value, info); | 4967 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA
ttributeSetter(v8Value, info); |
4845 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4968 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4846 } | 4969 } |
4847 | 4970 |
4848 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const
v8::PropertyCallbackInfo<v8::Value>& info) | 4971 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetter(const
v8::FunctionCallbackInfo<v8::Value>& info) |
4849 { | 4972 { |
4850 v8::Local<v8::Object> holder = info.Holder(); | 4973 v8::Local<v8::Object> holder = info.Holder(); |
4851 TestObject* impl = V8TestObject::toImpl(holder); | 4974 TestObject* impl = V8TestObject::toImpl(holder); |
4852 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr
ingAttribute(), info.GetIsolate()); | 4975 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullUSVStr
ingAttribute(), info.GetIsolate()); |
4853 } | 4976 } |
4854 | 4977 |
4855 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba
ck(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 4978 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
4856 { | 4979 { |
4857 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 4980 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4858 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teGetter(info); | 4981 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teGetter(info); |
4859 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 4982 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4860 } | 4983 } |
4861 | 4984 |
4862 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 4985 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetter(v8::L
ocal<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4863 { | 4986 { |
4864 v8::Local<v8::Object> holder = info.Holder(); | 4987 v8::Local<v8::Object> holder = info.Holder(); |
4865 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate()); | 4988 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsNullUSVStringAttribute", "TestObject", holder, info.GetIsolate()); |
4866 TestObject* impl = V8TestObject::toImpl(holder); | 4989 TestObject* impl = V8TestObject::toImpl(holder); |
4867 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except
ionState); | 4990 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except
ionState); |
4868 if (exceptionState.throwIfNeeded()) | 4991 if (exceptionState.throwIfNeeded()) |
4869 return; | 4992 return; |
4870 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue); | 4993 impl->setTreatReturnedNullStringAsNullUSVStringAttribute(cppValue); |
4871 } | 4994 } |
4872 | 4995 |
4873 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba
ck(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback
Info<void>& info) | 4996 static void treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba
ck(const v8::FunctionCallbackInfo<v8::Value>& info) |
4874 { | 4997 { |
| 4998 v8::Local<v8::Value> v8Value = info[0]; |
4875 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 4999 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4876 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teSetter(v8Value, info); | 5000 TestObjectV8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttribu
teSetter(v8Value, info); |
4877 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5001 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4878 } | 5002 } |
4879 | 5003 |
4880 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter(
const v8::PropertyCallbackInfo<v8::Value>& info) | 5004 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetter(
const v8::FunctionCallbackInfo<v8::Value>& info) |
4881 { | 5005 { |
4882 v8::Local<v8::Object> holder = info.Holder(); | 5006 v8::Local<v8::Object> holder = info.Holder(); |
4883 TestObject* impl = V8TestObject::toImpl(holder); | 5007 TestObject* impl = V8TestObject::toImpl(holder); |
4884 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedUSVStringAttribute(), info.GetIsolate()); | 5008 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef
inedUSVStringAttribute(), info.GetIsolate()); |
4885 } | 5009 } |
4886 | 5010 |
4887 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC
allback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 5011 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterC
allback(const v8::FunctionCallbackInfo<v8::Value>& info) |
4888 { | 5012 { |
4889 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5013 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4890 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeGetter(info); | 5014 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeGetter(info); |
4891 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5015 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4892 } | 5016 } |
4893 | 5017 |
4894 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter(
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5018 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetter(
v8::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4895 { | 5019 { |
4896 v8::Local<v8::Object> holder = info.Holder(); | 5020 v8::Local<v8::Object> holder = info.Holder(); |
4897 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate()
); | 5021 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN
ullStringAsUndefinedUSVStringAttribute", "TestObject", holder, info.GetIsolate()
); |
4898 TestObject* impl = V8TestObject::toImpl(holder); | 5022 TestObject* impl = V8TestObject::toImpl(holder); |
4899 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except
ionState); | 5023 V8StringResource<> cppValue = toUSVString(info.GetIsolate(), v8Value, except
ionState); |
4900 if (exceptionState.throwIfNeeded()) | 5024 if (exceptionState.throwIfNeeded()) |
4901 return; | 5025 return; |
4902 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue); | 5026 impl->setTreatReturnedNullStringAsUndefinedUSVStringAttribute(cppValue); |
4903 } | 5027 } |
4904 | 5028 |
4905 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC
allback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCal
lbackInfo<void>& info) | 5029 static void treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeSetterC
allback(const v8::FunctionCallbackInfo<v8::Value>& info) |
4906 { | 5030 { |
| 5031 v8::Local<v8::Value> v8Value = info[0]; |
4907 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5032 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4908 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeSetter(v8Value, info); | 5033 TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAt
tributeSetter(v8Value, info); |
4909 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5034 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4910 } | 5035 } |
4911 | 5036 |
4912 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Propert
yCallbackInfo<v8::Value>& info) | 5037 static void typeCheckingInterfaceFloatAttributeAttributeGetter(const v8::Functio
nCallbackInfo<v8::Value>& info) |
4913 { | 5038 { |
4914 v8::Local<v8::Object> holder = info.Holder(); | 5039 v8::Local<v8::Object> holder = info.Holder(); |
4915 TestObject* impl = V8TestObject::toImpl(holder); | 5040 TestObject* impl = V8TestObject::toImpl(holder); |
4916 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute()); | 5041 v8SetReturnValue(info, impl->typeCheckingInterfaceFloatAttribute()); |
4917 } | 5042 } |
4918 | 5043 |
4919 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(v8::Local
<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 5044 static void typeCheckingInterfaceFloatAttributeAttributeGetterCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
4920 { | 5045 { |
4921 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5046 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4922 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf
o); | 5047 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeGetter(inf
o); |
4923 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5048 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4924 } | 5049 } |
4925 | 5050 |
4926 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5051 static void typeCheckingInterfaceFloatAttributeAttributeSetter(v8::Local<v8::Val
ue> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4927 { | 5052 { |
4928 v8::Local<v8::Object> holder = info.Holder(); | 5053 v8::Local<v8::Object> holder = info.Holder(); |
4929 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceFloatAttribute", "TestObject", holder, info.GetIsolate()); | 5054 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceFloatAttribute", "TestObject", holder, info.GetIsolate()); |
4930 TestObject* impl = V8TestObject::toImpl(holder); | 5055 TestObject* impl = V8TestObject::toImpl(holder); |
4931 float cppValue = toRestrictedFloat(info.GetIsolate(), v8Value, exceptionStat
e); | 5056 float cppValue = toRestrictedFloat(info.GetIsolate(), v8Value, exceptionStat
e); |
4932 if (exceptionState.throwIfNeeded()) | 5057 if (exceptionState.throwIfNeeded()) |
4933 return; | 5058 return; |
4934 impl->setTypeCheckingInterfaceFloatAttribute(cppValue); | 5059 impl->setTypeCheckingInterfaceFloatAttribute(cppValue); |
4935 } | 5060 } |
4936 | 5061 |
4937 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(v8::Local
<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 5062 static void typeCheckingInterfaceFloatAttributeAttributeSetterCallback(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
4938 { | 5063 { |
| 5064 v8::Local<v8::Value> v8Value = info[0]; |
4939 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5065 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4940 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V
alue, info); | 5066 TestObjectV8Internal::typeCheckingInterfaceFloatAttributeAttributeSetter(v8V
alue, info); |
4941 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5067 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4942 } | 5068 } |
4943 | 5069 |
4944 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetter(const v8:
:PropertyCallbackInfo<v8::Value>& info) | 5070 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetter(const v8:
:FunctionCallbackInfo<v8::Value>& info) |
4945 { | 5071 { |
4946 v8::Local<v8::Object> holder = info.Holder(); | 5072 v8::Local<v8::Object> holder = info.Holder(); |
4947 TestObject* impl = V8TestObject::toImpl(holder); | 5073 TestObject* impl = V8TestObject::toImpl(holder); |
4948 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf
aceAttribute()), impl); | 5074 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf
aceAttribute()), impl); |
4949 } | 5075 } |
4950 | 5076 |
4951 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetterCallback(v
8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 5077 static void typeCheckingInterfaceTestInterfaceAttributeAttributeGetterCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
4952 { | 5078 { |
4953 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5079 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4954 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeGe
tter(info); | 5080 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeGe
tter(info); |
4955 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5081 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4956 } | 5082 } |
4957 | 5083 |
4958 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetter(v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5084 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetter(v8::Local
<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4959 { | 5085 { |
4960 v8::Local<v8::Object> holder = info.Holder(); | 5086 v8::Local<v8::Object> holder = info.Holder(); |
4961 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceTestInterfaceAttribute", "TestObject", holder, info.GetIsolate()); | 5087 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceTestInterfaceAttribute", "TestObject", holder, info.GetIsolate()); |
4962 TestObject* impl = V8TestObject::toImpl(holder); | 5088 TestObject* impl = V8TestObject::toImpl(holder); |
4963 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); | 5089 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); |
4964 if (!cppValue) { | 5090 if (!cppValue) { |
4965 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); | 5091 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); |
4966 exceptionState.throwIfNeeded(); | 5092 exceptionState.throwIfNeeded(); |
4967 return; | 5093 return; |
4968 } | 5094 } |
4969 impl->setTypeCheckingInterfaceTestInterfaceAttribute(WTF::getPtr(cppValue)); | 5095 impl->setTypeCheckingInterfaceTestInterfaceAttribute(WTF::getPtr(cppValue)); |
4970 } | 5096 } |
4971 | 5097 |
4972 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback(v
8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) | 5098 static void typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback(c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
4973 { | 5099 { |
| 5100 v8::Local<v8::Value> v8Value = info[0]; |
4974 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5101 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
4975 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeSe
tter(v8Value, info); | 5102 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceAttributeAttributeSe
tter(v8Value, info); |
4976 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5103 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4977 } | 5104 } |
4978 | 5105 |
4979 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetter(con
st v8::PropertyCallbackInfo<v8::Value>& info) | 5106 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetter(con
st v8::FunctionCallbackInfo<v8::Value>& info) |
4980 { | 5107 { |
4981 v8::Local<v8::Object> holder = info.Holder(); | 5108 v8::Local<v8::Object> holder = info.Holder(); |
4982 TestObject* impl = V8TestObject::toImpl(holder); | 5109 TestObject* impl = V8TestObject::toImpl(holder); |
4983 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf
aceOrNullAttribute()), impl); | 5110 v8SetReturnValueFast(info, WTF::getPtr(impl->typeCheckingInterfaceTestInterf
aceOrNullAttribute()), impl); |
4984 } | 5111 } |
4985 | 5112 |
4986 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCall
back(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 5113 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
4987 { | 5114 { |
4988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5115 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
4989 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri
buteGetter(info); | 5116 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri
buteGetter(info); |
4990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5117 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
4991 } | 5118 } |
4992 | 5119 |
4993 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5120 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter(v8:
:Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
4994 { | 5121 { |
4995 v8::Local<v8::Object> holder = info.Holder(); | 5122 v8::Local<v8::Object> holder = info.Holder(); |
4996 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceTestInterfaceOrNullAttribute", "TestObject", holder, info.GetIsolate()); | 5123 ExceptionState exceptionState(ExceptionState::SetterContext, "typeCheckingIn
terfaceTestInterfaceOrNullAttribute", "TestObject", holder, info.GetIsolate()); |
4997 TestObject* impl = V8TestObject::toImpl(holder); | 5124 TestObject* impl = V8TestObject::toImpl(holder); |
4998 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); | 5125 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); |
4999 if (!cppValue && !isUndefinedOrNull(v8Value)) { | 5126 if (!cppValue && !isUndefinedOrNull(v8Value)) { |
5000 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); | 5127 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); |
5001 exceptionState.throwIfNeeded(); | 5128 exceptionState.throwIfNeeded(); |
5002 return; | 5129 return; |
5003 } | 5130 } |
5004 impl->setTypeCheckingInterfaceTestInterfaceOrNullAttribute(WTF::getPtr(cppVa
lue)); | 5131 impl->setTypeCheckingInterfaceTestInterfaceOrNullAttribute(WTF::getPtr(cppVa
lue)); |
5005 } | 5132 } |
5006 | 5133 |
5007 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetterCall
back(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallba
ckInfo<void>& info) | 5134 static void typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetterCall
back(const v8::FunctionCallbackInfo<v8::Value>& info) |
5008 { | 5135 { |
| 5136 v8::Local<v8::Value> v8Value = info[0]; |
5009 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5137 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5010 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri
buteSetter(v8Value, info); | 5138 TestObjectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttri
buteSetter(v8Value, info); |
5011 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5139 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5012 } | 5140 } |
5013 | 5141 |
5014 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) | 5142 static void urlStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5015 { | 5143 { |
5016 v8::Local<v8::Object> holder = info.Holder(); | 5144 v8::Local<v8::Object> holder = info.Holder(); |
5017 TestObject* impl = V8TestObject::toImpl(holder); | 5145 TestObject* impl = V8TestObject::toImpl(holder); |
5018 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri
buteAttr), info.GetIsolate()); | 5146 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri
buteAttr), info.GetIsolate()); |
5019 } | 5147 } |
5020 | 5148 |
5021 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 5149 static void urlStringAttributeAttributeGetterCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5022 { | 5150 { |
5023 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5151 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5024 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); | 5152 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); |
5025 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5153 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5026 } | 5154 } |
5027 | 5155 |
5028 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 5156 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
5029 { | 5157 { |
5030 v8::Local<v8::Object> holder = info.Holder(); | 5158 v8::Local<v8::Object> holder = info.Holder(); |
5031 TestObject* impl = V8TestObject::toImpl(holder); | 5159 TestObject* impl = V8TestObject::toImpl(holder); |
5032 V8StringResource<> cppValue = v8Value; | 5160 V8StringResource<> cppValue = v8Value; |
5033 if (!cppValue.prepare()) | 5161 if (!cppValue.prepare()) |
5034 return; | 5162 return; |
5035 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 5163 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
5036 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); | 5164 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); |
5037 } | 5165 } |
5038 | 5166 |
5039 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5167 static void urlStringAttributeAttributeSetterCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5040 { | 5168 { |
| 5169 v8::Local<v8::Value> v8Value = info[0]; |
5041 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5170 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5042 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 5171 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
5043 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); | 5172 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); |
5044 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5173 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5045 } | 5174 } |
5046 | 5175 |
5047 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:
:Value>& info) | 5176 static void urlStringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
5048 { | 5177 { |
5049 v8::Local<v8::Object> holder = info.Holder(); | 5178 v8::Local<v8::Object> holder = info.Holder(); |
5050 TestObject* impl = V8TestObject::toImpl(holder); | 5179 TestObject* impl = V8TestObject::toImpl(holder); |
5051 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectUrlAttr
ibuteAttr), info.GetIsolate()); | 5180 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::reflectUrlAttr
ibuteAttr), info.GetIsolate()); |
5052 } | 5181 } |
5053 | 5182 |
5054 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 5183 static void urlStringAttributeAttributeGetterCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5055 { | 5184 { |
5056 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5185 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5057 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); | 5186 TestObjectV8Internal::urlStringAttributeAttributeGetter(info); |
5058 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5187 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5059 } | 5188 } |
5060 | 5189 |
5061 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::PropertyCallbackInfo<void>& info) | 5190 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
t v8::FunctionCallbackInfo<v8::Value>& info) |
5062 { | 5191 { |
5063 v8::Local<v8::Object> holder = info.Holder(); | 5192 v8::Local<v8::Object> holder = info.Holder(); |
5064 TestObject* impl = V8TestObject::toImpl(holder); | 5193 TestObject* impl = V8TestObject::toImpl(holder); |
5065 V8StringResource<> cppValue = v8Value; | 5194 V8StringResource<> cppValue = v8Value; |
5066 if (!cppValue.prepare()) | 5195 if (!cppValue.prepare()) |
5067 return; | 5196 return; |
5068 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 5197 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
5069 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); | 5198 impl->setAttribute(HTMLNames::reflectUrlAttributeAttr, cppValue); |
5070 } | 5199 } |
5071 | 5200 |
5072 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5201 static void urlStringAttributeAttributeSetterCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
5073 { | 5202 { |
| 5203 v8::Local<v8::Value> v8Value = info[0]; |
5074 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5204 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5075 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; | 5205 CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; |
5076 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); | 5206 TestObjectV8Internal::urlStringAttributeAttributeSetter(v8Value, info); |
5077 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5207 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5078 } | 5208 } |
5079 | 5209 |
5080 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) | 5210 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) |
5081 { | 5211 { |
5082 v8::Local<v8::Object> holder = info.Holder(); | 5212 v8::Local<v8::Object> holder = info.Holder(); |
5083 TestObject* impl = V8TestObject::toImpl(holder); | 5213 TestObject* impl = V8TestObject::toImpl(holder); |
(...skipping 18 matching lines...) Expand all Loading... |
5102 impl->setUnforgeableLongAttribute(cppValue); | 5232 impl->setUnforgeableLongAttribute(cppValue); |
5103 } | 5233 } |
5104 | 5234 |
5105 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::Name>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5235 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::Name>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
5106 { | 5236 { |
5107 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5237 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5108 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info)
; | 5238 TestObjectV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info)
; |
5109 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5239 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5110 } | 5240 } |
5111 | 5241 |
5112 static void measuredLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 5242 static void measuredLongAttributeAttributeGetter(const v8::FunctionCallbackInfo<
v8::Value>& info) |
5113 { | 5243 { |
5114 v8::Local<v8::Object> holder = info.Holder(); | 5244 v8::Local<v8::Object> holder = info.Holder(); |
5115 TestObject* impl = V8TestObject::toImpl(holder); | 5245 TestObject* impl = V8TestObject::toImpl(holder); |
5116 v8SetReturnValueInt(info, impl->measuredLongAttribute()); | 5246 v8SetReturnValueInt(info, impl->measuredLongAttribute()); |
5117 } | 5247 } |
5118 | 5248 |
5119 static void measuredLongAttributeAttributeGetterCallback(v8::Local<v8::Name>, co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 5249 static void measuredLongAttributeAttributeGetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
5120 { | 5250 { |
5121 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5251 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5122 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeG
etter); | 5252 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeG
etter); |
5123 TestObjectV8Internal::measuredLongAttributeAttributeGetter(info); | 5253 TestObjectV8Internal::measuredLongAttributeAttributeGetter(info); |
5124 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5254 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5125 } | 5255 } |
5126 | 5256 |
5127 static void measuredLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 5257 static void measuredLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::FunctionCallbackInfo<v8::Value>& info) |
5128 { | 5258 { |
5129 v8::Local<v8::Object> holder = info.Holder(); | 5259 v8::Local<v8::Object> holder = info.Holder(); |
5130 ExceptionState exceptionState(ExceptionState::SetterContext, "measuredLongAt
tribute", "TestObject", holder, info.GetIsolate()); | 5260 ExceptionState exceptionState(ExceptionState::SetterContext, "measuredLongAt
tribute", "TestObject", holder, info.GetIsolate()); |
5131 TestObject* impl = V8TestObject::toImpl(holder); | 5261 TestObject* impl = V8TestObject::toImpl(holder); |
5132 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 5262 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
5133 if (exceptionState.throwIfNeeded()) | 5263 if (exceptionState.throwIfNeeded()) |
5134 return; | 5264 return; |
5135 impl->setMeasuredLongAttribute(cppValue); | 5265 impl->setMeasuredLongAttribute(cppValue); |
5136 } | 5266 } |
5137 | 5267 |
5138 static void measuredLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5268 static void measuredLongAttributeAttributeSetterCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
5139 { | 5269 { |
| 5270 v8::Local<v8::Value> v8Value = info[0]; |
5140 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5271 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5141 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeS
etter); | 5272 UseCounter::countIfNotPrivateScript(info.GetIsolate(), callingExecutionConte
xt(info.GetIsolate()), UseCounter::V8TestObject_MeasuredLongAttribute_AttributeS
etter); |
5142 TestObjectV8Internal::measuredLongAttributeAttributeSetter(v8Value, info); | 5273 TestObjectV8Internal::measuredLongAttributeAttributeSetter(v8Value, info); |
5143 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5274 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5144 } | 5275 } |
5145 | 5276 |
5146 static void sameObjectAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8
::Value>& info) | 5277 static void sameObjectAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8
::Value>& info) |
5147 { | 5278 { |
5148 v8::Local<v8::Object> holder = info.Holder(); | 5279 v8::Local<v8::Object> holder = info.Holder(); |
5149 TestObject* impl = V8TestObject::toImpl(holder); | 5280 TestObject* impl = V8TestObject::toImpl(holder); |
5150 v8SetReturnValueFast(info, WTF::getPtr(impl->sameObjectAttribute()), impl); | 5281 v8SetReturnValueFast(info, WTF::getPtr(impl->sameObjectAttribute()), impl); |
5151 } | 5282 } |
5152 | 5283 |
5153 static void sameObjectAttributeAttributeGetterCallback(v8::Local<v8::Name>, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 5284 static void sameObjectAttributeAttributeGetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
5154 { | 5285 { |
5155 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5286 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5156 TestObjectV8Internal::sameObjectAttributeAttributeGetter(info); | 5287 TestObjectV8Internal::sameObjectAttributeAttributeGetter(info); |
5157 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5288 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5158 } | 5289 } |
5159 | 5290 |
5160 static void sameObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::PropertyCallbackInfo<void>& info) | 5291 static void sameObjectAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::FunctionCallbackInfo<v8::Value>& info) |
5161 { | 5292 { |
5162 v8::Local<v8::Object> holder = info.Holder(); | 5293 v8::Local<v8::Object> holder = info.Holder(); |
5163 TestObject* impl = V8TestObject::toImpl(holder); | 5294 TestObject* impl = V8TestObject::toImpl(holder); |
5164 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); | 5295 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); |
5165 impl->setSameObjectAttribute(WTF::getPtr(cppValue)); | 5296 impl->setSameObjectAttribute(WTF::getPtr(cppValue)); |
5166 } | 5297 } |
5167 | 5298 |
5168 static void sameObjectAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::
Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5299 static void sameObjectAttributeAttributeSetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
5169 { | 5300 { |
| 5301 v8::Local<v8::Value> v8Value = info[0]; |
5170 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5302 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5171 TestObjectV8Internal::sameObjectAttributeAttributeSetter(v8Value, info); | 5303 TestObjectV8Internal::sameObjectAttributeAttributeSetter(v8Value, info); |
5172 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5304 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5173 } | 5305 } |
5174 | 5306 |
5175 static void unscopeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn
fo<v8::Value>& info) | 5307 static void unscopeableLongAttributeAttributeGetter(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
5176 { | 5308 { |
5177 v8::Local<v8::Object> holder = info.Holder(); | 5309 v8::Local<v8::Object> holder = info.Holder(); |
5178 TestObject* impl = V8TestObject::toImpl(holder); | 5310 TestObject* impl = V8TestObject::toImpl(holder); |
5179 v8SetReturnValueInt(info, impl->unscopeableLongAttribute()); | 5311 v8SetReturnValueInt(info, impl->unscopeableLongAttribute()); |
5180 } | 5312 } |
5181 | 5313 |
5182 static void unscopeableLongAttributeAttributeGetterCallback(v8::Local<v8::Name>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 5314 static void unscopeableLongAttributeAttributeGetterCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
5183 { | 5315 { |
5184 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5316 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5185 TestObjectV8Internal::unscopeableLongAttributeAttributeGetter(info); | 5317 TestObjectV8Internal::unscopeableLongAttributeAttributeGetter(info); |
5186 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5318 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5187 } | 5319 } |
5188 | 5320 |
5189 static void unscopeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::PropertyCallbackInfo<void>& info) | 5321 static void unscopeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value
, const v8::FunctionCallbackInfo<v8::Value>& info) |
5190 { | 5322 { |
5191 v8::Local<v8::Object> holder = info.Holder(); | 5323 v8::Local<v8::Object> holder = info.Holder(); |
5192 ExceptionState exceptionState(ExceptionState::SetterContext, "unscopeableLon
gAttribute", "TestObject", holder, info.GetIsolate()); | 5324 ExceptionState exceptionState(ExceptionState::SetterContext, "unscopeableLon
gAttribute", "TestObject", holder, info.GetIsolate()); |
5193 TestObject* impl = V8TestObject::toImpl(holder); | 5325 TestObject* impl = V8TestObject::toImpl(holder); |
5194 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 5326 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
5195 if (exceptionState.throwIfNeeded()) | 5327 if (exceptionState.throwIfNeeded()) |
5196 return; | 5328 return; |
5197 impl->setUnscopeableLongAttribute(cppValue); | 5329 impl->setUnscopeableLongAttribute(cppValue); |
5198 } | 5330 } |
5199 | 5331 |
5200 static void unscopeableLongAttributeAttributeSetterCallback(v8::Local<v8::Name>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5332 static void unscopeableLongAttributeAttributeSetterCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
5201 { | 5333 { |
| 5334 v8::Local<v8::Value> v8Value = info[0]; |
5202 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5335 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5203 TestObjectV8Internal::unscopeableLongAttributeAttributeSetter(v8Value, info)
; | 5336 TestObjectV8Internal::unscopeableLongAttributeAttributeSetter(v8Value, info)
; |
5204 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5205 } | 5338 } |
5206 | 5339 |
5207 static void unscopeableRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop
ertyCallbackInfo<v8::Value>& info) | 5340 static void unscopeableRuntimeEnabledLongAttributeAttributeGetter(const v8::Func
tionCallbackInfo<v8::Value>& info) |
5208 { | 5341 { |
5209 v8::Local<v8::Object> holder = info.Holder(); | 5342 v8::Local<v8::Object> holder = info.Holder(); |
5210 TestObject* impl = V8TestObject::toImpl(holder); | 5343 TestObject* impl = V8TestObject::toImpl(holder); |
5211 v8SetReturnValueInt(info, impl->unscopeableRuntimeEnabledLongAttribute()); | 5344 v8SetReturnValueInt(info, impl->unscopeableRuntimeEnabledLongAttribute()); |
5212 } | 5345 } |
5213 | 5346 |
5214 static void unscopeableRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo
cal<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 5347 static void unscopeableRuntimeEnabledLongAttributeAttributeGetterCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
5215 { | 5348 { |
5216 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5349 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5217 TestObjectV8Internal::unscopeableRuntimeEnabledLongAttributeAttributeGetter(
info); | 5350 TestObjectV8Internal::unscopeableRuntimeEnabledLongAttributeAttributeGetter(
info); |
5218 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5351 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5219 } | 5352 } |
5220 | 5353 |
5221 static void unscopeableRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5354 static void unscopeableRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
5222 { | 5355 { |
5223 v8::Local<v8::Object> holder = info.Holder(); | 5356 v8::Local<v8::Object> holder = info.Holder(); |
5224 ExceptionState exceptionState(ExceptionState::SetterContext, "unscopeableRun
timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); | 5357 ExceptionState exceptionState(ExceptionState::SetterContext, "unscopeableRun
timeEnabledLongAttribute", "TestObject", holder, info.GetIsolate()); |
5225 TestObject* impl = V8TestObject::toImpl(holder); | 5358 TestObject* impl = V8TestObject::toImpl(holder); |
5226 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 5359 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
5227 if (exceptionState.throwIfNeeded()) | 5360 if (exceptionState.throwIfNeeded()) |
5228 return; | 5361 return; |
5229 impl->setUnscopeableRuntimeEnabledLongAttribute(cppValue); | 5362 impl->setUnscopeableRuntimeEnabledLongAttribute(cppValue); |
5230 } | 5363 } |
5231 | 5364 |
5232 static void unscopeableRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo
cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 5365 static void unscopeableRuntimeEnabledLongAttributeAttributeSetterCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
5233 { | 5366 { |
| 5367 v8::Local<v8::Value> v8Value = info[0]; |
5234 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5368 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5235 TestObjectV8Internal::unscopeableRuntimeEnabledLongAttributeAttributeSetter(
v8Value, info); | 5369 TestObjectV8Internal::unscopeableRuntimeEnabledLongAttributeAttributeSetter(
v8Value, info); |
5236 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5370 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5237 } | 5371 } |
5238 | 5372 |
5239 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 5373 static void testInterfaceAttributeAttributeGetter(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5240 { | 5374 { |
5241 v8::Local<v8::Object> holder = info.Holder(); | 5375 v8::Local<v8::Object> holder = info.Holder(); |
5242 TestObject* impl = V8TestObject::toImpl(holder); | 5376 TestObject* impl = V8TestObject::toImpl(holder); |
5243 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
); | 5377 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
); |
5244 } | 5378 } |
5245 | 5379 |
5246 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::Name>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 5380 static void testInterfaceAttributeAttributeGetterCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
5247 { | 5381 { |
5248 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5382 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5249 TestObjectV8Internal::testInterfaceAttributeAttributeGetter(info); | 5383 TestObjectV8Internal::testInterfaceAttributeAttributeGetter(info); |
5250 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5384 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5251 } | 5385 } |
5252 | 5386 |
5253 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 5387 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::FunctionCallbackInfo<v8::Value>& info) |
5254 { | 5388 { |
5255 v8::Local<v8::Object> holder = info.Holder(); | 5389 v8::Local<v8::Object> holder = info.Holder(); |
5256 TestObject* impl = V8TestObject::toImpl(holder); | 5390 TestObject* impl = V8TestObject::toImpl(holder); |
5257 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); | 5391 TestInterfaceImplementation* cppValue = V8TestInterface::toImplWithTypeCheck
(info.GetIsolate(), v8Value); |
5258 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); | 5392 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); |
5259 } | 5393 } |
5260 | 5394 |
5261 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::Name>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5395 static void testInterfaceAttributeAttributeSetterCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
5262 { | 5396 { |
| 5397 v8::Local<v8::Value> v8Value = info[0]; |
5263 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5398 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5264 TestObjectV8Internal::testInterfaceAttributeAttributeSetter(v8Value, info); | 5399 TestObjectV8Internal::testInterfaceAttributeAttributeSetter(v8Value, info); |
5265 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5400 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5266 } | 5401 } |
5267 | 5402 |
5268 static void testInterfaceGarbageCollectedAttributeAttributeGetter(const v8::Prop
ertyCallbackInfo<v8::Value>& info) | 5403 static void testInterfaceGarbageCollectedAttributeAttributeGetter(const v8::Func
tionCallbackInfo<v8::Value>& info) |
5269 { | 5404 { |
5270 v8::Local<v8::Object> holder = info.Holder(); | 5405 v8::Local<v8::Object> holder = info.Holder(); |
5271 TestObject* impl = V8TestObject::toImpl(holder); | 5406 TestObject* impl = V8TestObject::toImpl(holder); |
5272 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedAt
tribute()), impl); | 5407 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedAt
tribute()), impl); |
5273 } | 5408 } |
5274 | 5409 |
5275 static void testInterfaceGarbageCollectedAttributeAttributeGetterCallback(v8::Lo
cal<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 5410 static void testInterfaceGarbageCollectedAttributeAttributeGetterCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
5276 { | 5411 { |
5277 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5412 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5278 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeGetter(
info); | 5413 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeGetter(
info); |
5279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5414 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5280 } | 5415 } |
5281 | 5416 |
5282 static void testInterfaceGarbageCollectedAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5417 static void testInterfaceGarbageCollectedAttributeAttributeSetter(v8::Local<v8::
Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
5283 { | 5418 { |
5284 v8::Local<v8::Object> holder = info.Holder(); | 5419 v8::Local<v8::Object> holder = info.Holder(); |
5285 TestObject* impl = V8TestObject::toImpl(holder); | 5420 TestObject* impl = V8TestObject::toImpl(holder); |
5286 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t
oImplWithTypeCheck(info.GetIsolate(), v8Value); | 5421 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t
oImplWithTypeCheck(info.GetIsolate(), v8Value); |
5287 impl->setTestInterfaceGarbageCollectedAttribute(WTF::getPtr(cppValue)); | 5422 impl->setTestInterfaceGarbageCollectedAttribute(WTF::getPtr(cppValue)); |
5288 } | 5423 } |
5289 | 5424 |
5290 static void testInterfaceGarbageCollectedAttributeAttributeSetterCallback(v8::Lo
cal<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void
>& info) | 5425 static void testInterfaceGarbageCollectedAttributeAttributeSetterCallback(const
v8::FunctionCallbackInfo<v8::Value>& info) |
5291 { | 5426 { |
| 5427 v8::Local<v8::Value> v8Value = info[0]; |
5292 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5428 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5293 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeSetter(
v8Value, info); | 5429 TestObjectV8Internal::testInterfaceGarbageCollectedAttributeAttributeSetter(
v8Value, info); |
5294 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5430 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5295 } | 5431 } |
5296 | 5432 |
5297 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 5433 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetter(const v8
::FunctionCallbackInfo<v8::Value>& info) |
5298 { | 5434 { |
5299 v8::Local<v8::Object> holder = info.Holder(); | 5435 v8::Local<v8::Object> holder = info.Holder(); |
5300 TestObject* impl = V8TestObject::toImpl(holder); | 5436 TestObject* impl = V8TestObject::toImpl(holder); |
5301 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedOr
NullAttribute()), impl); | 5437 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceGarbageCollectedOr
NullAttribute()), impl); |
5302 } | 5438 } |
5303 | 5439 |
5304 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback(
v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 5440 static void testInterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
5305 { | 5441 { |
5306 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5442 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5307 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeG
etter(info); | 5443 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeG
etter(info); |
5308 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5444 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5309 } | 5445 } |
5310 | 5446 |
5311 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5447 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
5312 { | 5448 { |
5313 v8::Local<v8::Object> holder = info.Holder(); | 5449 v8::Local<v8::Object> holder = info.Holder(); |
5314 TestObject* impl = V8TestObject::toImpl(holder); | 5450 TestObject* impl = V8TestObject::toImpl(holder); |
5315 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t
oImplWithTypeCheck(info.GetIsolate(), v8Value); | 5451 TestInterfaceGarbageCollected* cppValue = V8TestInterfaceGarbageCollected::t
oImplWithTypeCheck(info.GetIsolate(), v8Value); |
5316 impl->setTestInterfaceGarbageCollectedOrNullAttribute(WTF::getPtr(cppValue))
; | 5452 impl->setTestInterfaceGarbageCollectedOrNullAttribute(WTF::getPtr(cppValue))
; |
5317 } | 5453 } |
5318 | 5454 |
5319 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback(
v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf
o<void>& info) | 5455 static void testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
5320 { | 5456 { |
| 5457 v8::Local<v8::Value> v8Value = info[0]; |
5321 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5458 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5322 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeS
etter(v8Value, info); | 5459 TestObjectV8Internal::testInterfaceGarbageCollectedOrNullAttributeAttributeS
etter(v8Value, info); |
5323 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5460 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5324 } | 5461 } |
5325 | 5462 |
5326 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8
::PropertyCallbackInfo<v8::Value>& info) | 5463 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8
::FunctionCallbackInfo<v8::Value>& info) |
5327 { | 5464 { |
5328 v8::Local<v8::Object> holder = info.Holder(); | 5465 v8::Local<v8::Object> holder = info.Holder(); |
5329 TestObject* impl = V8TestObject::toImpl(holder); | 5466 TestObject* impl = V8TestObject::toImpl(holder); |
5330 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle
ctedAttribute()), impl); | 5467 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle
ctedAttribute()), impl); |
5331 } | 5468 } |
5332 | 5469 |
5333 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback(
v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 5470 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
5334 { | 5471 { |
5335 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5472 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5336 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeG
etter(info); | 5473 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeG
etter(info); |
5337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5474 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5338 } | 5475 } |
5339 | 5476 |
5340 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5477 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
5341 { | 5478 { |
5342 v8::Local<v8::Object> holder = info.Holder(); | 5479 v8::Local<v8::Object> holder = info.Holder(); |
5343 TestObject* impl = V8TestObject::toImpl(holder); | 5480 TestObject* impl = V8TestObject::toImpl(holder); |
5344 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage
Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); | 5481 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage
Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); |
5345 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue))
; | 5482 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue))
; |
5346 } | 5483 } |
5347 | 5484 |
5348 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback(
v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf
o<void>& info) | 5485 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback(
const v8::FunctionCallbackInfo<v8::Value>& info) |
5349 { | 5486 { |
| 5487 v8::Local<v8::Value> v8Value = info[0]; |
5350 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5488 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5351 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeS
etter(v8Value, info); | 5489 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttributeS
etter(v8Value, info); |
5352 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5490 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5353 } | 5491 } |
5354 | 5492 |
5355 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co
nst v8::PropertyCallbackInfo<v8::Value>& info) | 5493 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
5356 { | 5494 { |
5357 v8::Local<v8::Object> holder = info.Holder(); | 5495 v8::Local<v8::Object> holder = info.Holder(); |
5358 TestObject* impl = V8TestObject::toImpl(holder); | 5496 TestObject* impl = V8TestObject::toImpl(holder); |
5359 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle
ctedOrNullAttribute()), impl); | 5497 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle
ctedOrNullAttribute()), impl); |
5360 } | 5498 } |
5361 | 5499 |
5362 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal
lback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 5500 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal
lback(const v8::FunctionCallbackInfo<v8::Value>& info) |
5363 { | 5501 { |
5364 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5502 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5365 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr
ibuteGetter(info); | 5503 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr
ibuteGetter(info); |
5366 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5504 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5367 } | 5505 } |
5368 | 5506 |
5369 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5507 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8
::Local<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
5370 { | 5508 { |
5371 v8::Local<v8::Object> holder = info.Holder(); | 5509 v8::Local<v8::Object> holder = info.Holder(); |
5372 TestObject* impl = V8TestObject::toImpl(holder); | 5510 TestObject* impl = V8TestObject::toImpl(holder); |
5373 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage
Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); | 5511 TestInterfaceWillBeGarbageCollected* cppValue = V8TestInterfaceWillBeGarbage
Collected::toImplWithTypeCheck(info.GetIsolate(), v8Value); |
5374 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV
alue)); | 5512 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV
alue)); |
5375 } | 5513 } |
5376 | 5514 |
5377 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal
lback(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb
ackInfo<void>& info) | 5515 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal
lback(const v8::FunctionCallbackInfo<v8::Value>& info) |
5378 { | 5516 { |
| 5517 v8::Local<v8::Value> v8Value = info[0]; |
5379 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5518 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5380 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr
ibuteSetter(v8Value, info); | 5519 TestObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttr
ibuteSetter(v8Value, info); |
5381 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5520 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5382 } | 5521 } |
5383 | 5522 |
5384 static void readonlyShortAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 5523 static void readonlyShortAttributeAttributeGetter(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5385 { | 5524 { |
5386 v8::Local<v8::Object> holder = info.Holder(); | 5525 v8::Local<v8::Object> holder = info.Holder(); |
5387 TestObject* impl = V8TestObject::toImpl(holder); | 5526 TestObject* impl = V8TestObject::toImpl(holder); |
5388 int result = 0; | 5527 int result = 0; |
5389 if (!V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(toLo
calFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &r
esult)) | 5528 if (!V8TestObject::PrivateScript::readonlyShortAttributeAttributeGetter(toLo
calFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &r
esult)) |
5390 return; | 5529 return; |
5391 v8SetReturnValueInt(info, result); | 5530 v8SetReturnValueInt(info, result); |
5392 } | 5531 } |
5393 | 5532 |
5394 static void readonlyShortAttributeAttributeGetterCallback(v8::Local<v8::Name>, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 5533 static void readonlyShortAttributeAttributeGetterCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
5395 { | 5534 { |
5396 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5535 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5397 TestObjectV8Internal::readonlyShortAttributeAttributeGetter(info); | 5536 TestObjectV8Internal::readonlyShortAttributeAttributeGetter(info); |
5398 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5537 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5399 } | 5538 } |
5400 | 5539 |
5401 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val
ue>& info) | 5540 static void shortAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
5402 { | 5541 { |
5403 v8::Local<v8::Object> holder = info.Holder(); | 5542 v8::Local<v8::Object> holder = info.Holder(); |
5404 TestObject* impl = V8TestObject::toImpl(holder); | 5543 TestObject* impl = V8TestObject::toImpl(holder); |
5405 int result = 0; | 5544 int result = 0; |
5406 if (!V8TestObject::PrivateScript::shortAttributeAttributeGetter(toLocalFrame
(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) | 5545 if (!V8TestObject::PrivateScript::shortAttributeAttributeGetter(toLocalFrame
(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) |
5407 return; | 5546 return; |
5408 v8SetReturnValueInt(info, result); | 5547 v8SetReturnValueInt(info, result); |
5409 } | 5548 } |
5410 | 5549 |
5411 static void shortAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8:
:PropertyCallbackInfo<v8::Value>& info) | 5550 static void shortAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5412 { | 5551 { |
5413 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5552 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5414 TestObjectV8Internal::shortAttributeAttributeGetter(info); | 5553 TestObjectV8Internal::shortAttributeAttributeGetter(info); |
5415 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5554 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5416 } | 5555 } |
5417 | 5556 |
5418 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 5557 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::FunctionCallbackInfo<v8::Value>& info) |
5419 { | 5558 { |
5420 v8::Local<v8::Object> holder = info.Holder(); | 5559 v8::Local<v8::Object> holder = info.Holder(); |
5421 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); | 5560 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute
", "TestObject", holder, info.GetIsolate()); |
5422 TestObject* impl = V8TestObject::toImpl(holder); | 5561 TestObject* impl = V8TestObject::toImpl(holder); |
5423 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); | 5562 int cppValue = toInt16(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
5424 if (exceptionState.throwIfNeeded()) | 5563 if (exceptionState.throwIfNeeded()) |
5425 return; | 5564 return; |
5426 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr
ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); | 5565 V8TestObject::PrivateScript::shortAttributeAttributeSetter(toLocalFrame(toFr
ameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); |
5427 } | 5566 } |
5428 | 5567 |
5429 static void shortAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5568 static void shortAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
5430 { | 5569 { |
| 5570 v8::Local<v8::Value> v8Value = info[0]; |
5431 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5571 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5432 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); | 5572 TestObjectV8Internal::shortAttributeAttributeSetter(v8Value, info); |
5433 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5573 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5434 } | 5574 } |
5435 | 5575 |
5436 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va
lue>& info) | 5576 static void stringAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
5437 { | 5577 { |
5438 v8::Local<v8::Object> holder = info.Holder(); | 5578 v8::Local<v8::Object> holder = info.Holder(); |
5439 TestObject* impl = V8TestObject::toImpl(holder); | 5579 TestObject* impl = V8TestObject::toImpl(holder); |
5440 String result; | 5580 String result; |
5441 if (!V8TestObject::PrivateScript::stringAttributeAttributeGetter(toLocalFram
e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) | 5581 if (!V8TestObject::PrivateScript::stringAttributeAttributeGetter(toLocalFram
e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) |
5442 return; | 5582 return; |
5443 v8SetReturnValueString(info, result, info.GetIsolate()); | 5583 v8SetReturnValueString(info, result, info.GetIsolate()); |
5444 } | 5584 } |
5445 | 5585 |
5446 static void stringAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8
::PropertyCallbackInfo<v8::Value>& info) | 5586 static void stringAttributeAttributeGetterCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
5447 { | 5587 { |
5448 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5588 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5449 TestObjectV8Internal::stringAttributeAttributeGetter(info); | 5589 TestObjectV8Internal::stringAttributeAttributeGetter(info); |
5450 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5590 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5451 } | 5591 } |
5452 | 5592 |
5453 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 5593 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::FunctionCallbackInfo<v8::Value>& info) |
5454 { | 5594 { |
5455 v8::Local<v8::Object> holder = info.Holder(); | 5595 v8::Local<v8::Object> holder = info.Holder(); |
5456 TestObject* impl = V8TestObject::toImpl(holder); | 5596 TestObject* impl = V8TestObject::toImpl(holder); |
5457 V8StringResource<> cppValue = v8Value; | 5597 V8StringResource<> cppValue = v8Value; |
5458 if (!cppValue.prepare()) | 5598 if (!cppValue.prepare()) |
5459 return; | 5599 return; |
5460 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(toF
rameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); | 5600 V8TestObject::PrivateScript::stringAttributeAttributeSetter(toLocalFrame(toF
rameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); |
5461 } | 5601 } |
5462 | 5602 |
5463 static void stringAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5603 static void stringAttributeAttributeSetterCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
5464 { | 5604 { |
| 5605 v8::Local<v8::Value> v8Value = info[0]; |
5465 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5606 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5466 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); | 5607 TestObjectV8Internal::stringAttributeAttributeSetter(v8Value, info); |
5467 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5608 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5468 } | 5609 } |
5469 | 5610 |
5470 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu
e>& info) | 5611 static void nodeAttributeAttributeGetter(const v8::FunctionCallbackInfo<v8::Valu
e>& info) |
5471 { | 5612 { |
5472 v8::Local<v8::Object> holder = info.Holder(); | 5613 v8::Local<v8::Object> holder = info.Holder(); |
5473 TestObject* impl = V8TestObject::toImpl(holder); | 5614 TestObject* impl = V8TestObject::toImpl(holder); |
5474 RefPtrWillBeRawPtr<Node> result = nullptr; | 5615 RefPtrWillBeRawPtr<Node> result = nullptr; |
5475 if (!V8TestObject::PrivateScript::nodeAttributeAttributeGetter(toLocalFrame(
toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) | 5616 if (!V8TestObject::PrivateScript::nodeAttributeAttributeGetter(toLocalFrame(
toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &result)) |
5476 return; | 5617 return; |
5477 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl); | 5618 v8SetReturnValueFast(info, WTF::getPtr(result.release()), impl); |
5478 } | 5619 } |
5479 | 5620 |
5480 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::Name>, const v8::
PropertyCallbackInfo<v8::Value>& info) | 5621 static void nodeAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
5481 { | 5622 { |
5482 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5623 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5483 TestObjectV8Internal::nodeAttributeAttributeGetter(info); | 5624 TestObjectV8Internal::nodeAttributeAttributeGetter(info); |
5484 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5625 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5485 } | 5626 } |
5486 | 5627 |
5487 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:PropertyCallbackInfo<void>& info) | 5628 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:
:FunctionCallbackInfo<v8::Value>& info) |
5488 { | 5629 { |
5489 v8::Local<v8::Object> holder = info.Holder(); | 5630 v8::Local<v8::Object> holder = info.Holder(); |
5490 TestObject* impl = V8TestObject::toImpl(holder); | 5631 TestObject* impl = V8TestObject::toImpl(holder); |
5491 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); | 5632 Node* cppValue = V8Node::toImplWithTypeCheck(info.GetIsolate(), v8Value); |
5492 V8TestObject::PrivateScript::nodeAttributeAttributeSetter(toLocalFrame(toFra
meIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); | 5633 V8TestObject::PrivateScript::nodeAttributeAttributeSetter(toLocalFrame(toFra
meIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue); |
5493 } | 5634 } |
5494 | 5635 |
5495 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8::Local<
v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5636 static void nodeAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
5496 { | 5637 { |
| 5638 v8::Local<v8::Value> v8Value = info[0]; |
5497 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5639 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5498 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info); | 5640 TestObjectV8Internal::nodeAttributeAttributeSetter(v8Value, info); |
5499 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5641 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5500 } | 5642 } |
5501 | 5643 |
5502 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetter(const v
8::PropertyCallbackInfo<v8::Value>& info) | 5644 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetter(const v
8::FunctionCallbackInfo<v8::Value>& info) |
5503 { | 5645 { |
5504 v8::Local<v8::Object> holder = info.Holder(); | 5646 v8::Local<v8::Object> holder = info.Holder(); |
5505 TestObject* impl = V8TestObject::toImpl(holder); | 5647 TestObject* impl = V8TestObject::toImpl(holder); |
5506 v8SetReturnValueString(info, impl->attributeImplementedInCPPForPrivateScript
Only(), info.GetIsolate()); | 5648 v8SetReturnValueString(info, impl->attributeImplementedInCPPForPrivateScript
Only(), info.GetIsolate()); |
5507 } | 5649 } |
5508 | 5650 |
5509 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback
(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>& info) | 5651 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) |
5510 { | 5652 { |
5511 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5653 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5512 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Getter(info); | 5654 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Getter(info); |
5513 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5655 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5514 } | 5656 } |
5515 | 5657 |
5516 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5658 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetter(v8::Loc
al<v8::Value> v8Value, const v8::FunctionCallbackInfo<v8::Value>& info) |
5517 { | 5659 { |
5518 v8::Local<v8::Object> holder = info.Holder(); | 5660 v8::Local<v8::Object> holder = info.Holder(); |
5519 TestObject* impl = V8TestObject::toImpl(holder); | 5661 TestObject* impl = V8TestObject::toImpl(holder); |
5520 V8StringResource<> cppValue = v8Value; | 5662 V8StringResource<> cppValue = v8Value; |
5521 if (!cppValue.prepare()) | 5663 if (!cppValue.prepare()) |
5522 return; | 5664 return; |
5523 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue); | 5665 impl->setAttributeImplementedInCPPForPrivateScriptOnly(cppValue); |
5524 } | 5666 } |
5525 | 5667 |
5526 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback
(v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn
fo<void>& info) | 5668 static void attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback
(const v8::FunctionCallbackInfo<v8::Value>& info) |
5527 { | 5669 { |
| 5670 v8::Local<v8::Value> v8Value = info[0]; |
5528 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5671 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5529 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Setter(v8Value, info); | 5672 TestObjectV8Internal::attributeImplementedInCPPForPrivateScriptOnlyAttribute
Setter(v8Value, info); |
5530 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5673 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5531 } | 5674 } |
5532 | 5675 |
5533 static void enumForPrivateScriptAttributeGetter(const v8::PropertyCallbackInfo<v
8::Value>& info) | 5676 static void enumForPrivateScriptAttributeGetter(const v8::FunctionCallbackInfo<v
8::Value>& info) |
5534 { | 5677 { |
5535 v8::Local<v8::Object> holder = info.Holder(); | 5678 v8::Local<v8::Object> holder = info.Holder(); |
5536 TestObject* impl = V8TestObject::toImpl(holder); | 5679 TestObject* impl = V8TestObject::toImpl(holder); |
5537 String result; | 5680 String result; |
5538 if (!V8TestObject::PrivateScript::enumForPrivateScriptAttributeGetter(toLoca
lFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &res
ult)) | 5681 if (!V8TestObject::PrivateScript::enumForPrivateScriptAttributeGetter(toLoca
lFrame(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, &res
ult)) |
5539 return; | 5682 return; |
5540 v8SetReturnValueString(info, result, info.GetIsolate()); | 5683 v8SetReturnValueString(info, result, info.GetIsolate()); |
5541 } | 5684 } |
5542 | 5685 |
5543 static void enumForPrivateScriptAttributeGetterCallback(v8::Local<v8::Name>, con
st v8::PropertyCallbackInfo<v8::Value>& info) | 5686 static void enumForPrivateScriptAttributeGetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
5544 { | 5687 { |
5545 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5688 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5546 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info); | 5689 TestObjectV8Internal::enumForPrivateScriptAttributeGetter(info); |
5547 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5690 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5548 } | 5691 } |
5549 | 5692 |
5550 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 5693 static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
5551 { | 5694 { |
5552 v8::Local<v8::Object> holder = info.Holder(); | 5695 v8::Local<v8::Object> holder = info.Holder(); |
5553 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", holder, info.GetIsolate()); | 5696 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", holder, info.GetIsolate()); |
5554 TestObject* impl = V8TestObject::toImpl(holder); | 5697 TestObject* impl = V8TestObject::toImpl(holder); |
5555 V8StringResource<> cppValue = v8Value; | 5698 V8StringResource<> cppValue = v8Value; |
5556 if (!cppValue.prepare()) | 5699 if (!cppValue.prepare()) |
5557 return; | 5700 return; |
5558 static const char* validValues[] = { | 5701 static const char* validValues[] = { |
5559 "", | 5702 "", |
5560 "EnumValue1", | 5703 "EnumValue1", |
5561 "EnumValue2", | 5704 "EnumValue2", |
5562 "EnumValue3", | 5705 "EnumValue3", |
5563 }; | 5706 }; |
5564 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test
Enum", exceptionState)) { | 5707 if (!isValidEnum(cppValue, validValues, WTF_ARRAY_LENGTH(validValues), "Test
Enum", exceptionState)) { |
5565 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes
sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); | 5708 currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMes
sage::create(JSMessageSource, WarningMessageLevel, exceptionState.message())); |
5566 return; | 5709 return; |
5567 } | 5710 } |
5568 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram
e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue)
; | 5711 V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toLocalFram
e(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext())), impl, cppValue)
; |
5569 } | 5712 } |
5570 | 5713 |
5571 static void enumForPrivateScriptAttributeSetterCallback(v8::Local<v8::Name>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 5714 static void enumForPrivateScriptAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
5572 { | 5715 { |
| 5716 v8::Local<v8::Value> v8Value = info[0]; |
5573 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 5717 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
5574 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info); | 5718 TestObjectV8Internal::enumForPrivateScriptAttributeSetter(v8Value, info); |
5575 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 5719 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
5576 } | 5720 } |
5577 | 5721 |
5578 static void testInterfaceEmptyConstructorAttributeConstructorGetterCallback(v8::
Local<v8::Name> property, const v8::PropertyCallbackInfo<v8::Value>& info) | 5722 static void testInterfaceEmptyConstructorAttributeConstructorGetterCallback(v8::
Local<v8::Name> property, const v8::PropertyCallbackInfo<v8::Value>& info) |
5579 { | 5723 { |
5580 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 5724 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
5581 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::deprecatedTestInterfaceEmptyConstr
uctorAttribute); | 5725 UseCounter::countDeprecationIfNotPrivateScript(info.GetIsolate(), callingExe
cutionContext(info.GetIsolate()), UseCounter::deprecatedTestInterfaceEmptyConstr
uctorAttribute); |
5582 v8ConstructorAttributeGetter(property, info); | 5726 v8ConstructorAttributeGetter(property, info); |
(...skipping 6613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12196 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) | 12340 static void namedPropertyEnumeratorCallback(const v8::PropertyCallbackInfo<v8::A
rray>& info) |
12197 { | 12341 { |
12198 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); | 12342 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMNamedProperty"); |
12199 TestObjectV8Internal::namedPropertyEnumerator(info); | 12343 TestObjectV8Internal::namedPropertyEnumerator(info); |
12200 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 12344 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
12201 } | 12345 } |
12202 | 12346 |
12203 } // namespace TestObjectV8Internal | 12347 } // namespace TestObjectV8Internal |
12204 | 12348 |
12205 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[]
= { | 12349 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[]
= { |
12206 {"stringifierAttribute", TestObjectV8Internal::stringifierAttributeAttribute
GetterCallback, TestObjectV8Internal::stringifierAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati
on::OnInstance}, | |
12207 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr
ipts, V8DOMConfiguration::OnInstance}, | |
12208 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn
terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig
uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12209 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu
teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnInstance}, | |
12210 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback
, TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12211 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall
back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}
, | |
12212 {"byteStringAttribute", TestObjectV8Internal::byteStringAttributeAttributeGe
tterCallback, TestObjectV8Internal::byteStringAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnInstance}, | |
12213 {"usvStringAttribute", TestObjectV8Internal::usvStringAttributeAttributeGett
erCallback, TestObjectV8Internal::usvStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Instance}, | |
12214 {"domTimeStampAttribute", TestObjectV8Internal::domTimeStampAttributeAttribu
teGetterCallback, TestObjectV8Internal::domTimeStampAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur
ation::OnInstance}, | |
12215 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa
llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstan
ce}, | |
12216 {"byteAttribute", TestObjectV8Internal::byteAttributeAttributeGetterCallback
, TestObjectV8Internal::byteAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12217 {"doubleAttribute", TestObjectV8Internal::doubleAttributeAttributeGetterCall
back, TestObjectV8Internal::doubleAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}
, | |
12218 {"floatAttribute", TestObjectV8Internal::floatAttributeAttributeGetterCallba
ck, TestObjectV8Internal::floatAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12219 {"longAttribute", TestObjectV8Internal::longAttributeAttributeGetterCallback
, TestObjectV8Internal::longAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12220 {"longLongAttribute", TestObjectV8Internal::longLongAttributeAttributeGetter
Callback, TestObjectV8Internal::longLongAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIns
tance}, | |
12221 {"octetAttribute", TestObjectV8Internal::octetAttributeAttributeGetterCallba
ck, TestObjectV8Internal::octetAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12222 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba
ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12223 {"unrestrictedDoubleAttribute", TestObjectV8Internal::unrestrictedDoubleAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::unrestrictedDoubleAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts, V8DOMConfiguration::OnInstance}, | |
12224 {"unrestrictedFloatAttribute", TestObjectV8Internal::unrestrictedFloatAttrib
uteAttributeGetterCallback, TestObjectV8Internal::unrestrictedFloatAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnInstance}, | |
12225 {"unsignedLongAttribute", TestObjectV8Internal::unsignedLongAttributeAttribu
teGetterCallback, TestObjectV8Internal::unsignedLongAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur
ation::OnInstance}, | |
12226 {"unsignedLongLongAttribute", TestObjectV8Internal::unsignedLongLongAttribut
eAttributeGetterCallback, TestObjectV8Internal::unsignedLongLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnInstance}, | |
12227 {"unsignedShortAttribute", TestObjectV8Internal::unsignedShortAttributeAttri
buteGetterCallback, TestObjectV8Internal::unsignedShortAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi
guration::OnInstance}, | |
12228 {"testInterfaceEmptyAttribute", TestObjectV8Internal::testInterfaceEmptyAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::testInterfaceEmptyAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts, V8DOMConfiguration::OnInstance}, | |
12229 {"testObjectAttribute", TestObjectV8Internal::testObjectAttributeAttributeGe
tterCallback, TestObjectV8Internal::testObjectAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnInstance}, | |
12230 {"voidCallbackFunctionAttribute", TestObjectV8Internal::voidCallbackFunction
AttributeAttributeGetterCallback, TestObjectV8Internal::voidCallbackFunctionAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnInstance}, | |
12231 {"anyCallbackFunctionOptionalAnyArgAttribute", TestObjectV8Internal::anyCall
backFunctionOptionalAnyArgAttributeAttributeGetterCallback, TestObjectV8Internal
::anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance
}, | |
12232 {"cssAttribute", TestObjectV8Internal::cssAttributeAttributeGetterCallback,
TestObjectV8Internal::cssAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V
8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12233 {"imeAttribute", TestObjectV8Internal::imeAttributeAttributeGetterCallback,
TestObjectV8Internal::imeAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V
8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12234 {"svgAttribute", TestObjectV8Internal::svgAttributeAttributeGetterCallback,
TestObjectV8Internal::svgAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V
8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12235 {"xmlAttribute", TestObjectV8Internal::xmlAttributeAttributeGetterCallback,
TestObjectV8Internal::xmlAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V
8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12236 {"nodeFilterAttribute", TestObjectV8Internal::nodeFilterAttributeAttributeGe
tterCallback, TestObjectV8Internal::nodeFilterAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnInstance}, | |
12237 {"serializedScriptValueAttribute", TestObjectV8Internal::serializedScriptVal
ueAttributeAttributeGetterCallback, TestObjectV8Internal::serializedScriptValueA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed
ToAllScripts, V8DOMConfiguration::OnInstance}, | |
12238 {"anyAttribute", TestObjectV8Internal::anyAttributeAttributeGetterCallback,
TestObjectV8Internal::anyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V
8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12239 {"promiseAttribute", TestObjectV8Internal::promiseAttributeAttributeGetterCa
llback, TestObjectV8Internal::promiseAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstan
ce}, | |
12240 {"windowAttribute", TestObjectV8Internal::windowAttributeAttributeGetterCall
back, TestObjectV8Internal::windowAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}
, | |
12241 {"documentAttribute", TestObjectV8Internal::documentAttributeAttributeGetter
Callback, TestObjectV8Internal::documentAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIns
tance}, | |
12242 {"documentFragmentAttribute", TestObjectV8Internal::documentFragmentAttribut
eAttributeGetterCallback, TestObjectV8Internal::documentFragmentAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnInstance}, | |
12243 {"documentTypeAttribute", TestObjectV8Internal::documentTypeAttributeAttribu
teGetterCallback, TestObjectV8Internal::documentTypeAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur
ation::OnInstance}, | |
12244 {"elementAttribute", TestObjectV8Internal::elementAttributeAttributeGetterCa
llback, TestObjectV8Internal::elementAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstan
ce}, | |
12245 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback
, TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12246 {"shadowRootAttribute", TestObjectV8Internal::shadowRootAttributeAttributeGe
tterCallback, TestObjectV8Internal::shadowRootAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnInstance}, | |
12247 {"arrayBufferAttribute", TestObjectV8Internal::arrayBufferAttributeAttribute
GetterCallback, TestObjectV8Internal::arrayBufferAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati
on::OnInstance}, | |
12248 {"float32ArrayAttribute", TestObjectV8Internal::float32ArrayAttributeAttribu
teGetterCallback, TestObjectV8Internal::float32ArrayAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur
ation::OnInstance}, | |
12249 {"uint8ArrayAttribute", TestObjectV8Internal::uint8ArrayAttributeAttributeGe
tterCallback, TestObjectV8Internal::uint8ArrayAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnInstance}, | |
12250 {"self", TestObjectV8Internal::selfAttributeGetterCallback, 0, 0, 0, 0, stat
ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::
None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12251 {"readonlyEventTargetAttribute", TestObjectV8Internal::readonlyEventTargetAt
tributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::D
EFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnInstance}, | |
12252 {"readonlyEventTargetOrNullAttribute", TestObjectV8Internal::readonlyEventTa
rgetOrNullAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur
ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12253 {"readonlyWindowAttribute", TestObjectV8Internal::readonlyWindowAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr
ipts, V8DOMConfiguration::OnInstance}, | |
12254 {"htmlCollectionAttribute", TestObjectV8Internal::htmlCollectionAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr
ipts, V8DOMConfiguration::OnInstance}, | |
12255 {"htmlElementAttribute", TestObjectV8Internal::htmlElementAttributeAttribute
GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnInstance}, | |
12256 {"stringArrayAttribute", TestObjectV8Internal::stringArrayAttributeAttribute
GetterCallback, TestObjectV8Internal::stringArrayAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati
on::OnInstance}, | |
12257 {"testInterfaceEmptyArrayAttribute", TestObjectV8Internal::testInterfaceEmpt
yArrayAttributeAttributeGetterCallback, TestObjectV8Internal::testInterfaceEmpty
ArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E
xposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12258 {"floatArrayAttribute", TestObjectV8Internal::floatArrayAttributeAttributeGe
tterCallback, TestObjectV8Internal::floatArrayAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnInstance}, | |
12259 {"stringOrNullAttribute", TestObjectV8Internal::stringOrNullAttributeAttribu
teGetterCallback, TestObjectV8Internal::stringOrNullAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur
ation::OnInstance}, | |
12260 {"longOrNullAttribute", TestObjectV8Internal::longOrNullAttributeAttributeGe
tterCallback, TestObjectV8Internal::longOrNullAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnInstance}, | |
12261 {"testInterfaceOrNullAttribute", TestObjectV8Internal::testInterfaceOrNullAt
tributeAttributeGetterCallback, TestObjectV8Internal::testInterfaceOrNullAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS
cripts, V8DOMConfiguration::OnInstance}, | |
12262 {"testEnumAttribute", TestObjectV8Internal::testEnumAttributeAttributeGetter
Callback, TestObjectV8Internal::testEnumAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIns
tance}, | |
12263 {"testEnumOrNullAttribute", TestObjectV8Internal::testEnumOrNullAttributeAtt
ributeGetterCallback, TestObjectV8Internal::testEnumOrNullAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo
nfiguration::OnInstance}, | |
12264 {"eventHandlerAttribute", TestObjectV8Internal::eventHandlerAttributeAttribu
teGetterCallback, TestObjectV8Internal::eventHandlerAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur
ation::OnInstance}, | |
12265 {"doubleOrStringAttribute", TestObjectV8Internal::doubleOrStringAttributeAtt
ributeGetterCallback, TestObjectV8Internal::doubleOrStringAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo
nfiguration::OnInstance}, | |
12266 {"doubleOrStringOrNullAttribute", TestObjectV8Internal::doubleOrStringOrNull
AttributeAttributeGetterCallback, TestObjectV8Internal::doubleOrStringOrNullAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnInstance}, | |
12267 {"doubleOrNullStringAttribute", TestObjectV8Internal::doubleOrNullStringAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::doubleOrNullStringAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts, V8DOMConfiguration::OnInstance}, | |
12268 {"stringOrStringSequenceAttribute", TestObjectV8Internal::stringOrStringSequ
enceAttributeAttributeGetterCallback, TestObjectV8Internal::stringOrStringSequen
ceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo
sedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12269 {"testEnumOrDoubleAttribute", TestObjectV8Internal::testEnumOrDoubleAttribut
eAttributeGetterCallback, TestObjectV8Internal::testEnumOrDoubleAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnInstance}, | |
12270 {"unrestrictedDoubleOrStringAttribute", TestObjectV8Internal::unrestrictedDo
ubleOrStringAttributeAttributeGetterCallback, TestObjectV8Internal::unrestricted
DoubleOrStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12271 {"activityLoggingAccessForAllWorldsLongAttribute", TestObjectV8Internal::act
ivityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8
Internal::activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration
::OnInstance}, | |
12272 {"activityLoggingGetterForAllWorldsLongAttribute", TestObjectV8Internal::act
ivityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8
Internal::activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration
::OnInstance}, | |
12273 {"activityLoggingSetterForAllWorldsLongAttribute", TestObjectV8Internal::act
ivityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8
Internal::activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration
::OnInstance}, | |
12274 {"cachedAttributeAnyAttribute", TestObjectV8Internal::cachedAttributeAnyAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::cachedAttributeAnyAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts, V8DOMConfiguration::OnInstance}, | |
12275 {"cachedArrayAttribute", TestObjectV8Internal::cachedArrayAttributeAttribute
GetterCallback, TestObjectV8Internal::cachedArrayAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati
on::OnInstance}, | |
12276 {"cachedStringOrNoneAttribute", TestObjectV8Internal::cachedStringOrNoneAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::cachedStringOrNoneAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts, V8DOMConfiguration::OnInstance}, | |
12277 {"callWithExecutionContextAnyAttribute", TestObjectV8Internal::callWithExecu
tionContextAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithEx
ecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf
iguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12278 {"callWithScriptStateAnyAttribute", TestObjectV8Internal::callWithScriptStat
eAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithScriptStateA
nyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo
sedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12279 {"callWithExecutionContextAndScriptStateAnyAttribute", TestObjectV8Internal:
:callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCallback, Test
ObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC
onfiguration::OnInstance}, | |
12280 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectV8Internal::chec
kSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance
}, | |
12281 #if ENABLE(CONDITION) | |
12282 {"conditionalLongAttribute", TestObjectV8Internal::conditionalLongAttributeA
ttributeGetterCallback, TestObjectV8Internal::conditionalLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DO
MConfiguration::OnInstance}, | |
12283 #endif // ENABLE(CONDITION) | |
12284 {"testInterfaceEmptyConstructorAttribute", v8ConstructorAttributeGetter, Tes
tObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSetterCallback
, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInst
ance}, | 12350 {"testInterfaceEmptyConstructorAttribute", v8ConstructorAttributeGetter, Tes
tObjectV8Internal::testInterfaceEmptyConstructorAttributeAttributeSetterCallback
, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::DontEnum), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInst
ance}, |
12285 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::testInterfa
ceEmptyConstructorAttributeConstructorGetterCallback, TestObjectV8Internal::test
InterfaceEmptyConstructorAttributeAttributeSetterCallback, 0, 0, const_cast<Wrap
perTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfi
guration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 12351 {"testInterfaceEmptyConstructorAttribute", TestObjectV8Internal::testInterfa
ceEmptyConstructorAttributeConstructorGetterCallback, TestObjectV8Internal::test
InterfaceEmptyConstructorAttributeAttributeSetterCallback, 0, 0, const_cast<Wrap
perTypeInfo*>(&V8TestInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfi
guration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
12286 {"measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", TestObjectV8I
nternal::measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGe
tterCallback, TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstr
uctorAttributeAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8Tes
tInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnInstance}, | 12352 {"measureAsFeatureNameTestInterfaceEmptyConstructorAttribute", TestObjectV8I
nternal::measureAsFeatureNameTestInterfaceEmptyConstructorAttributeConstructorGe
tterCallback, TestObjectV8Internal::measureAsFeatureNameTestInterfaceEmptyConstr
uctorAttributeAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*>(&V8Tes
tInterfaceEmpty::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnInstance}, |
12287 {"customObjectAttribute", TestObjectV8Internal::customObjectAttributeAttribu
teGetterCallback, TestObjectV8Internal::customObjectAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur
ation::OnInstance}, | 12353 {"customObjectAttribute", TestObjectV8Internal::customObjectAttributeAttribu
teGetterCallback, TestObjectV8Internal::customObjectAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur
ation::OnInstance}, |
12288 {"customGetterLongAttribute", TestObjectV8Internal::customGetterLongAttribut
eAttributeGetterCallback, TestObjectV8Internal::customGetterLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnInstance}, | 12354 {"customGetterLongAttribute", TestObjectV8Internal::customGetterLongAttribut
eAttributeGetterCallback, TestObjectV8Internal::customGetterLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnInstance}, |
12289 {"customGetterReadonlyObjectAttribute", TestObjectV8Internal::customGetterRe
adonlyObjectAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig
uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 12355 {"customGetterReadonlyObjectAttribute", TestObjectV8Internal::customGetterRe
adonlyObjectAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig
uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
12290 {"customSetterLongAttribute", TestObjectV8Internal::customSetterLongAttribut
eAttributeGetterCallback, TestObjectV8Internal::customSetterLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnInstance}, | 12356 {"customSetterLongAttribute", TestObjectV8Internal::customSetterLongAttribut
eAttributeGetterCallback, TestObjectV8Internal::customSetterLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnInstance}, |
12291 #if ENABLE(CONDITION) | 12357 #if ENABLE(CONDITION) |
12292 {"customLongAttribute", TestObjectV8Internal::customLongAttributeAttributeGe
tterCallback, TestObjectV8Internal::customLongAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnInstance}, | 12358 {"customLongAttribute", TestObjectV8Internal::customLongAttributeAttributeGe
tterCallback, TestObjectV8Internal::customLongAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnInstance}, |
12293 #endif // ENABLE(CONDITION) | 12359 #endif // ENABLE(CONDITION) |
12294 {"customElementsCallbacksReadonlyLongAttribute", TestObjectV8Internal::custo
mElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, stat
ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::
None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12295 {"deprecatedLongAttribute", TestObjectV8Internal::deprecatedLongAttributeAtt
ributeGetterCallback, TestObjectV8Internal::deprecatedLongAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo
nfiguration::OnInstance}, | |
12296 {"enforceRangeLongAttribute", TestObjectV8Internal::enforceRangeLongAttribut
eAttributeGetterCallback, TestObjectV8Internal::enforceRangeLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnInstance}, | |
12297 {"implementedAsLongAttribute", TestObjectV8Internal::implementedAsLongAttrib
uteAttributeGetterCallback, TestObjectV8Internal::implementedAsLongAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnInstance}, | |
12298 {"customImplementedAsLongAttribute", TestObjectV8Internal::customImplemented
AsLongAttributeAttributeGetterCallback, TestObjectV8Internal::customImplementedA
sLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E
xposedToAllScripts, V8DOMConfiguration::OnInstance}, | 12360 {"customImplementedAsLongAttribute", TestObjectV8Internal::customImplemented
AsLongAttributeAttributeGetterCallback, TestObjectV8Internal::customImplementedA
sLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E
xposedToAllScripts, V8DOMConfiguration::OnInstance}, |
12299 {"customGetterImplementedAsLongAttribute", TestObjectV8Internal::customGette
rImplementedAsLongAttributeAttributeGetterCallback, TestObjectV8Internal::custom
GetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 12361 {"customGetterImplementedAsLongAttribute", TestObjectV8Internal::customGette
rImplementedAsLongAttributeAttributeGetterCallback, TestObjectV8Internal::custom
GetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
12300 {"customSetterImplementedAsLongAttribute", TestObjectV8Internal::customSette
rImplementedAsLongAttributeAttributeGetterCallback, TestObjectV8Internal::custom
SetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | 12362 {"customSetterImplementedAsLongAttribute", TestObjectV8Internal::customSette
rImplementedAsLongAttributeAttributeGetterCallback, TestObjectV8Internal::custom
SetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, |
12301 {"measureAsLongAttribute", TestObjectV8Internal::measureAsLongAttributeAttri
buteGetterCallback, TestObjectV8Internal::measureAsLongAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi
guration::OnInstance}, | |
12302 {"notEnumerableLongAttribute", TestObjectV8Internal::notEnumerableLongAttrib
uteAttributeGetterCallback, TestObjectV8Internal::notEnumerableLongAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScr
ipts, V8DOMConfiguration::OnInstance}, | |
12303 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestObjectV8Internal
::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback, 0,
TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttrib
uteGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnInstance}, | |
12304 {"activityLoggingAccessPerWorldBindingsLongAttribute", TestObjectV8Internal:
:activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallback, Test
ObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeSet
terCallback, TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttr
ibuteAttributeGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingA
ccessPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12305 {"activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", Test
ObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::activityLoggingAccessForIsol
atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, TestObjectV8Inte
rnal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttribu
teGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingAccessForIsol
atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstanc
e}, | |
12306 {"activityLoggingGetterPerWorldBindingsLongAttribute", TestObjectV8Internal:
:activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallback, Test
ObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeSet
terCallback, TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttr
ibuteAttributeGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingG
etterPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12307 {"activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", Test
ObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::activityLoggingGetterForIsol
atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, TestObjectV8Inte
rnal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttribu
teGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingGetterForIsol
atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstanc
e}, | |
12308 {"location", TestObjectV8Internal::locationAttributeGetterCallback, TestObje
ctV8Internal::locationAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur
ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12309 {"locationWithException", TestObjectV8Internal::locationWithExceptionAttribu
teGetterCallback, TestObjectV8Internal::locationWithExceptionAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur
ation::OnInstance}, | |
12310 {"locationWithCallWith", TestObjectV8Internal::locationWithCallWithAttribute
GetterCallback, TestObjectV8Internal::locationWithCallWithAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati
on::OnInstance}, | |
12311 {"locationByteString", TestObjectV8Internal::locationByteStringAttributeGett
erCallback, TestObjectV8Internal::locationByteStringAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Instance}, | |
12312 {"locationWithPerWorldBindings", TestObjectV8Internal::locationWithPerWorldB
indingsAttributeGetterCallback, TestObjectV8Internal::locationWithPerWorldBindin
gsAttributeSetterCallback, TestObjectV8Internal::locationWithPerWorldBindingsAtt
ributeGetterCallbackForMainWorld, TestObjectV8Internal::locationWithPerWorldBind
ingsAttributeSetterCallbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::D
EFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnInstance}, | |
12313 {"locationTypeCheckingInterface", TestObjectV8Internal::locationTypeChecking
InterfaceAttributeGetterCallback, TestObjectV8Internal::locationTypeCheckingInte
rfaceAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnInstance}, | |
12314 {"locationGarbageCollected", TestObjectV8Internal::locationGarbageCollectedA
ttributeGetterCallback, TestObjectV8Internal::locationGarbageCollectedAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DO
MConfiguration::OnInstance}, | |
12315 {"locationWillBeGarbageCollected", TestObjectV8Internal::locationWillBeGarba
geCollectedAttributeGetterCallback, TestObjectV8Internal::locationWillBeGarbageC
ollectedAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed
ToAllScripts, V8DOMConfiguration::OnInstance}, | |
12316 {"raisesExceptionLongAttribute", TestObjectV8Internal::raisesExceptionLongAt
tributeAttributeGetterCallback, TestObjectV8Internal::raisesExceptionLongAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS
cripts, V8DOMConfiguration::OnInstance}, | |
12317 {"raisesExceptionGetterLongAttribute", TestObjectV8Internal::raisesException
GetterLongAttributeAttributeGetterCallback, TestObjectV8Internal::raisesExceptio
nGetterLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12318 {"setterRaisesExceptionLongAttribute", TestObjectV8Internal::setterRaisesExc
eptionLongAttributeAttributeGetterCallback, TestObjectV8Internal::setterRaisesEx
ceptionLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12319 {"raisesExceptionTestInterfaceEmptyAttribute", TestObjectV8Internal::raisesE
xceptionTestInterfaceEmptyAttributeAttributeGetterCallback, TestObjectV8Internal
::raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance
}, | |
12320 {"cachedAttributeRaisesExceptionGetterAnyAttribute", TestObjectV8Internal::c
achedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallback, TestObje
ctV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu
ration::OnInstance}, | |
12321 {"reflectTestInterfaceAttribute", TestObjectV8Internal::reflectTestInterface
AttributeAttributeGetterCallback, TestObjectV8Internal::reflectTestInterfaceAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnInstance}, | |
12322 {"reflectReflectedNameAttributeTestAttribute", TestObjectV8Internal::reflect
ReflectedNameAttributeTestAttributeAttributeGetterCallback, TestObjectV8Internal
::reflectReflectedNameAttributeTestAttributeAttributeSetterCallback, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance
}, | |
12323 {"reflectBooleanAttribute", TestObjectV8Internal::reflectBooleanAttributeAtt
ributeGetterCallback, TestObjectV8Internal::reflectBooleanAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMCo
nfiguration::OnInstance}, | |
12324 {"reflectLongAttribute", TestObjectV8Internal::reflectLongAttributeAttribute
GetterCallback, TestObjectV8Internal::reflectLongAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati
on::OnInstance}, | |
12325 {"reflectUnsignedShortAttribute", TestObjectV8Internal::reflectUnsignedShort
AttributeAttributeGetterCallback, TestObjectV8Internal::reflectUnsignedShortAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA
llScripts, V8DOMConfiguration::OnInstance}, | |
12326 {"reflectUnsignedLongAttribute", TestObjectV8Internal::reflectUnsignedLongAt
tributeAttributeGetterCallback, TestObjectV8Internal::reflectUnsignedLongAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS
cripts, V8DOMConfiguration::OnInstance}, | |
12327 {"id", TestObjectV8Internal::idAttributeGetterCallback, TestObjectV8Internal
::idAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT
), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl
lScripts, V8DOMConfiguration::OnInstance}, | |
12328 {"name", TestObjectV8Internal::nameAttributeGetterCallback, TestObjectV8Inte
rnal::nameAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::D
EFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnInstance}, | |
12329 {"class", TestObjectV8Internal::classAttributeGetterCallback, TestObjectV8In
ternal::classAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8
::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12330 {"reflectedId", TestObjectV8Internal::reflectedIdAttributeGetterCallback, Te
stObjectV8Internal::reflectedIdAttributeSetterCallback, 0, 0, 0, static_cast<v8:
:AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DO
MConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12331 {"reflectedName", TestObjectV8Internal::reflectedNameAttributeGetterCallback
, TestObjectV8Internal::reflectedNameAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12332 {"reflectedClass", TestObjectV8Internal::reflectedClassAttributeGetterCallba
ck, TestObjectV8Internal::reflectedClassAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12333 {"limitedToOnlyOneAttribute", TestObjectV8Internal::limitedToOnlyOneAttribut
eAttributeGetterCallback, TestObjectV8Internal::limitedToOnlyOneAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V
8DOMConfiguration::OnInstance}, | |
12334 {"limitedToOnlyAttribute", TestObjectV8Internal::limitedToOnlyAttributeAttri
buteGetterCallback, TestObjectV8Internal::limitedToOnlyAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi
guration::OnInstance}, | |
12335 {"limitedToOnlyOtherAttribute", TestObjectV8Internal::limitedToOnlyOtherAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::limitedToOnlyOtherAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts, V8DOMConfiguration::OnInstance}, | |
12336 {"limitedWithMissingDefaultAttribute", TestObjectV8Internal::limitedWithMiss
ingDefaultAttributeAttributeGetterCallback, TestObjectV8Internal::limitedWithMis
singDefaultAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12337 {"limitedWithInvalidMissingDefaultAttribute", TestObjectV8Internal::limitedW
ithInvalidMissingDefaultAttributeAttributeGetterCallback, TestObjectV8Internal::
limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, stati
c_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::N
one), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12338 {"corsSettingAttribute", TestObjectV8Internal::corsSettingAttributeAttribute
GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnInstance}, | |
12339 {"limitedWithEmptyMissingInvalidAttribute", TestObjectV8Internal::limitedWit
hEmptyMissingInvalidAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12340 {"replaceableReadonlyLongAttribute", TestObjectV8Internal::replaceableReadon
lyLongAttributeAttributeGetterCallback, TestObjectV8Internal::replaceableReadonl
yLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E
xposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12341 {"locationPutForwards", TestObjectV8Internal::locationPutForwardsAttributeGe
tterCallback, TestObjectV8Internal::locationPutForwardsAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnInstance}, | |
12342 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectV8Inte
rnal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGetterCall
back, TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttrib
uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnInstance}, | |
12343 {"setterCallWithExecutionContextStringAttribute", TestObjectV8Internal::sett
erCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObjectV8In
ternal::setterCallWithExecutionContextStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::O
nInstance}, | |
12344 {"treatNullAsEmptyStringStringAttribute", TestObjectV8Internal::treatNullAsE
mptyStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNul
lAsEmptyStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::A
ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMC
onfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12345 {"treatNullAsNullStringStringAttribute", TestObjectV8Internal::treatNullAsNu
llStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNullA
sNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf
iguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12346 {"treatReturnedNullStringAsNullStringAttribute", TestObjectV8Internal::treat
ReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn
stance}, | |
12347 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Internal::
treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestOb
jectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConf
iguration::OnInstance}, | |
12348 {"cachedTreatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Inte
rnal::cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back, TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttrib
uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnInstance}, | |
12349 {"treatReturnedNullStringAsNullByteStringAttribute", TestObjectV8Internal::t
reatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallback, TestObje
ctV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigu
ration::OnInstance}, | |
12350 {"treatReturnedNullStringAsUndefinedByteStringAttribute", TestObjectV8Intern
al::treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetterCallback
, TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeAtt
ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript
s, V8DOMConfiguration::OnInstance}, | |
12351 {"treatReturnedNullStringAsNullUSVStringAttribute", TestObjectV8Internal::tr
eatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallback, TestObject
V8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba
ck, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper
tyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurat
ion::OnInstance}, | |
12352 {"treatReturnedNullStringAsUndefinedUSVStringAttribute", TestObjectV8Interna
l::treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterCallback,
TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAttrib
uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts,
V8DOMConfiguration::OnInstance}, | |
12353 {"typeCheckingInterfaceFloatAttribute", TestObjectV8Internal::typeCheckingIn
terfaceFloatAttributeAttributeGetterCallback, TestObjectV8Internal::typeChecking
InterfaceFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12354 {"typeCheckingInterfaceTestInterfaceAttribute", TestObjectV8Internal::typeCh
eckingInterfaceTestInterfaceAttributeAttributeGetterCallback, TestObjectV8Intern
al::typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>
(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInsta
nce}, | |
12355 {"typeCheckingInterfaceTestInterfaceOrNullAttribute", TestObjectV8Internal::
typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCallback, TestOb
jectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConf
iguration::OnInstance}, | |
12356 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett
erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Instance}, | |
12357 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett
erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::On
Instance}, | |
12358 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA
ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING
), static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnInstance}, | 12363 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA
ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING
), static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::Expos
edToAllScripts, V8DOMConfiguration::OnInstance}, |
12359 {"measuredLongAttribute", TestObjectV8Internal::measuredLongAttributeAttribu
teGetterCallback, TestObjectV8Internal::measuredLongAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigur
ation::OnInstance}, | |
12360 {"sameObjectAttribute", TestObjectV8Internal::sameObjectAttributeAttributeGe
tterCallback, TestObjectV8Internal::sameObjectAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration:
:OnInstance}, | |
12361 {"unscopeableLongAttribute", TestObjectV8Internal::unscopeableLongAttributeA
ttributeGetterCallback, TestObjectV8Internal::unscopeableLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DO
MConfiguration::OnInstance}, | |
12362 {"testInterfaceAttribute", TestObjectV8Internal::testInterfaceAttributeAttri
buteGetterCallback, TestObjectV8Internal::testInterfaceAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfi
guration::OnInstance}, | |
12363 {"testInterfaceGarbageCollectedAttribute", TestObjectV8Internal::testInterfa
ceGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Internal::testIn
terfaceGarbageCollectedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D
OMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12364 {"testInterfaceGarbageCollectedOrNullAttribute", TestObjectV8Internal::testI
nterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn
stance}, | |
12365 {"testInterfaceWillBeGarbageCollectedAttribute", TestObjectV8Internal::testI
nterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnIn
stance}, | |
12366 {"testInterfaceWillBeGarbageCollectedOrNullAttribute", TestObjectV8Internal:
:testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCallback, Test
ObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMC
onfiguration::OnInstance}, | |
12367 {"readonlyShortAttribute", TestObjectV8Internal::readonlyShortAttributeAttri
buteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip
ts, V8DOMConfiguration::OnInstance}, | |
12368 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba
ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12369 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall
back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}
, | |
12370 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback
, TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}, | |
12371 {"attributeImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::attr
ibuteImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback, TestObjectV8In
ternal::attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), V8DOMConfiguration::OnlyExposedToPrivateScript, V8DOMConfigura
tion::OnInstance}, | |
12372 {"enumForPrivateScript", TestObjectV8Internal::enumForPrivateScriptAttribute
GetterCallback, TestObjectV8Internal::enumForPrivateScriptAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfigurati
on::OnInstance}, | |
12373 }; | 12364 }; |
12374 | 12365 |
12375 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] =
{ | 12366 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] =
{ |
| 12367 {"stringifierAttribute", TestObjectV8Internal::stringifierAttributeAttribute
GetterCallback, TestObjectV8Internal::stringifierAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12368 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr
ipts}, |
| 12369 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn
terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig
uration::ExposedToAllScripts}, |
| 12370 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu
teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
}, |
| 12371 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback
, TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts}, |
| 12372 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall
back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12373 {"byteStringAttribute", TestObjectV8Internal::byteStringAttributeAttributeGe
tterCallback, TestObjectV8Internal::byteStringAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12374 {"usvStringAttribute", TestObjectV8Internal::usvStringAttributeAttributeGett
erCallback, TestObjectV8Internal::usvStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12375 {"domTimeStampAttribute", TestObjectV8Internal::domTimeStampAttributeAttribu
teGetterCallback, TestObjectV8Internal::domTimeStampAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12376 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa
llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12377 {"byteAttribute", TestObjectV8Internal::byteAttributeAttributeGetterCallback
, TestObjectV8Internal::byteAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts}, |
| 12378 {"doubleAttribute", TestObjectV8Internal::doubleAttributeAttributeGetterCall
back, TestObjectV8Internal::doubleAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12379 {"floatAttribute", TestObjectV8Internal::floatAttributeAttributeGetterCallba
ck, TestObjectV8Internal::floatAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts}, |
| 12380 {"longAttribute", TestObjectV8Internal::longAttributeAttributeGetterCallback
, TestObjectV8Internal::longAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts}, |
| 12381 {"longLongAttribute", TestObjectV8Internal::longLongAttributeAttributeGetter
Callback, TestObjectV8Internal::longLongAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12382 {"octetAttribute", TestObjectV8Internal::octetAttributeAttributeGetterCallba
ck, TestObjectV8Internal::octetAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts}, |
| 12383 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba
ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts}, |
| 12384 {"unrestrictedDoubleAttribute", TestObjectV8Internal::unrestrictedDoubleAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::unrestrictedDoubleAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts}, |
| 12385 {"unrestrictedFloatAttribute", TestObjectV8Internal::unrestrictedFloatAttrib
uteAttributeGetterCallback, TestObjectV8Internal::unrestrictedFloatAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
}, |
| 12386 {"unsignedLongAttribute", TestObjectV8Internal::unsignedLongAttributeAttribu
teGetterCallback, TestObjectV8Internal::unsignedLongAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12387 {"unsignedLongLongAttribute", TestObjectV8Internal::unsignedLongLongAttribut
eAttributeGetterCallback, TestObjectV8Internal::unsignedLongLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12388 {"unsignedShortAttribute", TestObjectV8Internal::unsignedShortAttributeAttri
buteGetterCallback, TestObjectV8Internal::unsignedShortAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12389 {"testInterfaceEmptyAttribute", TestObjectV8Internal::testInterfaceEmptyAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::testInterfaceEmptyAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts}, |
| 12390 {"testObjectAttribute", TestObjectV8Internal::testObjectAttributeAttributeGe
tterCallback, TestObjectV8Internal::testObjectAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12391 {"voidCallbackFunctionAttribute", TestObjectV8Internal::voidCallbackFunction
AttributeAttributeGetterCallback, TestObjectV8Internal::voidCallbackFunctionAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA
llScripts}, |
| 12392 {"anyCallbackFunctionOptionalAnyArgAttribute", TestObjectV8Internal::anyCall
backFunctionOptionalAnyArgAttributeAttributeGetterCallback, TestObjectV8Internal
::anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12393 {"cssAttribute", TestObjectV8Internal::cssAttributeAttributeGetterCallback,
TestObjectV8Internal::cssAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V
8DOMConfiguration::ExposedToAllScripts}, |
| 12394 {"imeAttribute", TestObjectV8Internal::imeAttributeAttributeGetterCallback,
TestObjectV8Internal::imeAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V
8DOMConfiguration::ExposedToAllScripts}, |
| 12395 {"svgAttribute", TestObjectV8Internal::svgAttributeAttributeGetterCallback,
TestObjectV8Internal::svgAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V
8DOMConfiguration::ExposedToAllScripts}, |
| 12396 {"xmlAttribute", TestObjectV8Internal::xmlAttributeAttributeGetterCallback,
TestObjectV8Internal::xmlAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V
8DOMConfiguration::ExposedToAllScripts}, |
| 12397 {"nodeFilterAttribute", TestObjectV8Internal::nodeFilterAttributeAttributeGe
tterCallback, TestObjectV8Internal::nodeFilterAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12398 {"serializedScriptValueAttribute", TestObjectV8Internal::serializedScriptVal
ueAttributeAttributeGetterCallback, TestObjectV8Internal::serializedScriptValueA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed
ToAllScripts}, |
| 12399 {"anyAttribute", TestObjectV8Internal::anyAttributeAttributeGetterCallback,
TestObjectV8Internal::anyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<
v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V
8DOMConfiguration::ExposedToAllScripts}, |
| 12400 {"promiseAttribute", TestObjectV8Internal::promiseAttributeAttributeGetterCa
llback, TestObjectV8Internal::promiseAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12401 {"windowAttribute", TestObjectV8Internal::windowAttributeAttributeGetterCall
back, TestObjectV8Internal::windowAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12402 {"documentAttribute", TestObjectV8Internal::documentAttributeAttributeGetter
Callback, TestObjectV8Internal::documentAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12403 {"documentFragmentAttribute", TestObjectV8Internal::documentFragmentAttribut
eAttributeGetterCallback, TestObjectV8Internal::documentFragmentAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12404 {"documentTypeAttribute", TestObjectV8Internal::documentTypeAttributeAttribu
teGetterCallback, TestObjectV8Internal::documentTypeAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12405 {"elementAttribute", TestObjectV8Internal::elementAttributeAttributeGetterCa
llback, TestObjectV8Internal::elementAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12406 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback
, TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts}, |
| 12407 {"shadowRootAttribute", TestObjectV8Internal::shadowRootAttributeAttributeGe
tterCallback, TestObjectV8Internal::shadowRootAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12408 {"arrayBufferAttribute", TestObjectV8Internal::arrayBufferAttributeAttribute
GetterCallback, TestObjectV8Internal::arrayBufferAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12409 {"float32ArrayAttribute", TestObjectV8Internal::float32ArrayAttributeAttribu
teGetterCallback, TestObjectV8Internal::float32ArrayAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12410 {"uint8ArrayAttribute", TestObjectV8Internal::uint8ArrayAttributeAttributeGe
tterCallback, TestObjectV8Internal::uint8ArrayAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12411 {"self", TestObjectV8Internal::selfAttributeGetterCallback, 0, 0, 0, 0, stat
ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::
None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12412 {"readonlyEventTargetAttribute", TestObjectV8Internal::readonlyEventTargetAt
tributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::D
EFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos
edToAllScripts}, |
| 12413 {"readonlyEventTargetOrNullAttribute", TestObjectV8Internal::readonlyEventTa
rgetOrNullAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur
ation::ExposedToAllScripts}, |
| 12414 {"readonlyWindowAttribute", TestObjectV8Internal::readonlyWindowAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr
ipts}, |
| 12415 {"htmlCollectionAttribute", TestObjectV8Internal::htmlCollectionAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScr
ipts}, |
| 12416 {"htmlElementAttribute", TestObjectV8Internal::htmlElementAttributeAttribute
GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12417 {"stringArrayAttribute", TestObjectV8Internal::stringArrayAttributeAttribute
GetterCallback, TestObjectV8Internal::stringArrayAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12418 {"testInterfaceEmptyArrayAttribute", TestObjectV8Internal::testInterfaceEmpt
yArrayAttributeAttributeGetterCallback, TestObjectV8Internal::testInterfaceEmpty
ArrayAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E
xposedToAllScripts}, |
| 12419 {"floatArrayAttribute", TestObjectV8Internal::floatArrayAttributeAttributeGe
tterCallback, TestObjectV8Internal::floatArrayAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12420 {"stringOrNullAttribute", TestObjectV8Internal::stringOrNullAttributeAttribu
teGetterCallback, TestObjectV8Internal::stringOrNullAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12421 {"longOrNullAttribute", TestObjectV8Internal::longOrNullAttributeAttributeGe
tterCallback, TestObjectV8Internal::longOrNullAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12422 {"testInterfaceOrNullAttribute", TestObjectV8Internal::testInterfaceOrNullAt
tributeAttributeGetterCallback, TestObjectV8Internal::testInterfaceOrNullAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS
cripts}, |
| 12423 {"testEnumAttribute", TestObjectV8Internal::testEnumAttributeAttributeGetter
Callback, TestObjectV8Internal::testEnumAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12424 {"testEnumOrNullAttribute", TestObjectV8Internal::testEnumOrNullAttributeAtt
ributeGetterCallback, TestObjectV8Internal::testEnumOrNullAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12425 {"eventHandlerAttribute", TestObjectV8Internal::eventHandlerAttributeAttribu
teGetterCallback, TestObjectV8Internal::eventHandlerAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12426 {"doubleOrStringAttribute", TestObjectV8Internal::doubleOrStringAttributeAtt
ributeGetterCallback, TestObjectV8Internal::doubleOrStringAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12427 {"doubleOrStringOrNullAttribute", TestObjectV8Internal::doubleOrStringOrNull
AttributeAttributeGetterCallback, TestObjectV8Internal::doubleOrStringOrNullAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA
llScripts}, |
| 12428 {"doubleOrNullStringAttribute", TestObjectV8Internal::doubleOrNullStringAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::doubleOrNullStringAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts}, |
| 12429 {"stringOrStringSequenceAttribute", TestObjectV8Internal::stringOrStringSequ
enceAttributeAttributeGetterCallback, TestObjectV8Internal::stringOrStringSequen
ceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo
sedToAllScripts}, |
| 12430 {"testEnumOrDoubleAttribute", TestObjectV8Internal::testEnumOrDoubleAttribut
eAttributeGetterCallback, TestObjectV8Internal::testEnumOrDoubleAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12431 {"unrestrictedDoubleOrStringAttribute", TestObjectV8Internal::unrestrictedDo
ubleOrStringAttributeAttributeGetterCallback, TestObjectV8Internal::unrestricted
DoubleOrStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::ExposedToAllScripts}, |
| 12432 {"activityLoggingAccessForAllWorldsLongAttribute", TestObjectV8Internal::act
ivityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8
Internal::activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12433 {"activityLoggingGetterForAllWorldsLongAttribute", TestObjectV8Internal::act
ivityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8
Internal::activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12434 {"activityLoggingSetterForAllWorldsLongAttribute", TestObjectV8Internal::act
ivityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallback, TestObjectV8
Internal::activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA
ttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12435 {"cachedAttributeAnyAttribute", TestObjectV8Internal::cachedAttributeAnyAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::cachedAttributeAnyAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts}, |
| 12436 {"cachedArrayAttribute", TestObjectV8Internal::cachedArrayAttributeAttribute
GetterCallback, TestObjectV8Internal::cachedArrayAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12437 {"cachedStringOrNoneAttribute", TestObjectV8Internal::cachedStringOrNoneAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::cachedStringOrNoneAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts}, |
| 12438 {"callWithExecutionContextAnyAttribute", TestObjectV8Internal::callWithExecu
tionContextAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithEx
ecutionContextAnyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf
iguration::ExposedToAllScripts}, |
| 12439 {"callWithScriptStateAnyAttribute", TestObjectV8Internal::callWithScriptStat
eAnyAttributeAttributeGetterCallback, TestObjectV8Internal::callWithScriptStateA
nyAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo
sedToAllScripts}, |
| 12440 {"callWithExecutionContextAndScriptStateAnyAttribute", TestObjectV8Internal:
:callWithExecutionContextAndScriptStateAnyAttributeAttributeGetterCallback, Test
ObjectV8Internal::callWithExecutionContextAndScriptStateAnyAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12441 {"checkSecurityForNodeReadonlyDocumentAttribute", TestObjectV8Internal::chec
kSecurityForNodeReadonlyDocumentAttributeAttributeGetterCallback, 0, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12442 #if ENABLE(CONDITION) |
| 12443 {"conditionalLongAttribute", TestObjectV8Internal::conditionalLongAttributeA
ttributeGetterCallback, TestObjectV8Internal::conditionalLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12444 #endif // ENABLE(CONDITION) |
| 12445 {"customElementsCallbacksReadonlyLongAttribute", TestObjectV8Internal::custo
mElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, stat
ic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::
None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12446 {"deprecatedLongAttribute", TestObjectV8Internal::deprecatedLongAttributeAtt
ributeGetterCallback, TestObjectV8Internal::deprecatedLongAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12447 {"enforceRangeLongAttribute", TestObjectV8Internal::enforceRangeLongAttribut
eAttributeGetterCallback, TestObjectV8Internal::enforceRangeLongAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
12376 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo
ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed
ToAllScripts}, | 12448 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo
ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed
ToAllScripts}, |
| 12449 {"implementedAsLongAttribute", TestObjectV8Internal::implementedAsLongAttrib
uteAttributeGetterCallback, TestObjectV8Internal::implementedAsLongAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
}, |
| 12450 {"measureAsLongAttribute", TestObjectV8Internal::measureAsLongAttributeAttri
buteGetterCallback, TestObjectV8Internal::measureAsLongAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12451 {"notEnumerableLongAttribute", TestObjectV8Internal::notEnumerableLongAttrib
uteAttributeGetterCallback, TestObjectV8Internal::notEnumerableLongAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::DontEnum), V8DOMConfiguration::ExposedToAllScr
ipts}, |
| 12452 {"perWorldBindingsReadonlyTestInterfaceEmptyAttribute", TestObjectV8Internal
::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttributeGetterCallback, 0,
TestObjectV8Internal::perWorldBindingsReadonlyTestInterfaceEmptyAttributeAttrib
uteGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts}, |
| 12453 {"activityLoggingAccessPerWorldBindingsLongAttribute", TestObjectV8Internal:
:activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallback, Test
ObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeSet
terCallback, TestObjectV8Internal::activityLoggingAccessPerWorldBindingsLongAttr
ibuteAttributeGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingA
ccessPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts}, |
| 12454 {"activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", Test
ObjectV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::activityLoggingAccessForIsol
atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, TestObjectV8Inte
rnal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttribu
teGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingAccessForIsol
atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12455 {"activityLoggingGetterPerWorldBindingsLongAttribute", TestObjectV8Internal:
:activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallback, Test
ObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeSet
terCallback, TestObjectV8Internal::activityLoggingGetterPerWorldBindingsLongAttr
ibuteAttributeGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingG
etterPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts}, |
| 12456 {"activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", Test
ObjectV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::activityLoggingGetterForIsol
atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, TestObjectV8Inte
rnal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttribu
teGetterCallbackForMainWorld, TestObjectV8Internal::activityLoggingGetterForIsol
atedWorldsPerWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12457 {"location", TestObjectV8Internal::locationAttributeGetterCallback, TestObje
ctV8Internal::locationAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur
ation::ExposedToAllScripts}, |
| 12458 {"locationWithException", TestObjectV8Internal::locationWithExceptionAttribu
teGetterCallback, TestObjectV8Internal::locationWithExceptionAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12459 {"locationWithCallWith", TestObjectV8Internal::locationWithCallWithAttribute
GetterCallback, TestObjectV8Internal::locationWithCallWithAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12460 {"locationByteString", TestObjectV8Internal::locationByteStringAttributeGett
erCallback, TestObjectV8Internal::locationByteStringAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12461 {"locationWithPerWorldBindings", TestObjectV8Internal::locationWithPerWorldB
indingsAttributeGetterCallback, TestObjectV8Internal::locationWithPerWorldBindin
gsAttributeSetterCallback, TestObjectV8Internal::locationWithPerWorldBindingsAtt
ributeGetterCallbackForMainWorld, TestObjectV8Internal::locationWithPerWorldBind
ingsAttributeSetterCallbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::D
EFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos
edToAllScripts}, |
| 12462 {"locationTypeCheckingInterface", TestObjectV8Internal::locationTypeChecking
InterfaceAttributeGetterCallback, TestObjectV8Internal::locationTypeCheckingInte
rfaceAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA
llScripts}, |
| 12463 {"locationGarbageCollected", TestObjectV8Internal::locationGarbageCollectedA
ttributeGetterCallback, TestObjectV8Internal::locationGarbageCollectedAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12464 {"locationWillBeGarbageCollected", TestObjectV8Internal::locationWillBeGarba
geCollectedAttributeGetterCallback, TestObjectV8Internal::locationWillBeGarbageC
ollectedAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Exposed
ToAllScripts}, |
| 12465 {"raisesExceptionLongAttribute", TestObjectV8Internal::raisesExceptionLongAt
tributeAttributeGetterCallback, TestObjectV8Internal::raisesExceptionLongAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS
cripts}, |
| 12466 {"raisesExceptionGetterLongAttribute", TestObjectV8Internal::raisesException
GetterLongAttributeAttributeGetterCallback, TestObjectV8Internal::raisesExceptio
nGetterLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
ion::ExposedToAllScripts}, |
| 12467 {"setterRaisesExceptionLongAttribute", TestObjectV8Internal::setterRaisesExc
eptionLongAttributeAttributeGetterCallback, TestObjectV8Internal::setterRaisesEx
ceptionLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
ion::ExposedToAllScripts}, |
| 12468 {"raisesExceptionTestInterfaceEmptyAttribute", TestObjectV8Internal::raisesE
xceptionTestInterfaceEmptyAttributeAttributeGetterCallback, TestObjectV8Internal
::raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12469 {"cachedAttributeRaisesExceptionGetterAnyAttribute", TestObjectV8Internal::c
achedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallback, TestObje
ctV8Internal::cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12470 {"reflectTestInterfaceAttribute", TestObjectV8Internal::reflectTestInterface
AttributeAttributeGetterCallback, TestObjectV8Internal::reflectTestInterfaceAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA
llScripts}, |
| 12471 {"reflectReflectedNameAttributeTestAttribute", TestObjectV8Internal::reflect
ReflectedNameAttributeTestAttributeAttributeGetterCallback, TestObjectV8Internal
::reflectReflectedNameAttributeTestAttributeAttributeSetterCallback, 0, 0, 0, st
atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8
::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12472 {"reflectBooleanAttribute", TestObjectV8Internal::reflectBooleanAttributeAtt
ributeGetterCallback, TestObjectV8Internal::reflectBooleanAttributeAttributeSett
erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8
::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12473 {"reflectLongAttribute", TestObjectV8Internal::reflectLongAttributeAttribute
GetterCallback, TestObjectV8Internal::reflectLongAttributeAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12474 {"reflectUnsignedShortAttribute", TestObjectV8Internal::reflectUnsignedShort
AttributeAttributeGetterCallback, TestObjectV8Internal::reflectUnsignedShortAttr
ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL
T), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToA
llScripts}, |
| 12475 {"reflectUnsignedLongAttribute", TestObjectV8Internal::reflectUnsignedLongAt
tributeAttributeGetterCallback, TestObjectV8Internal::reflectUnsignedLongAttribu
teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT),
static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllS
cripts}, |
| 12476 {"id", TestObjectV8Internal::idAttributeGetterCallback, TestObjectV8Internal
::idAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT
), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAl
lScripts}, |
| 12477 {"name", TestObjectV8Internal::nameAttributeGetterCallback, TestObjectV8Inte
rnal::nameAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::D
EFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expos
edToAllScripts}, |
| 12478 {"class", TestObjectV8Internal::classAttributeGetterCallback, TestObjectV8In
ternal::classAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8
::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Ex
posedToAllScripts}, |
| 12479 {"reflectedId", TestObjectV8Internal::reflectedIdAttributeGetterCallback, Te
stObjectV8Internal::reflectedIdAttributeSetterCallback, 0, 0, 0, static_cast<v8:
:AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DO
MConfiguration::ExposedToAllScripts}, |
| 12480 {"reflectedName", TestObjectV8Internal::reflectedNameAttributeGetterCallback
, TestObjectV8Internal::reflectedNameAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts}, |
| 12481 {"reflectedClass", TestObjectV8Internal::reflectedClassAttributeGetterCallba
ck, TestObjectV8Internal::reflectedClassAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts}, |
| 12482 {"limitedToOnlyOneAttribute", TestObjectV8Internal::limitedToOnlyOneAttribut
eAttributeGetterCallback, TestObjectV8Internal::limitedToOnlyOneAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12483 {"limitedToOnlyAttribute", TestObjectV8Internal::limitedToOnlyAttributeAttri
buteGetterCallback, TestObjectV8Internal::limitedToOnlyAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12484 {"limitedToOnlyOtherAttribute", TestObjectV8Internal::limitedToOnlyOtherAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::limitedToOnlyOtherAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScri
pts}, |
| 12485 {"limitedWithMissingDefaultAttribute", TestObjectV8Internal::limitedWithMiss
ingDefaultAttributeAttributeGetterCallback, TestObjectV8Internal::limitedWithMis
singDefaultAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
ion::ExposedToAllScripts}, |
| 12486 {"limitedWithInvalidMissingDefaultAttribute", TestObjectV8Internal::limitedW
ithInvalidMissingDefaultAttributeAttributeGetterCallback, TestObjectV8Internal::
limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback, 0, 0, 0, stati
c_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::N
one), V8DOMConfiguration::ExposedToAllScripts}, |
| 12487 {"corsSettingAttribute", TestObjectV8Internal::corsSettingAttributeAttribute
GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12488 {"limitedWithEmptyMissingInvalidAttribute", TestObjectV8Internal::limitedWit
hEmptyMissingInvalidAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D
OMConfiguration::ExposedToAllScripts}, |
| 12489 {"replaceableReadonlyLongAttribute", TestObjectV8Internal::replaceableReadon
lyLongAttributeAttributeGetterCallback, TestObjectV8Internal::replaceableReadonl
yLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v
8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::E
xposedToAllScripts}, |
12377 {"replaceableReadonlyLongAccessor", TestObjectV8Internal::replaceableReadonl
yLongAccessorAttributeGetterCallback, TestObjectV8Internal::replaceableReadonlyL
ongAccessorAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo
sedToAllScripts}, | 12490 {"replaceableReadonlyLongAccessor", TestObjectV8Internal::replaceableReadonl
yLongAccessorAttributeGetterCallback, TestObjectV8Internal::replaceableReadonlyL
ongAccessorAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::
DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::Expo
sedToAllScripts}, |
| 12491 {"locationPutForwards", TestObjectV8Internal::locationPutForwardsAttributeGe
tterCallback, TestObjectV8Internal::locationPutForwardsAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12492 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectV8Inte
rnal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGetterCall
back, TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttrib
uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts}, |
| 12493 {"setterCallWithExecutionContextStringAttribute", TestObjectV8Internal::sett
erCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObjectV8In
ternal::setterCallWithExecutionContextStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12494 {"treatNullAsEmptyStringStringAttribute", TestObjectV8Internal::treatNullAsE
mptyStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNul
lAsEmptyStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::A
ccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMC
onfiguration::ExposedToAllScripts}, |
| 12495 {"treatNullAsNullStringStringAttribute", TestObjectV8Internal::treatNullAsNu
llStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNullA
sNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce
ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConf
iguration::ExposedToAllScripts}, |
| 12496 {"treatReturnedNullStringAsNullStringAttribute", TestObjectV8Internal::treat
ReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12497 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Internal::
treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestOb
jectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12498 {"cachedTreatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Inte
rnal::cachedTreatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall
back, TestObjectV8Internal::cachedTreatReturnedNullStringAsUndefinedStringAttrib
uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts}, |
| 12499 {"treatReturnedNullStringAsNullByteStringAttribute", TestObjectV8Internal::t
reatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallback, TestObje
ctV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12500 {"treatReturnedNullStringAsUndefinedByteStringAttribute", TestObjectV8Intern
al::treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetterCallback
, TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeAtt
ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript
s}, |
| 12501 {"treatReturnedNullStringAsNullUSVStringAttribute", TestObjectV8Internal::tr
eatReturnedNullStringAsNullUSVStringAttributeAttributeGetterCallback, TestObject
V8Internal::treatReturnedNullStringAsNullUSVStringAttributeAttributeSetterCallba
ck, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Proper
tyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12502 {"treatReturnedNullStringAsUndefinedUSVStringAttribute", TestObjectV8Interna
l::treatReturnedNullStringAsUndefinedUSVStringAttributeAttributeGetterCallback,
TestObjectV8Internal::treatReturnedNullStringAsUndefinedUSVStringAttributeAttrib
uteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_
cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12503 {"typeCheckingInterfaceFloatAttribute", TestObjectV8Internal::typeCheckingIn
terfaceFloatAttributeAttributeGetterCallback, TestObjectV8Internal::typeChecking
InterfaceFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::ExposedToAllScripts}, |
| 12504 {"typeCheckingInterfaceTestInterfaceAttribute", TestObjectV8Internal::typeCh
eckingInterfaceTestInterfaceAttributeAttributeGetterCallback, TestObjectV8Intern
al::typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>
(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12505 {"typeCheckingInterfaceTestInterfaceOrNullAttribute", TestObjectV8Internal::
typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeGetterCallback, TestOb
jectV8Internal::typeCheckingInterfaceTestInterfaceOrNullAttributeAttributeSetter
Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::
PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12506 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett
erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12507 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett
erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri
bute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12508 {"measuredLongAttribute", TestObjectV8Internal::measuredLongAttributeAttribu
teGetterCallback, TestObjectV8Internal::measuredLongAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12509 {"sameObjectAttribute", TestObjectV8Internal::sameObjectAttributeAttributeGe
tterCallback, TestObjectV8Internal::sameObjectAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12510 {"unscopeableLongAttribute", TestObjectV8Internal::unscopeableLongAttributeA
ttributeGetterCallback, TestObjectV8Internal::unscopeableLongAttributeAttributeS
etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast
<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12511 {"testInterfaceAttribute", TestObjectV8Internal::testInterfaceAttributeAttri
buteGetterCallback, TestObjectV8Internal::testInterfaceAttributeAttributeSetterC
allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P
ropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12512 {"testInterfaceGarbageCollectedAttribute", TestObjectV8Internal::testInterfa
ceGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Internal::testIn
terfaceGarbageCollectedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8
::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8D
OMConfiguration::ExposedToAllScripts}, |
| 12513 {"testInterfaceGarbageCollectedOrNullAttribute", TestObjectV8Internal::testI
nterfaceGarbageCollectedOrNullAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::testInterfaceGarbageCollectedOrNullAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12514 {"testInterfaceWillBeGarbageCollectedAttribute", TestObjectV8Internal::testI
nterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback, TestObjectV8Inte
rnal::testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu
te>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12515 {"testInterfaceWillBeGarbageCollectedOrNullAttribute", TestObjectV8Internal:
:testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCallback, Test
ObjectV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSet
terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v
8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12516 {"readonlyShortAttribute", TestObjectV8Internal::readonlyShortAttributeAttri
buteGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), sta
tic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScrip
ts}, |
| 12517 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba
ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), V8DOMConfiguration::ExposedToAllScripts}, |
| 12518 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall
back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), V8DOMConfiguration::ExposedToAllScripts}, |
| 12519 {"nodeAttribute", TestObjectV8Internal::nodeAttributeAttributeGetterCallback
, TestObjectV8Internal::nodeAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts}, |
| 12520 {"attributeImplementedInCPPForPrivateScriptOnly", TestObjectV8Internal::attr
ibuteImplementedInCPPForPrivateScriptOnlyAttributeGetterCallback, TestObjectV8In
ternal::attributeImplementedInCPPForPrivateScriptOnlyAttributeSetterCallback, 0,
0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr
ibute>(v8::None), V8DOMConfiguration::OnlyExposedToPrivateScript}, |
| 12521 {"enumForPrivateScript", TestObjectV8Internal::enumForPrivateScriptAttribute
GetterCallback, TestObjectV8Internal::enumForPrivateScriptAttributeSetterCallbac
k, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Propert
yAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts}, |
12378 }; | 12522 }; |
12379 | 12523 |
12380 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { | 12524 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { |
12381 {"unscopeableVoidMethod", TestObjectV8Internal::unscopeableVoidMethodMethodC
allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12525 {"unscopeableVoidMethod", TestObjectV8Internal::unscopeableVoidMethodMethodC
allback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12382 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, | 12526 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, |
12383 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, | 12527 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0, V8DOMCo
nfiguration::ExposedToAllScripts}, |
12384 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, V8D
OMConfiguration::ExposedToAllScripts}, | 12528 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0, V8D
OMConfiguration::ExposedToAllScripts}, |
12385 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12529 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0
, 0, V8DOMConfiguration::ExposedToAllScripts}, |
12386 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0,
0, V8DOMConfiguration::ExposedToAllScripts}, | 12530 {"usvStringMethod", TestObjectV8Internal::usvStringMethodMethodCallback, 0,
0, V8DOMConfiguration::ExposedToAllScripts}, |
12387 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, | 12531 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet
hodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAllScripts}, |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12632 v8::Local<v8::Signature> defaultSignature; | 12776 v8::Local<v8::Signature> defaultSignature; |
12633 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::int
ernalFieldCount, | 12777 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, func
tionTemplate, "TestObject", v8::Local<v8::FunctionTemplate>(), V8TestObject::int
ernalFieldCount, |
12634 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), | 12778 V8TestObjectAttributes, WTF_ARRAY_LENGTH(V8TestObjectAttributes), |
12635 V8TestObjectAccessors, WTF_ARRAY_LENGTH(V8TestObjectAccessors), | 12779 V8TestObjectAccessors, WTF_ARRAY_LENGTH(V8TestObjectAccessors), |
12636 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods)); | 12780 V8TestObjectMethods, WTF_ARRAY_LENGTH(V8TestObjectMethods)); |
12637 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); | 12781 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT
emplate(); |
12638 ALLOW_UNUSED_LOCAL(instanceTemplate); | 12782 ALLOW_UNUSED_LOCAL(instanceTemplate); |
12639 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); | 12783 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp
eTemplate(); |
12640 ALLOW_UNUSED_LOCAL(prototypeTemplate); | 12784 ALLOW_UNUSED_LOCAL(prototypeTemplate); |
12641 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 12785 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
12642 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 12786 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion =\ |
12643 {"runtimeEnabledLongAttribute", TestObjectV8Internal::runtimeEnabledLong
AttributeAttributeGetterCallback, TestObjectV8Internal::runtimeEnabledLongAttrib
uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts, V8DOMConfiguration::OnInstance}; | 12787 {"runtimeEnabledLongAttribute", TestObjectV8Internal::runtimeEnabledLong
AttributeAttributeGetterCallback, TestObjectV8Internal::runtimeEnabledLongAttrib
uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAll
Scripts}; |
12644 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp
eTemplate, attributeConfiguration); | 12788 V8DOMConfiguration::installAccessor(isolate, prototypeTemplate, defaultS
ignature, accessorConfiguration); |
12645 } | 12789 } |
12646 #if ENABLE(CONDITION) | 12790 #if ENABLE(CONDITION) |
12647 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 12791 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
12648 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 12792 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion =\ |
12649 {"conditionalRuntimeEnabledLongAttribute", TestObjectV8Internal::conditi
onalRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8Internal::co
nditionalRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cas
t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; | 12793 {"conditionalRuntimeEnabledLongAttribute", TestObjectV8Internal::conditi
onalRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8Internal::co
nditionalRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cas
t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::ExposedToAllScripts}; |
12650 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp
eTemplate, attributeConfiguration); | 12794 V8DOMConfiguration::installAccessor(isolate, prototypeTemplate, defaultS
ignature, accessorConfiguration); |
12651 } | 12795 } |
12652 #endif // ENABLE(CONDITION) | 12796 #endif // ENABLE(CONDITION) |
12653 if (RuntimeEnabledFeatures::featureNameEnabled()) { | 12797 if (RuntimeEnabledFeatures::featureNameEnabled()) { |
12654 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 12798 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion =\ |
12655 {"unscopeableRuntimeEnabledLongAttribute", TestObjectV8Internal::unscope
ableRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8Internal::un
scopeableRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cas
t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; | 12799 {"unscopeableRuntimeEnabledLongAttribute", TestObjectV8Internal::unscope
ableRuntimeEnabledLongAttributeAttributeGetterCallback, TestObjectV8Internal::un
scopeableRuntimeEnabledLongAttributeAttributeSetterCallback, 0, 0, 0, static_cas
t<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None),
V8DOMConfiguration::ExposedToAllScripts}; |
12656 V8DOMConfiguration::installAttribute(isolate, instanceTemplate, prototyp
eTemplate, attributeConfiguration); | 12800 V8DOMConfiguration::installAccessor(isolate, prototypeTemplate, defaultS
ignature, accessorConfiguration); |
12657 } | 12801 } |
12658 static const V8DOMConfiguration::ConstantConfiguration V8TestObjectConstants
[] = { | 12802 static const V8DOMConfiguration::ConstantConfiguration V8TestObjectConstants
[] = { |
12659 {"CONST_VALUE_0", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort
}, | 12803 {"CONST_VALUE_0", 0, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort
}, |
12660 {"CONST_VALUE_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort
}, | 12804 {"CONST_VALUE_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort
}, |
12661 {"CONST_VALUE_2", 2, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort
}, | 12805 {"CONST_VALUE_2", 2, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort
}, |
12662 {"CONST_VALUE_4", 4, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort
}, | 12806 {"CONST_VALUE_4", 4, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort
}, |
12663 {"CONST_VALUE_8", 8, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort
}, | 12807 {"CONST_VALUE_8", 8, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort
}, |
12664 {"CONST_VALUE_9", -1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, | 12808 {"CONST_VALUE_9", -1, 0, 0, V8DOMConfiguration::ConstantTypeShort}, |
12665 {"CONST_VALUE_10", 0, 0, "my constant string", V8DOMConfiguration::Const
antTypeString}, | 12809 {"CONST_VALUE_10", 0, 0, "my constant string", V8DOMConfiguration::Const
antTypeString}, |
12666 {"CONST_VALUE_11", 0xffffffff, 0, 0, V8DOMConfiguration::ConstantTypeUns
ignedShort}, | 12810 {"CONST_VALUE_11", 0xffffffff, 0, 0, V8DOMConfiguration::ConstantTypeUns
ignedShort}, |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13312 return false; | 13456 return false; |
13313 | 13457 |
13314 ScriptState::Scope scope(scriptState); | 13458 ScriptState::Scope scope(scriptState); |
13315 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 13459 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
13316 | 13460 |
13317 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 13461 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
13318 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 13462 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
13319 } | 13463 } |
13320 | 13464 |
13321 } // namespace blink | 13465 } // namespace blink |
OLD | NEW |