Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Side by Side Diff: Source/bindings/tests/results/V8TestObjectPython.cpp

Issue 214283002: Bindings: rename |jsValue| => |v8Value| (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reupload Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "V8TestObjectPython.h" 8 #include "V8TestObjectPython.h"
9 9
10 #include "HTMLNames.h" 10 #include "HTMLNames.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 v8SetReturnValue(info, v8DateOrNull(impl->dateAttribute(), info.GetIsolate() )); 139 v8SetReturnValue(info, v8DateOrNull(impl->dateAttribute(), info.GetIsolate() ));
140 } 140 }
141 141
142 static void dateAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 142 static void dateAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
143 { 143 {
144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
145 TestObjectPythonV8Internal::dateAttributeAttributeGetter(info); 145 TestObjectPythonV8Internal::dateAttributeAttributeGetter(info);
146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
147 } 147 }
148 148
149 static void dateAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8: :PropertyCallbackInfo<void>& info) 149 static void dateAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
150 { 150 {
151 v8::Handle<v8::Object> holder = info.Holder(); 151 v8::Handle<v8::Object> holder = info.Holder();
152 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 152 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
153 V8TRYCATCH_VOID(double, cppValue, toCoreDate(jsValue)); 153 V8TRYCATCH_VOID(double, cppValue, toCoreDate(v8Value));
154 impl->setDateAttribute(cppValue); 154 impl->setDateAttribute(cppValue);
155 } 155 }
156 156
157 static void dateAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 157 static void dateAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
158 { 158 {
159 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 159 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
160 TestObjectPythonV8Internal::dateAttributeAttributeSetter(jsValue, info); 160 TestObjectPythonV8Internal::dateAttributeAttributeSetter(v8Value, info);
161 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 161 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
162 } 162 }
163 163
164 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 164 static void stringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
165 { 165 {
166 v8::Handle<v8::Object> holder = info.Holder(); 166 v8::Handle<v8::Object> holder = info.Holder();
167 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 167 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
168 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate()); 168 v8SetReturnValueString(info, impl->stringAttribute(), info.GetIsolate());
169 } 169 }
170 170
171 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 171 static void stringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
172 { 172 {
173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 173 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
174 TestObjectPythonV8Internal::stringAttributeAttributeGetter(info); 174 TestObjectPythonV8Internal::stringAttributeAttributeGetter(info);
175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 175 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
176 } 176 }
177 177
178 static void stringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v 8::PropertyCallbackInfo<void>& info) 178 static void stringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
179 { 179 {
180 v8::Handle<v8::Object> holder = info.Holder(); 180 v8::Handle<v8::Object> holder = info.Holder();
181 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 181 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
182 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 182 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
183 impl->setStringAttribute(cppValue); 183 impl->setStringAttribute(cppValue);
184 } 184 }
185 185
186 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 186 static void stringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
187 { 187 {
188 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 188 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
189 TestObjectPythonV8Internal::stringAttributeAttributeSetter(jsValue, info); 189 TestObjectPythonV8Internal::stringAttributeAttributeSetter(v8Value, info);
190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
191 } 191 }
192 192
193 static void readonlyDOMTimeStampAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 193 static void readonlyDOMTimeStampAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
194 { 194 {
195 v8::Handle<v8::Object> holder = info.Holder(); 195 v8::Handle<v8::Object> holder = info.Holder();
196 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 196 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
197 v8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampAttribu te())); 197 v8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampAttribu te()));
198 } 198 }
199 199
(...skipping 11 matching lines...) Expand all
211 v8SetReturnValueBool(info, impl->booleanAttribute()); 211 v8SetReturnValueBool(info, impl->booleanAttribute());
212 } 212 }
213 213
214 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 214 static void booleanAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
215 { 215 {
216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 216 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
217 TestObjectPythonV8Internal::booleanAttributeAttributeGetter(info); 217 TestObjectPythonV8Internal::booleanAttributeAttributeGetter(info);
218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 218 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
219 } 219 }
220 220
221 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 221 static void booleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
222 { 222 {
223 v8::Handle<v8::Object> holder = info.Holder(); 223 v8::Handle<v8::Object> holder = info.Holder();
224 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 224 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
225 V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue()); 225 V8TRYCATCH_VOID(bool, cppValue, v8Value->BooleanValue());
226 impl->setBooleanAttribute(cppValue); 226 impl->setBooleanAttribute(cppValue);
227 } 227 }
228 228
229 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 229 static void booleanAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
230 { 230 {
231 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 231 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
232 TestObjectPythonV8Internal::booleanAttributeAttributeSetter(jsValue, info); 232 TestObjectPythonV8Internal::booleanAttributeAttributeSetter(v8Value, info);
233 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 233 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
234 } 234 }
235 235
236 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 236 static void byteAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
237 { 237 {
238 v8::Handle<v8::Object> holder = info.Holder(); 238 v8::Handle<v8::Object> holder = info.Holder();
239 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 239 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
240 v8SetReturnValueInt(info, impl->byteAttribute()); 240 v8SetReturnValueInt(info, impl->byteAttribute());
241 } 241 }
242 242
243 static void byteAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 243 static void byteAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
244 { 244 {
245 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 245 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
246 TestObjectPythonV8Internal::byteAttributeAttributeGetter(info); 246 TestObjectPythonV8Internal::byteAttributeAttributeGetter(info);
247 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 247 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
248 } 248 }
249 249
250 static void byteAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8: :PropertyCallbackInfo<void>& info) 250 static void byteAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
251 { 251 {
252 v8::Handle<v8::Object> holder = info.Holder(); 252 v8::Handle<v8::Object> holder = info.Holder();
253 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute" , "TestObjectPython", holder, info.GetIsolate()); 253 ExceptionState exceptionState(ExceptionState::SetterContext, "byteAttribute" , "TestObjectPython", holder, info.GetIsolate());
254 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 254 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
255 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt8(jsValue, exceptionState), ex ceptionState); 255 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt8(v8Value, exceptionState), ex ceptionState);
256 impl->setByteAttribute(cppValue); 256 impl->setByteAttribute(cppValue);
257 } 257 }
258 258
259 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 259 static void byteAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
260 { 260 {
261 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 261 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
262 TestObjectPythonV8Internal::byteAttributeAttributeSetter(jsValue, info); 262 TestObjectPythonV8Internal::byteAttributeAttributeSetter(v8Value, info);
263 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 263 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
264 } 264 }
265 265
266 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 266 static void doubleAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
267 { 267 {
268 v8::Handle<v8::Object> holder = info.Holder(); 268 v8::Handle<v8::Object> holder = info.Holder();
269 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 269 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
270 v8SetReturnValue(info, impl->doubleAttribute()); 270 v8SetReturnValue(info, impl->doubleAttribute());
271 } 271 }
272 272
273 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 273 static void doubleAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
274 { 274 {
275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
276 TestObjectPythonV8Internal::doubleAttributeAttributeGetter(info); 276 TestObjectPythonV8Internal::doubleAttributeAttributeGetter(info);
277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
278 } 278 }
279 279
280 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v 8::PropertyCallbackInfo<void>& info) 280 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
281 { 281 {
282 v8::Handle<v8::Object> holder = info.Holder(); 282 v8::Handle<v8::Object> holder = info.Holder();
283 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 283 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
284 V8TRYCATCH_VOID(double, cppValue, static_cast<double>(jsValue->NumberValue() )); 284 V8TRYCATCH_VOID(double, cppValue, static_cast<double>(v8Value->NumberValue() ));
285 impl->setDoubleAttribute(cppValue); 285 impl->setDoubleAttribute(cppValue);
286 } 286 }
287 287
288 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 288 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
289 { 289 {
290 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 290 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
291 TestObjectPythonV8Internal::doubleAttributeAttributeSetter(jsValue, info); 291 TestObjectPythonV8Internal::doubleAttributeAttributeSetter(v8Value, info);
292 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 292 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
293 } 293 }
294 294
295 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 295 static void floatAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
296 { 296 {
297 v8::Handle<v8::Object> holder = info.Holder(); 297 v8::Handle<v8::Object> holder = info.Holder();
298 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 298 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
299 v8SetReturnValue(info, impl->floatAttribute()); 299 v8SetReturnValue(info, impl->floatAttribute());
300 } 300 }
301 301
302 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 302 static void floatAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
303 { 303 {
304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
305 TestObjectPythonV8Internal::floatAttributeAttributeGetter(info); 305 TestObjectPythonV8Internal::floatAttributeAttributeGetter(info);
306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
307 } 307 }
308 308
309 static void floatAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8 ::PropertyCallbackInfo<void>& info) 309 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
310 { 310 {
311 v8::Handle<v8::Object> holder = info.Holder(); 311 v8::Handle<v8::Object> holder = info.Holder();
312 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 312 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
313 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue())) ; 313 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue())) ;
314 impl->setFloatAttribute(cppValue); 314 impl->setFloatAttribute(cppValue);
315 } 315 }
316 316
317 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 317 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
318 { 318 {
319 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 319 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
320 TestObjectPythonV8Internal::floatAttributeAttributeSetter(jsValue, info); 320 TestObjectPythonV8Internal::floatAttributeAttributeSetter(v8Value, info);
321 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 321 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
322 } 322 }
323 323
324 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 324 static void longAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
325 { 325 {
326 v8::Handle<v8::Object> holder = info.Holder(); 326 v8::Handle<v8::Object> holder = info.Holder();
327 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 327 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
328 v8SetReturnValueInt(info, impl->longAttribute()); 328 v8SetReturnValueInt(info, impl->longAttribute());
329 } 329 }
330 330
331 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 331 static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
332 { 332 {
333 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 333 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
334 TestObjectPythonV8Internal::longAttributeAttributeGetter(info); 334 TestObjectPythonV8Internal::longAttributeAttributeGetter(info);
335 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 335 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
336 } 336 }
337 337
338 static void longAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8: :PropertyCallbackInfo<void>& info) 338 static void longAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
339 { 339 {
340 v8::Handle<v8::Object> holder = info.Holder(); 340 v8::Handle<v8::Object> holder = info.Holder();
341 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute" , "TestObjectPython", holder, info.GetIsolate()); 341 ExceptionState exceptionState(ExceptionState::SetterContext, "longAttribute" , "TestObjectPython", holder, info.GetIsolate());
342 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 342 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
343 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 343 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
344 impl->setLongAttribute(cppValue); 344 impl->setLongAttribute(cppValue);
345 } 345 }
346 346
347 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 347 static void longAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
348 { 348 {
349 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 349 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
350 TestObjectPythonV8Internal::longAttributeAttributeSetter(jsValue, info); 350 TestObjectPythonV8Internal::longAttributeAttributeSetter(v8Value, info);
351 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 351 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
352 } 352 }
353 353
354 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 354 static void longLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
355 { 355 {
356 v8::Handle<v8::Object> holder = info.Holder(); 356 v8::Handle<v8::Object> holder = info.Holder();
357 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 357 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
358 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute())); 358 v8SetReturnValue(info, static_cast<double>(impl->longLongAttribute()));
359 } 359 }
360 360
361 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 361 static void longLongAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
362 { 362 {
363 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 363 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
364 TestObjectPythonV8Internal::longLongAttributeAttributeGetter(info); 364 TestObjectPythonV8Internal::longLongAttributeAttributeGetter(info);
365 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 365 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
366 } 366 }
367 367
368 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 368 static void longLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
369 { 369 {
370 v8::Handle<v8::Object> holder = info.Holder(); 370 v8::Handle<v8::Object> holder = info.Holder();
371 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib ute", "TestObjectPython", holder, info.GetIsolate()); 371 ExceptionState exceptionState(ExceptionState::SetterContext, "longLongAttrib ute", "TestObjectPython", holder, info.GetIsolate());
372 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 372 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
373 V8TRYCATCH_EXCEPTION_VOID(long long, cppValue, toInt64(jsValue, exceptionSta te), exceptionState); 373 V8TRYCATCH_EXCEPTION_VOID(long long, cppValue, toInt64(v8Value, exceptionSta te), exceptionState);
374 impl->setLongLongAttribute(cppValue); 374 impl->setLongLongAttribute(cppValue);
375 } 375 }
376 376
377 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 377 static void longLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
378 { 378 {
379 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 379 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
380 TestObjectPythonV8Internal::longLongAttributeAttributeSetter(jsValue, info); 380 TestObjectPythonV8Internal::longLongAttributeAttributeSetter(v8Value, info);
381 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 381 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
382 } 382 }
383 383
384 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 384 static void octetAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
385 { 385 {
386 v8::Handle<v8::Object> holder = info.Holder(); 386 v8::Handle<v8::Object> holder = info.Holder();
387 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 387 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
388 v8SetReturnValueUnsigned(info, impl->octetAttribute()); 388 v8SetReturnValueUnsigned(info, impl->octetAttribute());
389 } 389 }
390 390
391 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 391 static void octetAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
392 { 392 {
393 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 393 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
394 TestObjectPythonV8Internal::octetAttributeAttributeGetter(info); 394 TestObjectPythonV8Internal::octetAttributeAttributeGetter(info);
395 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 395 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
396 } 396 }
397 397
398 static void octetAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8 ::PropertyCallbackInfo<void>& info) 398 static void octetAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
399 { 399 {
400 v8::Handle<v8::Object> holder = info.Holder(); 400 v8::Handle<v8::Object> holder = info.Holder();
401 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute ", "TestObjectPython", holder, info.GetIsolate()); 401 ExceptionState exceptionState(ExceptionState::SetterContext, "octetAttribute ", "TestObjectPython", holder, info.GetIsolate());
402 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 402 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
403 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt8(jsValue, exceptionStat e), exceptionState); 403 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt8(v8Value, exceptionStat e), exceptionState);
404 impl->setOctetAttribute(cppValue); 404 impl->setOctetAttribute(cppValue);
405 } 405 }
406 406
407 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 407 static void octetAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
408 { 408 {
409 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 409 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
410 TestObjectPythonV8Internal::octetAttributeAttributeSetter(jsValue, info); 410 TestObjectPythonV8Internal::octetAttributeAttributeSetter(v8Value, info);
411 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 411 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
412 } 412 }
413 413
414 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 414 static void shortAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
415 { 415 {
416 v8::Handle<v8::Object> holder = info.Holder(); 416 v8::Handle<v8::Object> holder = info.Holder();
417 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 417 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
418 v8SetReturnValueInt(info, impl->shortAttribute()); 418 v8SetReturnValueInt(info, impl->shortAttribute());
419 } 419 }
420 420
421 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 421 static void shortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
422 { 422 {
423 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 423 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
424 TestObjectPythonV8Internal::shortAttributeAttributeGetter(info); 424 TestObjectPythonV8Internal::shortAttributeAttributeGetter(info);
425 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 425 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
426 } 426 }
427 427
428 static void shortAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8 ::PropertyCallbackInfo<void>& info) 428 static void shortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
429 { 429 {
430 v8::Handle<v8::Object> holder = info.Holder(); 430 v8::Handle<v8::Object> holder = info.Holder();
431 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObjectPython", holder, info.GetIsolate()); 431 ExceptionState exceptionState(ExceptionState::SetterContext, "shortAttribute ", "TestObjectPython", holder, info.GetIsolate());
432 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 432 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
433 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt16(jsValue, exceptionState), e xceptionState); 433 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt16(v8Value, exceptionState), e xceptionState);
434 impl->setShortAttribute(cppValue); 434 impl->setShortAttribute(cppValue);
435 } 435 }
436 436
437 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 437 static void shortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
438 { 438 {
439 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 439 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
440 TestObjectPythonV8Internal::shortAttributeAttributeSetter(jsValue, info); 440 TestObjectPythonV8Internal::shortAttributeAttributeSetter(v8Value, info);
441 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 441 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
442 } 442 }
443 443
444 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 444 static void unsignedLongAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
445 { 445 {
446 v8::Handle<v8::Object> holder = info.Holder(); 446 v8::Handle<v8::Object> holder = info.Holder();
447 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 447 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
448 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute()); 448 v8SetReturnValueUnsigned(info, impl->unsignedLongAttribute());
449 } 449 }
450 450
451 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 451 static void unsignedLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
452 { 452 {
453 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 453 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
454 TestObjectPythonV8Internal::unsignedLongAttributeAttributeGetter(info); 454 TestObjectPythonV8Internal::unsignedLongAttributeAttributeGetter(info);
455 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 455 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
456 } 456 }
457 457
458 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info) 458 static void unsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
459 { 459 {
460 v8::Handle<v8::Object> holder = info.Holder(); 460 v8::Handle<v8::Object> holder = info.Holder();
461 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt tribute", "TestObjectPython", holder, info.GetIsolate()); 461 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongAt tribute", "TestObjectPython", holder, info.GetIsolate());
462 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 462 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
463 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(jsValue, exceptionSta te), exceptionState); 463 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(v8Value, exceptionSta te), exceptionState);
464 impl->setUnsignedLongAttribute(cppValue); 464 impl->setUnsignedLongAttribute(cppValue);
465 } 465 }
466 466
467 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 467 static void unsignedLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
468 { 468 {
469 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 469 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
470 TestObjectPythonV8Internal::unsignedLongAttributeAttributeSetter(jsValue, in fo); 470 TestObjectPythonV8Internal::unsignedLongAttributeAttributeSetter(v8Value, in fo);
471 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 471 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
472 } 472 }
473 473
474 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 474 static void unsignedLongLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
475 { 475 {
476 v8::Handle<v8::Object> holder = info.Holder(); 476 v8::Handle<v8::Object> holder = info.Holder();
477 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 477 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
478 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute() )); 478 v8SetReturnValue(info, static_cast<double>(impl->unsignedLongLongAttribute() ));
479 } 479 }
480 480
481 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 481 static void unsignedLongLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
482 { 482 {
483 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 483 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
484 TestObjectPythonV8Internal::unsignedLongLongAttributeAttributeGetter(info); 484 TestObjectPythonV8Internal::unsignedLongLongAttributeAttributeGetter(info);
485 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 485 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
486 } 486 }
487 487
488 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 488 static void unsignedLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
489 { 489 {
490 v8::Handle<v8::Object> holder = info.Holder(); 490 v8::Handle<v8::Object> holder = info.Holder();
491 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttribute", "TestObjectPython", holder, info.GetIsolate()); 491 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedLongLo ngAttribute", "TestObjectPython", holder, info.GetIsolate());
492 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 492 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
493 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(jsValue, ex ceptionState), exceptionState); 493 V8TRYCATCH_EXCEPTION_VOID(unsigned long long, cppValue, toUInt64(v8Value, ex ceptionState), exceptionState);
494 impl->setUnsignedLongLongAttribute(cppValue); 494 impl->setUnsignedLongLongAttribute(cppValue);
495 } 495 }
496 496
497 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 497 static void unsignedLongLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
498 { 498 {
499 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 499 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
500 TestObjectPythonV8Internal::unsignedLongLongAttributeAttributeSetter(jsValue , info); 500 TestObjectPythonV8Internal::unsignedLongLongAttributeAttributeSetter(v8Value , info);
501 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 501 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
502 } 502 }
503 503
504 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 504 static void unsignedShortAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
505 { 505 {
506 v8::Handle<v8::Object> holder = info.Holder(); 506 v8::Handle<v8::Object> holder = info.Holder();
507 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 507 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
508 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute()); 508 v8SetReturnValueUnsigned(info, impl->unsignedShortAttribute());
509 } 509 }
510 510
511 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 511 static void unsignedShortAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
512 { 512 {
513 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 513 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
514 TestObjectPythonV8Internal::unsignedShortAttributeAttributeGetter(info); 514 TestObjectPythonV8Internal::unsignedShortAttributeAttributeGetter(info);
515 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 515 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
516 } 516 }
517 517
518 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 518 static void unsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
519 { 519 {
520 v8::Handle<v8::Object> holder = info.Holder(); 520 v8::Handle<v8::Object> holder = info.Holder();
521 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttribute", "TestObjectPython", holder, info.GetIsolate()); 521 ExceptionState exceptionState(ExceptionState::SetterContext, "unsignedShortA ttribute", "TestObjectPython", holder, info.GetIsolate());
522 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 522 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
523 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(jsValue, exceptionSta te), exceptionState); 523 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(v8Value, exceptionSta te), exceptionState);
524 impl->setUnsignedShortAttribute(cppValue); 524 impl->setUnsignedShortAttribute(cppValue);
525 } 525 }
526 526
527 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 527 static void unsignedShortAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
528 { 528 {
529 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 529 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
530 TestObjectPythonV8Internal::unsignedShortAttributeAttributeSetter(jsValue, i nfo); 530 TestObjectPythonV8Internal::unsignedShortAttributeAttributeSetter(v8Value, i nfo);
531 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 531 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
532 } 532 }
533 533
534 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 534 static void testInterfaceEmptyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
535 { 535 {
536 v8::Handle<v8::Object> holder = info.Holder(); 536 v8::Handle<v8::Object> holder = info.Holder();
537 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 537 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
538 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()), impl); 538 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceEmptyAttribute()), impl);
539 } 539 }
540 540
541 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 541 static void testInterfaceEmptyAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
542 { 542 {
543 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 543 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
544 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeGetter(info) ; 544 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeGetter(info) ;
545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 545 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
546 } 546 }
547 547
548 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> jsVa lue, const v8::PropertyCallbackInfo<void>& info) 548 static void testInterfaceEmptyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
549 { 549 {
550 v8::Handle<v8::Object> holder = info.Holder(); 550 v8::Handle<v8::Object> holder = info.Holder();
551 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 551 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
552 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ eWithTypeCheck(info.GetIsolate(), jsValue)); 552 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ eWithTypeCheck(info.GetIsolate(), v8Value));
553 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue)); 553 impl->setTestInterfaceEmptyAttribute(WTF::getPtr(cppValue));
554 } 554 }
555 555
556 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 556 static void testInterfaceEmptyAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
557 { 557 {
558 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 558 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
559 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeSetter(jsVal ue, info); 559 TestObjectPythonV8Internal::testInterfaceEmptyAttributeAttributeSetter(v8Val ue, info);
560 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 560 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
561 } 561 }
562 562
563 static void testObjectPythonAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 563 static void testObjectPythonAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
564 { 564 {
565 v8::Handle<v8::Object> holder = info.Holder(); 565 v8::Handle<v8::Object> holder = info.Holder();
566 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 566 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
567 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectPythonAttribute()), i mpl); 567 v8SetReturnValueFast(info, WTF::getPtr(impl->testObjectPythonAttribute()), i mpl);
568 } 568 }
569 569
570 static void testObjectPythonAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 570 static void testObjectPythonAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
571 { 571 {
572 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 572 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
573 TestObjectPythonV8Internal::testObjectPythonAttributeAttributeGetter(info); 573 TestObjectPythonV8Internal::testObjectPythonAttributeAttributeGetter(info);
574 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 574 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
575 } 575 }
576 576
577 static void testObjectPythonAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 577 static void testObjectPythonAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
578 { 578 {
579 v8::Handle<v8::Object> holder = info.Holder(); 579 v8::Handle<v8::Object> holder = info.Holder();
580 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 580 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
581 V8TRYCATCH_VOID(TestObjectPython*, cppValue, V8TestObjectPython::toNativeWit hTypeCheck(info.GetIsolate(), jsValue)); 581 V8TRYCATCH_VOID(TestObjectPython*, cppValue, V8TestObjectPython::toNativeWit hTypeCheck(info.GetIsolate(), v8Value));
582 impl->setTestObjectPythonAttribute(WTF::getPtr(cppValue)); 582 impl->setTestObjectPythonAttribute(WTF::getPtr(cppValue));
583 } 583 }
584 584
585 static void testObjectPythonAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 585 static void testObjectPythonAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
586 { 586 {
587 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 587 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
588 TestObjectPythonV8Internal::testObjectPythonAttributeAttributeSetter(jsValue , info); 588 TestObjectPythonV8Internal::testObjectPythonAttributeAttributeSetter(v8Value , info);
589 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 589 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
590 } 590 }
591 591
592 static void voidCallbackFunctionAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 592 static void voidCallbackFunctionAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
593 { 593 {
594 v8::Handle<v8::Object> holder = info.Holder(); 594 v8::Handle<v8::Object> holder = info.Holder();
595 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 595 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
596 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value()); 596 v8SetReturnValue(info, impl->voidCallbackFunctionAttribute().v8Value());
597 } 597 }
598 598
599 static void voidCallbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 599 static void voidCallbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
600 { 600 {
601 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 601 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
602 TestObjectPythonV8Internal::voidCallbackFunctionAttributeAttributeGetter(inf o); 602 TestObjectPythonV8Internal::voidCallbackFunctionAttributeAttributeGetter(inf o);
603 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 603 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
604 } 604 }
605 605
606 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info) 606 static void voidCallbackFunctionAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
607 { 607 {
608 v8::Handle<v8::Object> holder = info.Holder(); 608 v8::Handle<v8::Object> holder = info.Holder();
609 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 609 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
610 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate( ))); 610 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate( )));
611 impl->setVoidCallbackFunctionAttribute(cppValue); 611 impl->setVoidCallbackFunctionAttribute(cppValue);
612 } 612 }
613 613
614 static void voidCallbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info ) 614 static void voidCallbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
615 { 615 {
616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 616 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
617 TestObjectPythonV8Internal::voidCallbackFunctionAttributeAttributeSetter(jsV alue, info); 617 TestObjectPythonV8Internal::voidCallbackFunctionAttributeAttributeSetter(v8V alue, info);
618 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 618 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
619 } 619 }
620 620
621 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info) 621 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info)
622 { 622 {
623 v8::Handle<v8::Object> holder = info.Holder(); 623 v8::Handle<v8::Object> holder = info.Holder();
624 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 624 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
625 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8 Value()); 625 v8SetReturnValue(info, impl->anyCallbackFunctionOptionalAnyArgAttribute().v8 Value());
626 } 626 }
627 627
628 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 628 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
629 { 629 {
630 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 630 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
631 TestObjectPythonV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttrib uteGetter(info); 631 TestObjectPythonV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttrib uteGetter(info);
632 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 632 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
633 } 633 }
634 634
635 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local< v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 635 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
636 { 636 {
637 v8::Handle<v8::Object> holder = info.Holder(); 637 v8::Handle<v8::Object> holder = info.Holder();
638 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 638 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
639 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate( ))); 639 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate( )));
640 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue); 640 impl->setAnyCallbackFunctionOptionalAnyArgAttribute(cppValue);
641 } 641 }
642 642
643 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInf o<void>& info) 643 static void anyCallbackFunctionOptionalAnyArgAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
644 { 644 {
645 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 645 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
646 TestObjectPythonV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttrib uteSetter(jsValue, info); 646 TestObjectPythonV8Internal::anyCallbackFunctionOptionalAnyArgAttributeAttrib uteSetter(v8Value, info);
647 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 647 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
648 } 648 }
649 649
650 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 650 static void cssAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
651 { 651 {
652 v8::Handle<v8::Object> holder = info.Holder(); 652 v8::Handle<v8::Object> holder = info.Holder();
653 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 653 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
654 v8SetReturnValueInt(info, impl->cssAttribute()); 654 v8SetReturnValueInt(info, impl->cssAttribute());
655 } 655 }
656 656
657 static void cssAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 657 static void cssAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
658 { 658 {
659 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 659 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
660 TestObjectPythonV8Internal::cssAttributeAttributeGetter(info); 660 TestObjectPythonV8Internal::cssAttributeAttributeGetter(info);
661 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 661 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
662 } 662 }
663 663
664 static void cssAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:: PropertyCallbackInfo<void>& info) 664 static void cssAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
665 { 665 {
666 v8::Handle<v8::Object> holder = info.Holder(); 666 v8::Handle<v8::Object> holder = info.Holder();
667 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObjectPython", holder, info.GetIsolate()); 667 ExceptionState exceptionState(ExceptionState::SetterContext, "cssAttribute", "TestObjectPython", holder, info.GetIsolate());
668 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 668 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
669 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 669 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
670 impl->setCSSAttribute(cppValue); 670 impl->setCSSAttribute(cppValue);
671 } 671 }
672 672
673 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 673 static void cssAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
674 { 674 {
675 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 675 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
676 TestObjectPythonV8Internal::cssAttributeAttributeSetter(jsValue, info); 676 TestObjectPythonV8Internal::cssAttributeAttributeSetter(v8Value, info);
677 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 677 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
678 } 678 }
679 679
680 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 680 static void imeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
681 { 681 {
682 v8::Handle<v8::Object> holder = info.Holder(); 682 v8::Handle<v8::Object> holder = info.Holder();
683 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 683 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
684 v8SetReturnValueInt(info, impl->imeAttribute()); 684 v8SetReturnValueInt(info, impl->imeAttribute());
685 } 685 }
686 686
687 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 687 static void imeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
688 { 688 {
689 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 689 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
690 TestObjectPythonV8Internal::imeAttributeAttributeGetter(info); 690 TestObjectPythonV8Internal::imeAttributeAttributeGetter(info);
691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 691 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
692 } 692 }
693 693
694 static void imeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:: PropertyCallbackInfo<void>& info) 694 static void imeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
695 { 695 {
696 v8::Handle<v8::Object> holder = info.Holder(); 696 v8::Handle<v8::Object> holder = info.Holder();
697 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObjectPython", holder, info.GetIsolate()); 697 ExceptionState exceptionState(ExceptionState::SetterContext, "imeAttribute", "TestObjectPython", holder, info.GetIsolate());
698 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 698 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
699 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 699 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
700 impl->setIMEAttribute(cppValue); 700 impl->setIMEAttribute(cppValue);
701 } 701 }
702 702
703 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 703 static void imeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
704 { 704 {
705 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 705 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
706 TestObjectPythonV8Internal::imeAttributeAttributeSetter(jsValue, info); 706 TestObjectPythonV8Internal::imeAttributeAttributeSetter(v8Value, info);
707 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 707 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
708 } 708 }
709 709
710 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 710 static void svgAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
711 { 711 {
712 v8::Handle<v8::Object> holder = info.Holder(); 712 v8::Handle<v8::Object> holder = info.Holder();
713 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 713 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
714 v8SetReturnValueInt(info, impl->svgAttribute()); 714 v8SetReturnValueInt(info, impl->svgAttribute());
715 } 715 }
716 716
717 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 717 static void svgAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
718 { 718 {
719 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 719 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
720 TestObjectPythonV8Internal::svgAttributeAttributeGetter(info); 720 TestObjectPythonV8Internal::svgAttributeAttributeGetter(info);
721 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 721 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
722 } 722 }
723 723
724 static void svgAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:: PropertyCallbackInfo<void>& info) 724 static void svgAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
725 { 725 {
726 v8::Handle<v8::Object> holder = info.Holder(); 726 v8::Handle<v8::Object> holder = info.Holder();
727 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObjectPython", holder, info.GetIsolate()); 727 ExceptionState exceptionState(ExceptionState::SetterContext, "svgAttribute", "TestObjectPython", holder, info.GetIsolate());
728 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 728 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
729 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 729 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
730 impl->setSVGAttribute(cppValue); 730 impl->setSVGAttribute(cppValue);
731 } 731 }
732 732
733 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 733 static void svgAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
734 { 734 {
735 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 735 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
736 TestObjectPythonV8Internal::svgAttributeAttributeSetter(jsValue, info); 736 TestObjectPythonV8Internal::svgAttributeAttributeSetter(v8Value, info);
737 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 737 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
738 } 738 }
739 739
740 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 740 static void xmlAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
741 { 741 {
742 v8::Handle<v8::Object> holder = info.Holder(); 742 v8::Handle<v8::Object> holder = info.Holder();
743 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 743 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
744 v8SetReturnValueInt(info, impl->xmlAttribute()); 744 v8SetReturnValueInt(info, impl->xmlAttribute());
745 } 745 }
746 746
747 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 747 static void xmlAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
748 { 748 {
749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 749 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
750 TestObjectPythonV8Internal::xmlAttributeAttributeGetter(info); 750 TestObjectPythonV8Internal::xmlAttributeAttributeGetter(info);
751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 751 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
752 } 752 }
753 753
754 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:: PropertyCallbackInfo<void>& info) 754 static void xmlAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
755 { 755 {
756 v8::Handle<v8::Object> holder = info.Holder(); 756 v8::Handle<v8::Object> holder = info.Holder();
757 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObjectPython", holder, info.GetIsolate()); 757 ExceptionState exceptionState(ExceptionState::SetterContext, "xmlAttribute", "TestObjectPython", holder, info.GetIsolate());
758 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 758 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
759 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 759 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
760 impl->setXMLAttribute(cppValue); 760 impl->setXMLAttribute(cppValue);
761 } 761 }
762 762
763 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 763 static void xmlAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
764 { 764 {
765 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 765 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
766 TestObjectPythonV8Internal::xmlAttributeAttributeSetter(jsValue, info); 766 TestObjectPythonV8Internal::xmlAttributeAttributeSetter(v8Value, info);
767 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 767 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
768 } 768 }
769 769
770 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 770 static void nodeFilterAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
771 { 771 {
772 v8::Handle<v8::Object> holder = info.Holder(); 772 v8::Handle<v8::Object> holder = info.Holder();
773 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 773 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
774 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl); 774 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeFilterAttribute()), impl);
775 } 775 }
776 776
777 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 777 static void nodeFilterAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
778 { 778 {
779 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 779 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
780 TestObjectPythonV8Internal::nodeFilterAttributeAttributeGetter(info); 780 TestObjectPythonV8Internal::nodeFilterAttributeAttributeGetter(info);
781 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 781 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
782 } 782 }
783 783
784 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info) 784 static void nodeFilterAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
785 { 785 {
786 v8::Handle<v8::Object> holder = info.Holder(); 786 v8::Handle<v8::Object> holder = info.Holder();
787 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 787 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
788 V8TRYCATCH_VOID(RefPtr<NodeFilter>, cppValue, toNodeFilter(jsValue, info.Get Isolate())); 788 V8TRYCATCH_VOID(RefPtr<NodeFilter>, cppValue, toNodeFilter(v8Value, info.Get Isolate()));
789 impl->setNodeFilterAttribute(WTF::getPtr(cppValue)); 789 impl->setNodeFilterAttribute(WTF::getPtr(cppValue));
790 } 790 }
791 791
792 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 792 static void nodeFilterAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
793 { 793 {
794 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 794 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
795 TestObjectPythonV8Internal::nodeFilterAttributeAttributeSetter(jsValue, info ); 795 TestObjectPythonV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info );
796 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 796 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
797 } 797 }
798 798
799 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 799 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
800 { 800 {
801 v8::Handle<v8::Object> holder = info.Holder(); 801 v8::Handle<v8::Object> holder = info.Holder();
802 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 802 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
803 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial izedScriptValueAttribute()->deserialize() : v8::Handle<v8::Value>(v8::Null(info. GetIsolate()))); 803 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial izedScriptValueAttribute()->deserialize() : v8::Handle<v8::Value>(v8::Null(info. GetIsolate())));
804 } 804 }
805 805
806 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 806 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
807 { 807 {
808 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 808 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
809 TestObjectPythonV8Internal::serializedScriptValueAttributeAttributeGetter(in fo); 809 TestObjectPythonV8Internal::serializedScriptValueAttributeAttributeGetter(in fo);
810 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 810 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
811 } 811 }
812 812
813 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info) 813 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
814 { 814 {
815 v8::Handle<v8::Object> holder = info.Holder(); 815 v8::Handle<v8::Object> holder = info.Holder();
816 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 816 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
817 V8TRYCATCH_VOID(RefPtr<SerializedScriptValue>, cppValue, SerializedScriptVal ue::create(jsValue, info.GetIsolate())); 817 V8TRYCATCH_VOID(RefPtr<SerializedScriptValue>, cppValue, SerializedScriptVal ue::create(v8Value, info.GetIsolate()));
818 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue)); 818 impl->setSerializedScriptValueAttribute(WTF::getPtr(cppValue));
819 } 819 }
820 820
821 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf o) 821 static void serializedScriptValueAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o)
822 { 822 {
823 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 823 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
824 TestObjectPythonV8Internal::serializedScriptValueAttributeAttributeSetter(js Value, info); 824 TestObjectPythonV8Internal::serializedScriptValueAttributeAttributeSetter(v8 Value, info);
825 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 825 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
826 } 826 }
827 827
828 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info) 828 static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value >& info)
829 { 829 {
830 v8::Handle<v8::Object> holder = info.Holder(); 830 v8::Handle<v8::Object> holder = info.Holder();
831 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 831 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
832 v8SetReturnValue(info, impl->anyAttribute().v8Value()); 832 v8SetReturnValue(info, impl->anyAttribute().v8Value());
833 } 833 }
834 834
835 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info) 835 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8: :PropertyCallbackInfo<v8::Value>& info)
836 { 836 {
837 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 837 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
838 TestObjectPythonV8Internal::anyAttributeAttributeGetter(info); 838 TestObjectPythonV8Internal::anyAttributeAttributeGetter(info);
839 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 839 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
840 } 840 }
841 841
842 static void anyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8:: PropertyCallbackInfo<void>& info) 842 static void anyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8:: PropertyCallbackInfo<void>& info)
843 { 843 {
844 v8::Handle<v8::Object> holder = info.Holder(); 844 v8::Handle<v8::Object> holder = info.Holder();
845 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 845 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
846 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate( ))); 846 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate( )));
847 impl->setAnyAttribute(cppValue); 847 impl->setAnyAttribute(cppValue);
848 } 848 }
849 849
850 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 850 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local <v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
851 { 851 {
852 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 852 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
853 TestObjectPythonV8Internal::anyAttributeAttributeSetter(jsValue, info); 853 TestObjectPythonV8Internal::anyAttributeAttributeSetter(v8Value, info);
854 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 854 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
855 } 855 }
856 856
857 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 857 static void promiseAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
858 { 858 {
859 v8::Handle<v8::Object> holder = info.Holder(); 859 v8::Handle<v8::Object> holder = info.Holder();
860 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 860 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
861 v8SetReturnValue(info, impl->promiseAttribute().v8Value()); 861 v8SetReturnValue(info, impl->promiseAttribute().v8Value());
862 } 862 }
863 863
864 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 864 static void promiseAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
865 { 865 {
866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 866 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
867 TestObjectPythonV8Internal::promiseAttributeAttributeGetter(info); 867 TestObjectPythonV8Internal::promiseAttributeAttributeGetter(info);
868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 868 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
869 } 869 }
870 870
871 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 871 static void promiseAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
872 { 872 {
873 v8::Handle<v8::Object> holder = info.Holder(); 873 v8::Handle<v8::Object> holder = info.Holder();
874 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 874 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
875 V8TRYCATCH_VOID(ScriptPromise, cppValue, ScriptPromise(jsValue, info.GetIsol ate())); 875 V8TRYCATCH_VOID(ScriptPromise, cppValue, ScriptPromise(v8Value, info.GetIsol ate()));
876 impl->setPromiseAttribute(cppValue); 876 impl->setPromiseAttribute(cppValue);
877 } 877 }
878 878
879 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 879 static void promiseAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
880 { 880 {
881 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 881 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
882 TestObjectPythonV8Internal::promiseAttributeAttributeSetter(jsValue, info); 882 TestObjectPythonV8Internal::promiseAttributeAttributeSetter(v8Value, info);
883 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 883 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
884 } 884 }
885 885
886 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info) 886 static void windowAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Va lue>& info)
887 { 887 {
888 v8::Handle<v8::Object> holder = info.Holder(); 888 v8::Handle<v8::Object> holder = info.Holder();
889 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 889 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
890 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl); 890 v8SetReturnValueFast(info, WTF::getPtr(impl->windowAttribute()), impl);
891 } 891 }
892 892
893 static void windowAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 893 static void windowAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
894 { 894 {
895 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 895 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
896 TestObjectPythonV8Internal::windowAttributeAttributeGetter(info); 896 TestObjectPythonV8Internal::windowAttributeAttributeGetter(info);
897 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 897 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
898 } 898 }
899 899
900 static void windowAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v 8::PropertyCallbackInfo<void>& info) 900 static void windowAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v 8::PropertyCallbackInfo<void>& info)
901 { 901 {
902 v8::Handle<v8::Object> holder = info.Holder(); 902 v8::Handle<v8::Object> holder = info.Holder();
903 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 903 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
904 V8TRYCATCH_VOID(DOMWindow*, cppValue, toDOMWindow(jsValue, info.GetIsolate() )); 904 V8TRYCATCH_VOID(DOMWindow*, cppValue, toDOMWindow(v8Value, info.GetIsolate() ));
905 impl->setWindowAttribute(WTF::getPtr(cppValue)); 905 impl->setWindowAttribute(WTF::getPtr(cppValue));
906 } 906 }
907 907
908 static void windowAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 908 static void windowAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
909 { 909 {
910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 910 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
911 TestObjectPythonV8Internal::windowAttributeAttributeSetter(jsValue, info); 911 TestObjectPythonV8Internal::windowAttributeAttributeSetter(v8Value, info);
912 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 912 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
913 } 913 }
914 914
915 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 915 static void documentAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
916 { 916 {
917 v8::Handle<v8::Object> holder = info.Holder(); 917 v8::Handle<v8::Object> holder = info.Holder();
918 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 918 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
919 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl); 919 v8SetReturnValueFast(info, WTF::getPtr(impl->documentAttribute()), impl);
920 } 920 }
921 921
922 static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 922 static void documentAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
923 { 923 {
924 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 924 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
925 TestObjectPythonV8Internal::documentAttributeAttributeGetter(info); 925 TestObjectPythonV8Internal::documentAttributeAttributeGetter(info);
926 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 926 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
927 } 927 }
928 928
929 static void documentAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 929 static void documentAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
930 { 930 {
931 v8::Handle<v8::Object> holder = info.Holder(); 931 v8::Handle<v8::Object> holder = info.Holder();
932 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 932 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
933 V8TRYCATCH_VOID(Document*, cppValue, V8Document::toNativeWithTypeCheck(info. GetIsolate(), jsValue)); 933 V8TRYCATCH_VOID(Document*, cppValue, V8Document::toNativeWithTypeCheck(info. GetIsolate(), v8Value));
934 impl->setDocumentAttribute(WTF::getPtr(cppValue)); 934 impl->setDocumentAttribute(WTF::getPtr(cppValue));
935 } 935 }
936 936
937 static void documentAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 937 static void documentAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
938 { 938 {
939 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 939 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
940 TestObjectPythonV8Internal::documentAttributeAttributeSetter(jsValue, info); 940 TestObjectPythonV8Internal::documentAttributeAttributeSetter(v8Value, info);
941 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 941 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
942 } 942 }
943 943
944 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 944 static void documentFragmentAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
945 { 945 {
946 v8::Handle<v8::Object> holder = info.Holder(); 946 v8::Handle<v8::Object> holder = info.Holder();
947 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 947 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
948 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i mpl); 948 v8SetReturnValueFast(info, WTF::getPtr(impl->documentFragmentAttribute()), i mpl);
949 } 949 }
950 950
951 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 951 static void documentFragmentAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
952 { 952 {
953 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 953 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
954 TestObjectPythonV8Internal::documentFragmentAttributeAttributeGetter(info); 954 TestObjectPythonV8Internal::documentFragmentAttributeAttributeGetter(info);
955 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 955 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
956 } 956 }
957 957
958 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 958 static void documentFragmentAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
959 { 959 {
960 v8::Handle<v8::Object> holder = info.Holder(); 960 v8::Handle<v8::Object> holder = info.Holder();
961 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 961 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
962 V8TRYCATCH_VOID(DocumentFragment*, cppValue, V8DocumentFragment::toNativeWit hTypeCheck(info.GetIsolate(), jsValue)); 962 V8TRYCATCH_VOID(DocumentFragment*, cppValue, V8DocumentFragment::toNativeWit hTypeCheck(info.GetIsolate(), v8Value));
963 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue)); 963 impl->setDocumentFragmentAttribute(WTF::getPtr(cppValue));
964 } 964 }
965 965
966 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 966 static void documentFragmentAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
967 { 967 {
968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
969 TestObjectPythonV8Internal::documentFragmentAttributeAttributeSetter(jsValue , info); 969 TestObjectPythonV8Internal::documentFragmentAttributeAttributeSetter(v8Value , info);
970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
971 } 971 }
972 972
973 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 973 static void documentTypeAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
974 { 974 {
975 v8::Handle<v8::Object> holder = info.Holder(); 975 v8::Handle<v8::Object> holder = info.Holder();
976 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 976 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
977 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl) ; 977 v8SetReturnValueFast(info, WTF::getPtr(impl->documentTypeAttribute()), impl) ;
978 } 978 }
979 979
980 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 980 static void documentTypeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
981 { 981 {
982 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 982 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
983 TestObjectPythonV8Internal::documentTypeAttributeAttributeGetter(info); 983 TestObjectPythonV8Internal::documentTypeAttributeAttributeGetter(info);
984 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 984 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
985 } 985 }
986 986
987 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info) 987 static void documentTypeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
988 { 988 {
989 v8::Handle<v8::Object> holder = info.Holder(); 989 v8::Handle<v8::Object> holder = info.Holder();
990 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 990 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
991 V8TRYCATCH_VOID(DocumentType*, cppValue, V8DocumentType::toNativeWithTypeChe ck(info.GetIsolate(), jsValue)); 991 V8TRYCATCH_VOID(DocumentType*, cppValue, V8DocumentType::toNativeWithTypeChe ck(info.GetIsolate(), v8Value));
992 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue)); 992 impl->setDocumentTypeAttribute(WTF::getPtr(cppValue));
993 } 993 }
994 994
995 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 995 static void documentTypeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
996 { 996 {
997 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 997 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
998 TestObjectPythonV8Internal::documentTypeAttributeAttributeSetter(jsValue, in fo); 998 TestObjectPythonV8Internal::documentTypeAttributeAttributeSetter(v8Value, in fo);
999 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 999 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1000 } 1000 }
1001 1001
1002 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info) 1002 static void elementAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::V alue>& info)
1003 { 1003 {
1004 v8::Handle<v8::Object> holder = info.Holder(); 1004 v8::Handle<v8::Object> holder = info.Holder();
1005 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1005 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1006 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl); 1006 v8SetReturnValueFast(info, WTF::getPtr(impl->elementAttribute()), impl);
1007 } 1007 }
1008 1008
1009 static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1009 static void elementAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1010 { 1010 {
1011 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1011 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1012 TestObjectPythonV8Internal::elementAttributeAttributeGetter(info); 1012 TestObjectPythonV8Internal::elementAttributeAttributeGetter(info);
1013 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1013 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1014 } 1014 }
1015 1015
1016 static void elementAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1016 static void elementAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1017 { 1017 {
1018 v8::Handle<v8::Object> holder = info.Holder(); 1018 v8::Handle<v8::Object> holder = info.Holder();
1019 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1019 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1020 V8TRYCATCH_VOID(Element*, cppValue, V8Element::toNativeWithTypeCheck(info.Ge tIsolate(), jsValue)); 1020 V8TRYCATCH_VOID(Element*, cppValue, V8Element::toNativeWithTypeCheck(info.Ge tIsolate(), v8Value));
1021 impl->setElementAttribute(WTF::getPtr(cppValue)); 1021 impl->setElementAttribute(WTF::getPtr(cppValue));
1022 } 1022 }
1023 1023
1024 static void elementAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1024 static void elementAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::L ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1025 { 1025 {
1026 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1026 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1027 TestObjectPythonV8Internal::elementAttributeAttributeSetter(jsValue, info); 1027 TestObjectPythonV8Internal::elementAttributeAttributeSetter(v8Value, info);
1028 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1028 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1029 } 1029 }
1030 1030
1031 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 1031 static void nodeAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
1032 { 1032 {
1033 v8::Handle<v8::Object> holder = info.Holder(); 1033 v8::Handle<v8::Object> holder = info.Holder();
1034 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1034 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1035 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl); 1035 v8SetReturnValueFast(info, WTF::getPtr(impl->nodeAttribute()), impl);
1036 } 1036 }
1037 1037
1038 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 1038 static void nodeAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
1039 { 1039 {
1040 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1040 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1041 TestObjectPythonV8Internal::nodeAttributeAttributeGetter(info); 1041 TestObjectPythonV8Internal::nodeAttributeAttributeGetter(info);
1042 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1042 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1043 } 1043 }
1044 1044
1045 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8: :PropertyCallbackInfo<void>& info) 1045 static void nodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
1046 { 1046 {
1047 v8::Handle<v8::Object> holder = info.Holder(); 1047 v8::Handle<v8::Object> holder = info.Holder();
1048 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1048 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1049 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), jsValue)); 1049 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola te(), v8Value));
1050 impl->setNodeAttribute(WTF::getPtr(cppValue)); 1050 impl->setNodeAttribute(WTF::getPtr(cppValue));
1051 } 1051 }
1052 1052
1053 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1053 static void nodeAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1054 { 1054 {
1055 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1055 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1056 TestObjectPythonV8Internal::nodeAttributeAttributeSetter(jsValue, info); 1056 TestObjectPythonV8Internal::nodeAttributeAttributeSetter(v8Value, info);
1057 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1057 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1058 } 1058 }
1059 1059
1060 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1060 static void shadowRootAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1061 { 1061 {
1062 v8::Handle<v8::Object> holder = info.Holder(); 1062 v8::Handle<v8::Object> holder = info.Holder();
1063 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1063 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1064 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl); 1064 v8SetReturnValueFast(info, WTF::getPtr(impl->shadowRootAttribute()), impl);
1065 } 1065 }
1066 1066
1067 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1067 static void shadowRootAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1068 { 1068 {
1069 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1069 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1070 TestObjectPythonV8Internal::shadowRootAttributeAttributeGetter(info); 1070 TestObjectPythonV8Internal::shadowRootAttributeAttributeGetter(info);
1071 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1071 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1072 } 1072 }
1073 1073
1074 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info) 1074 static void shadowRootAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1075 { 1075 {
1076 v8::Handle<v8::Object> holder = info.Holder(); 1076 v8::Handle<v8::Object> holder = info.Holder();
1077 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1077 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1078 V8TRYCATCH_VOID(ShadowRoot*, cppValue, V8ShadowRoot::toNativeWithTypeCheck(i nfo.GetIsolate(), jsValue)); 1078 V8TRYCATCH_VOID(ShadowRoot*, cppValue, V8ShadowRoot::toNativeWithTypeCheck(i nfo.GetIsolate(), v8Value));
1079 impl->setShadowRootAttribute(WTF::getPtr(cppValue)); 1079 impl->setShadowRootAttribute(WTF::getPtr(cppValue));
1080 } 1080 }
1081 1081
1082 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1082 static void shadowRootAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1083 { 1083 {
1084 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1084 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1085 TestObjectPythonV8Internal::shadowRootAttributeAttributeSetter(jsValue, info ); 1085 TestObjectPythonV8Internal::shadowRootAttributeAttributeSetter(v8Value, info );
1086 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1086 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1087 } 1087 }
1088 1088
1089 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 1089 static void arrayBufferAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
1090 { 1090 {
1091 v8::Handle<v8::Object> holder = info.Holder(); 1091 v8::Handle<v8::Object> holder = info.Holder();
1092 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1092 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1093 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl); 1093 v8SetReturnValueFast(info, WTF::getPtr(impl->arrayBufferAttribute()), impl);
1094 } 1094 }
1095 1095
1096 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 1096 static void arrayBufferAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
1097 { 1097 {
1098 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1098 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1099 TestObjectPythonV8Internal::arrayBufferAttributeAttributeGetter(info); 1099 TestObjectPythonV8Internal::arrayBufferAttributeAttributeGetter(info);
1100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1101 } 1101 }
1102 1102
1103 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info) 1103 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
1104 { 1104 {
1105 v8::Handle<v8::Object> holder = info.Holder(); 1105 v8::Handle<v8::Object> holder = info.Holder();
1106 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1106 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1107 V8TRYCATCH_VOID(ArrayBuffer*, cppValue, jsValue->IsArrayBuffer() ? V8ArrayBu ffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(jsValue)) : 0); 1107 V8TRYCATCH_VOID(ArrayBuffer*, cppValue, v8Value->IsArrayBuffer() ? V8ArrayBu ffer::toNative(v8::Handle<v8::ArrayBuffer>::Cast(v8Value)) : 0);
1108 impl->setArrayBufferAttribute(WTF::getPtr(cppValue)); 1108 impl->setArrayBufferAttribute(WTF::getPtr(cppValue));
1109 } 1109 }
1110 1110
1111 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1111 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1112 { 1112 {
1113 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1113 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1114 TestObjectPythonV8Internal::arrayBufferAttributeAttributeSetter(jsValue, inf o); 1114 TestObjectPythonV8Internal::arrayBufferAttributeAttributeSetter(v8Value, inf o);
1115 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1115 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1116 } 1116 }
1117 1117
1118 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1118 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1119 { 1119 {
1120 v8::Handle<v8::Object> holder = info.Holder(); 1120 v8::Handle<v8::Object> holder = info.Holder();
1121 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1121 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1122 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ; 1122 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ;
1123 } 1123 }
1124 1124
1125 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1125 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1126 { 1126 {
1127 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1127 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1128 TestObjectPythonV8Internal::float32ArrayAttributeAttributeGetter(info); 1128 TestObjectPythonV8Internal::float32ArrayAttributeAttributeGetter(info);
1129 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1129 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1130 } 1130 }
1131 1131
1132 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info) 1132 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1133 { 1133 {
1134 v8::Handle<v8::Object> holder = info.Holder(); 1134 v8::Handle<v8::Object> holder = info.Holder();
1135 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1135 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1136 V8TRYCATCH_VOID(Float32Array*, cppValue, jsValue->IsFloat32Array() ? V8Float 32Array::toNative(v8::Handle<v8::Float32Array>::Cast(jsValue)) : 0); 1136 V8TRYCATCH_VOID(Float32Array*, cppValue, v8Value->IsFloat32Array() ? V8Float 32Array::toNative(v8::Handle<v8::Float32Array>::Cast(v8Value)) : 0);
1137 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); 1137 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue));
1138 } 1138 }
1139 1139
1140 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1140 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1141 { 1141 {
1142 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1142 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1143 TestObjectPythonV8Internal::float32ArrayAttributeAttributeSetter(jsValue, in fo); 1143 TestObjectPythonV8Internal::float32ArrayAttributeAttributeSetter(v8Value, in fo);
1144 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1144 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1145 } 1145 }
1146 1146
1147 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1147 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1148 { 1148 {
1149 v8::Handle<v8::Object> holder = info.Holder(); 1149 v8::Handle<v8::Object> holder = info.Holder();
1150 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1150 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1151 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl); 1151 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl);
1152 } 1152 }
1153 1153
1154 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1154 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1155 { 1155 {
1156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1157 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeGetter(info); 1157 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeGetter(info);
1158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1159 } 1159 }
1160 1160
1161 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info) 1161 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1162 { 1162 {
1163 v8::Handle<v8::Object> holder = info.Holder(); 1163 v8::Handle<v8::Object> holder = info.Holder();
1164 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1164 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1165 V8TRYCATCH_VOID(Uint8Array*, cppValue, jsValue->IsUint8Array() ? V8Uint8Arra y::toNative(v8::Handle<v8::Uint8Array>::Cast(jsValue)) : 0); 1165 V8TRYCATCH_VOID(Uint8Array*, cppValue, v8Value->IsUint8Array() ? V8Uint8Arra y::toNative(v8::Handle<v8::Uint8Array>::Cast(v8Value)) : 0);
1166 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue)); 1166 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue));
1167 } 1167 }
1168 1168
1169 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1169 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1170 { 1170 {
1171 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1171 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1172 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeSetter(jsValue, info ); 1172 TestObjectPythonV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info );
1173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1174 } 1174 }
1175 1175
1176 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1176 static void selfAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1177 { 1177 {
1178 v8::Handle<v8::Object> holder = info.Holder(); 1178 v8::Handle<v8::Object> holder = info.Holder();
1179 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1179 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1180 v8SetReturnValueFast(info, WTF::getPtr(impl->self()), impl); 1180 v8SetReturnValueFast(info, WTF::getPtr(impl->self()), impl);
1181 } 1181 }
1182 1182
(...skipping 16 matching lines...) Expand all
1199 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1199 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1200 TestObjectPythonV8Internal::readonlyEventTargetAttributeAttributeGetter(info ); 1200 TestObjectPythonV8Internal::readonlyEventTargetAttributeAttributeGetter(info );
1201 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1201 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1202 } 1202 }
1203 1203
1204 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 1204 static void readonlyEventTargetOrNullAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
1205 { 1205 {
1206 v8::Handle<v8::Object> holder = info.Holder(); 1206 v8::Handle<v8::Object> holder = info.Holder();
1207 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1207 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1208 bool isNull = false; 1208 bool isNull = false;
1209 RefPtr<EventTarget> jsValue = impl->readonlyEventTargetOrNullAttribute(isNul l); 1209 RefPtr<EventTarget> v8Value = impl->readonlyEventTargetOrNullAttribute(isNul l);
1210 if (isNull) { 1210 if (isNull) {
1211 v8SetReturnValueNull(info); 1211 v8SetReturnValueNull(info);
1212 return; 1212 return;
1213 } 1213 }
1214 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), impl); 1214 v8SetReturnValueFast(info, WTF::getPtr(v8Value.release()), impl);
1215 } 1215 }
1216 1216
1217 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1217 static void readonlyEventTargetOrNullAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1218 { 1218 {
1219 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1219 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1220 TestObjectPythonV8Internal::readonlyEventTargetOrNullAttributeAttributeGette r(info); 1220 TestObjectPythonV8Internal::readonlyEventTargetOrNullAttributeAttributeGette r(info);
1221 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1221 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1222 } 1222 }
1223 1223
1224 static void readonlyWindowAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 1224 static void readonlyWindowAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 v8SetReturnValue(info, v8Array(impl->stringArrayAttribute(), info.GetIsolate ())); 1270 v8SetReturnValue(info, v8Array(impl->stringArrayAttribute(), info.GetIsolate ()));
1271 } 1271 }
1272 1272
1273 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 1273 static void stringArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
1274 { 1274 {
1275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1275 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1276 TestObjectPythonV8Internal::stringArrayAttributeAttributeGetter(info); 1276 TestObjectPythonV8Internal::stringArrayAttributeAttributeGetter(info);
1277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1277 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1278 } 1278 }
1279 1279
1280 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info) 1280 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
1281 { 1281 {
1282 v8::Handle<v8::Object> holder = info.Holder(); 1282 v8::Handle<v8::Object> holder = info.Holder();
1283 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1283 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1284 V8TRYCATCH_VOID(Vector<String>, cppValue, toNativeArray<String>(jsValue, 0, info.GetIsolate())); 1284 V8TRYCATCH_VOID(Vector<String>, cppValue, toNativeArray<String>(v8Value, 0, info.GetIsolate()));
1285 impl->setStringArrayAttribute(cppValue); 1285 impl->setStringArrayAttribute(cppValue);
1286 } 1286 }
1287 1287
1288 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1288 static void stringArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1289 { 1289 {
1290 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1290 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1291 TestObjectPythonV8Internal::stringArrayAttributeAttributeSetter(jsValue, inf o); 1291 TestObjectPythonV8Internal::stringArrayAttributeAttributeSetter(v8Value, inf o);
1292 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1292 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1293 } 1293 }
1294 1294
1295 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) 1295 static void testInterfaceEmptyArrayAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info)
1296 { 1296 {
1297 v8::Handle<v8::Object> holder = info.Holder(); 1297 v8::Handle<v8::Object> holder = info.Holder();
1298 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1298 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1299 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptyArrayAttribute(), inf o.GetIsolate())); 1299 v8SetReturnValue(info, v8Array(impl->testInterfaceEmptyArrayAttribute(), inf o.GetIsolate()));
1300 } 1300 }
1301 1301
1302 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1302 static void testInterfaceEmptyArrayAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1303 { 1303 {
1304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1304 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1305 TestObjectPythonV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter( info); 1305 TestObjectPythonV8Internal::testInterfaceEmptyArrayAttributeAttributeGetter( info);
1306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1306 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1307 } 1307 }
1308 1308
1309 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1309 static void testInterfaceEmptyArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1310 { 1310 {
1311 v8::Handle<v8::Object> holder = info.Holder(); 1311 v8::Handle<v8::Object> holder = info.Holder();
1312 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1312 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1313 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNati veArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(jsValue, 0, info.GetIsolate()) )); 1313 V8TRYCATCH_VOID(Vector<RefPtr<TestInterfaceEmpty> >, cppValue, (toRefPtrNati veArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(v8Value, 0, info.GetIsolate()) ));
1314 impl->setTestInterfaceEmptyArrayAttribute(cppValue); 1314 impl->setTestInterfaceEmptyArrayAttribute(cppValue);
1315 } 1315 }
1316 1316
1317 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo) 1317 static void testInterfaceEmptyArrayAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
1318 { 1318 {
1319 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1319 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1320 TestObjectPythonV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter( jsValue, info); 1320 TestObjectPythonV8Internal::testInterfaceEmptyArrayAttributeAttributeSetter( v8Value, info);
1321 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1321 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1322 } 1322 }
1323 1323
1324 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1324 static void floatArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1325 { 1325 {
1326 v8::Handle<v8::Object> holder = info.Holder(); 1326 v8::Handle<v8::Object> holder = info.Holder();
1327 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1327 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1328 v8SetReturnValue(info, v8Array(impl->floatArrayAttribute(), info.GetIsolate( ))); 1328 v8SetReturnValue(info, v8Array(impl->floatArrayAttribute(), info.GetIsolate( )));
1329 } 1329 }
1330 1330
1331 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1331 static void floatArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1332 { 1332 {
1333 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1333 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1334 TestObjectPythonV8Internal::floatArrayAttributeAttributeGetter(info); 1334 TestObjectPythonV8Internal::floatArrayAttributeAttributeGetter(info);
1335 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1335 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1336 } 1336 }
1337 1337
1338 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info) 1338 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1339 { 1339 {
1340 v8::Handle<v8::Object> holder = info.Holder(); 1340 v8::Handle<v8::Object> holder = info.Holder();
1341 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1341 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1342 V8TRYCATCH_VOID(Vector<float>, cppValue, toNativeArray<float>(jsValue, 0, in fo.GetIsolate())); 1342 V8TRYCATCH_VOID(Vector<float>, cppValue, toNativeArray<float>(v8Value, 0, in fo.GetIsolate()));
1343 impl->setFloatArrayAttribute(cppValue); 1343 impl->setFloatArrayAttribute(cppValue);
1344 } 1344 }
1345 1345
1346 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1346 static void floatArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1347 { 1347 {
1348 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1348 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1349 TestObjectPythonV8Internal::floatArrayAttributeAttributeSetter(jsValue, info ); 1349 TestObjectPythonV8Internal::floatArrayAttributeAttributeSetter(v8Value, info );
1350 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1350 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1351 } 1351 }
1352 1352
1353 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1353 static void stringOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1354 { 1354 {
1355 v8::Handle<v8::Object> holder = info.Holder(); 1355 v8::Handle<v8::Object> holder = info.Holder();
1356 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1356 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1357 bool isNull = false; 1357 bool isNull = false;
1358 String jsValue = impl->stringOrNullAttribute(isNull); 1358 String v8Value = impl->stringOrNullAttribute(isNull);
1359 if (isNull) { 1359 if (isNull) {
1360 v8SetReturnValueNull(info); 1360 v8SetReturnValueNull(info);
1361 return; 1361 return;
1362 } 1362 }
1363 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 1363 v8SetReturnValueString(info, v8Value, info.GetIsolate());
1364 } 1364 }
1365 1365
1366 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1366 static void stringOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1367 { 1367 {
1368 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1368 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1369 TestObjectPythonV8Internal::stringOrNullAttributeAttributeGetter(info); 1369 TestObjectPythonV8Internal::stringOrNullAttributeAttributeGetter(info);
1370 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1370 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1371 } 1371 }
1372 1372
1373 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info) 1373 static void stringOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1374 { 1374 {
1375 v8::Handle<v8::Object> holder = info.Holder(); 1375 v8::Handle<v8::Object> holder = info.Holder();
1376 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1376 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1377 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 1377 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
1378 impl->setStringOrNullAttribute(cppValue); 1378 impl->setStringOrNullAttribute(cppValue);
1379 } 1379 }
1380 1380
1381 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1381 static void stringOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1382 { 1382 {
1383 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1383 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1384 TestObjectPythonV8Internal::stringOrNullAttributeAttributeSetter(jsValue, in fo); 1384 TestObjectPythonV8Internal::stringOrNullAttributeAttributeSetter(v8Value, in fo);
1385 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1385 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1386 } 1386 }
1387 1387
1388 static void longOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1388 static void longOrNullAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1389 { 1389 {
1390 v8::Handle<v8::Object> holder = info.Holder(); 1390 v8::Handle<v8::Object> holder = info.Holder();
1391 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1391 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1392 bool isNull = false; 1392 bool isNull = false;
1393 int jsValue = impl->longOrNullAttribute(isNull); 1393 int v8Value = impl->longOrNullAttribute(isNull);
1394 if (isNull) { 1394 if (isNull) {
1395 v8SetReturnValueNull(info); 1395 v8SetReturnValueNull(info);
1396 return; 1396 return;
1397 } 1397 }
1398 v8SetReturnValueInt(info, jsValue); 1398 v8SetReturnValueInt(info, v8Value);
1399 } 1399 }
1400 1400
1401 static void longOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1401 static void longOrNullAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1402 { 1402 {
1403 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1403 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1404 TestObjectPythonV8Internal::longOrNullAttributeAttributeGetter(info); 1404 TestObjectPythonV8Internal::longOrNullAttributeAttributeGetter(info);
1405 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1405 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1406 } 1406 }
1407 1407
1408 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info) 1408 static void longOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1409 { 1409 {
1410 v8::Handle<v8::Object> holder = info.Holder(); 1410 v8::Handle<v8::Object> holder = info.Holder();
1411 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr ibute", "TestObjectPython", holder, info.GetIsolate()); 1411 ExceptionState exceptionState(ExceptionState::SetterContext, "longOrNullAttr ibute", "TestObjectPython", holder, info.GetIsolate());
1412 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1412 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1413 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 1413 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
1414 impl->setLongOrNullAttribute(cppValue); 1414 impl->setLongOrNullAttribute(cppValue);
1415 } 1415 }
1416 1416
1417 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1417 static void longOrNullAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1418 { 1418 {
1419 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1419 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1420 TestObjectPythonV8Internal::longOrNullAttributeAttributeSetter(jsValue, info ); 1420 TestObjectPythonV8Internal::longOrNullAttributeAttributeSetter(v8Value, info );
1421 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1421 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1422 } 1422 }
1423 1423
1424 static void testInterfaceOrNullAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 1424 static void testInterfaceOrNullAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
1425 { 1425 {
1426 v8::Handle<v8::Object> holder = info.Holder(); 1426 v8::Handle<v8::Object> holder = info.Holder();
1427 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1427 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1428 bool isNull = false; 1428 bool isNull = false;
1429 RefPtr<TestInterface> jsValue = impl->testInterfaceOrNullAttribute(isNull); 1429 RefPtr<TestInterface> v8Value = impl->testInterfaceOrNullAttribute(isNull);
1430 if (isNull) { 1430 if (isNull) {
1431 v8SetReturnValueNull(info); 1431 v8SetReturnValueNull(info);
1432 return; 1432 return;
1433 } 1433 }
1434 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), impl); 1434 v8SetReturnValueFast(info, WTF::getPtr(v8Value.release()), impl);
1435 } 1435 }
1436 1436
1437 static void testInterfaceOrNullAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 1437 static void testInterfaceOrNullAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
1438 { 1438 {
1439 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1439 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1440 TestObjectPythonV8Internal::testInterfaceOrNullAttributeAttributeGetter(info ); 1440 TestObjectPythonV8Internal::testInterfaceOrNullAttributeAttributeGetter(info );
1441 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1441 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1442 } 1442 }
1443 1443
1444 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> jsV alue, const v8::PropertyCallbackInfo<void>& info) 1444 static void testInterfaceOrNullAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
1445 { 1445 {
1446 v8::Handle<v8::Object> holder = info.Holder(); 1446 v8::Handle<v8::Object> holder = info.Holder();
1447 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1447 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1448 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC heck(info.GetIsolate(), jsValue)); 1448 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC heck(info.GetIsolate(), v8Value));
1449 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue)); 1449 impl->setTestInterfaceOrNullAttribute(WTF::getPtr(cppValue));
1450 } 1450 }
1451 1451
1452 static void testInterfaceOrNullAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1452 static void testInterfaceOrNullAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1453 { 1453 {
1454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1454 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1455 TestObjectPythonV8Internal::testInterfaceOrNullAttributeAttributeSetter(jsVa lue, info); 1455 TestObjectPythonV8Internal::testInterfaceOrNullAttributeAttributeSetter(v8Va lue, info);
1456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1457 } 1457 }
1458 1458
1459 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info) 1459 static void testEnumAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8:: Value>& info)
1460 { 1460 {
1461 v8::Handle<v8::Object> holder = info.Holder(); 1461 v8::Handle<v8::Object> holder = info.Holder();
1462 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1462 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1463 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate()); 1463 v8SetReturnValueString(info, impl->testEnumAttribute(), info.GetIsolate());
1464 } 1464 }
1465 1465
1466 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info) 1466 static void testEnumAttributeAttributeGetterCallback(v8::Local<v8::String>, cons t v8::PropertyCallbackInfo<v8::Value>& info)
1467 { 1467 {
1468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1469 TestObjectPythonV8Internal::testEnumAttributeAttributeGetter(info); 1469 TestObjectPythonV8Internal::testEnumAttributeAttributeGetter(info);
1470 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1470 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1471 } 1471 }
1472 1472
1473 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1473 static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1474 { 1474 {
1475 v8::Handle<v8::Object> holder = info.Holder(); 1475 v8::Handle<v8::Object> holder = info.Holder();
1476 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1476 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1477 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 1477 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
1478 String string = cppValue; 1478 String string = cppValue;
1479 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3")) 1479 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || st ring == "EnumValue3"))
1480 return; 1480 return;
1481 impl->setTestEnumAttribute(cppValue); 1481 impl->setTestEnumAttribute(cppValue);
1482 } 1482 }
1483 1483
1484 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1484 static void testEnumAttributeAttributeSetterCallback(v8::Local<v8::String>, v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1485 { 1485 {
1486 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1486 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1487 TestObjectPythonV8Internal::testEnumAttributeAttributeSetter(jsValue, info); 1487 TestObjectPythonV8Internal::testEnumAttributeAttributeSetter(v8Value, info);
1488 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1488 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1489 } 1489 }
1490 1490
1491 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1491 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1492 { 1492 {
1493 v8SetReturnValueString(info, TestObjectPython::staticStringAttribute(), info .GetIsolate()); 1493 v8SetReturnValueString(info, TestObjectPython::staticStringAttribute(), info .GetIsolate());
1494 } 1494 }
1495 1495
1496 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1496 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1497 { 1497 {
1498 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1498 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1499 TestObjectPythonV8Internal::staticStringAttributeAttributeGetter(info); 1499 TestObjectPythonV8Internal::staticStringAttributeAttributeGetter(info);
1500 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1500 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1501 } 1501 }
1502 1502
1503 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info) 1503 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1504 { 1504 {
1505 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 1505 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
1506 TestObjectPython::setStaticStringAttribute(cppValue); 1506 TestObjectPython::setStaticStringAttribute(cppValue);
1507 } 1507 }
1508 1508
1509 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1509 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1510 { 1510 {
1511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1512 TestObjectPythonV8Internal::staticStringAttributeAttributeSetter(jsValue, in fo); 1512 TestObjectPythonV8Internal::staticStringAttributeAttributeSetter(v8Value, in fo);
1513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1514 } 1514 }
1515 1515
1516 static void staticLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1516 static void staticLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1517 { 1517 {
1518 v8SetReturnValueInt(info, TestObjectPython::staticLongAttribute()); 1518 v8SetReturnValueInt(info, TestObjectPython::staticLongAttribute());
1519 } 1519 }
1520 1520
1521 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1521 static void staticLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1522 { 1522 {
1523 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1523 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1524 TestObjectPythonV8Internal::staticLongAttributeAttributeGetter(info); 1524 TestObjectPythonV8Internal::staticLongAttributeAttributeGetter(info);
1525 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1525 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1526 } 1526 }
1527 1527
1528 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info) 1528 static void staticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1529 { 1529 {
1530 ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttr ibute", "TestObjectPython", holder, info.GetIsolate()); 1530 ExceptionState exceptionState(ExceptionState::SetterContext, "staticLongAttr ibute", "TestObjectPython", holder, info.GetIsolate());
1531 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 1531 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
1532 TestObjectPython::setStaticLongAttribute(cppValue); 1532 TestObjectPython::setStaticLongAttribute(cppValue);
1533 } 1533 }
1534 1534
1535 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1535 static void staticLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1536 { 1536 {
1537 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1537 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1538 TestObjectPythonV8Internal::staticLongAttributeAttributeSetter(jsValue, info ); 1538 TestObjectPythonV8Internal::staticLongAttributeAttributeSetter(v8Value, info );
1539 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1539 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1540 } 1540 }
1541 1541
1542 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1542 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1543 { 1543 {
1544 v8::Handle<v8::Object> holder = info.Holder(); 1544 v8::Handle<v8::Object> holder = info.Holder();
1545 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1545 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1546 EventListener* jsValue = impl->eventHandlerAttribute(); 1546 EventListener* v8Value = impl->eventHandlerAttribute();
1547 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen er::cast(jsValue)->getListenerObject(impl->executionContext())) : v8::Handle<v8: :Value>(v8::Null(info.GetIsolate()))); 1547 v8SetReturnValue(info, v8Value ? v8::Handle<v8::Value>(V8AbstractEventListen er::cast(v8Value)->getListenerObject(impl->executionContext())) : v8::Handle<v8: :Value>(v8::Null(info.GetIsolate())));
1548 } 1548 }
1549 1549
1550 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1550 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1551 { 1551 {
1552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1553 TestObjectPythonV8Internal::eventHandlerAttributeAttributeGetter(info); 1553 TestObjectPythonV8Internal::eventHandlerAttributeAttributeGetter(info);
1554 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1554 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1555 } 1555 }
1556 1556
1557 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info) 1557 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1558 { 1558 {
1559 v8::Handle<v8::Object> holder = info.Holder(); 1559 v8::Handle<v8::Object> holder = info.Holder();
1560 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1560 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1561 moveEventListenerToNewWrapper(holder, impl->eventHandlerAttribute(), jsValue , V8TestObjectPython::eventListenerCacheIndex, info.GetIsolate()); 1561 moveEventListenerToNewWrapper(holder, impl->eventHandlerAttribute(), v8Value , V8TestObjectPython::eventListenerCacheIndex, info.GetIsolate());
1562 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(jsValue , true, ListenerFindOrCreate)); 1562 impl->setEventHandlerAttribute(V8EventListenerList::getEventListener(v8Value , true, ListenerFindOrCreate));
1563 } 1563 }
1564 1564
1565 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1565 static void eventHandlerAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1566 { 1566 {
1567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1567 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1568 TestObjectPythonV8Internal::eventHandlerAttributeAttributeSetter(jsValue, in fo); 1568 TestObjectPythonV8Internal::eventHandlerAttributeAttributeSetter(v8Value, in fo);
1569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1569 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1570 } 1570 }
1571 1571
1572 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1572 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1573 { 1573 {
1574 v8::Handle<v8::Object> holder = info.Holder(); 1574 v8::Handle<v8::Object> holder = info.Holder();
1575 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1575 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1576 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te()); 1576 v8SetReturnValueInt(info, impl->activityLoggingAccessForAllWorldsLongAttribu te());
1577 } 1577 }
1578 1578
1579 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1579 static void activityLoggingAccessForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1580 { 1580 {
1581 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1581 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1582 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 1582 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
1583 if (contextData && contextData->activityLogger()) 1583 if (contextData && contextData->activityLogger())
1584 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssForAllWorldsLongAttribute", 0, 0, "Getter"); 1584 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssForAllWorldsLongAttribute", 0, 0, "Getter");
1585 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAt tributeGetter(info); 1585 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAt tributeGetter(info);
1586 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1586 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1587 } 1587 }
1588 1588
1589 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1589 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1590 { 1590 {
1591 v8::Handle<v8::Object> holder = info.Holder(); 1591 v8::Handle<v8::Object> holder = info.Holder();
1592 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObjectPython", holder, info.GetIsolate() ); 1592 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForAllWorldsLongAttribute", "TestObjectPython", holder, info.GetIsolate() );
1593 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1593 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1594 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 1594 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
1595 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue); 1595 impl->setActivityLoggingAccessForAllWorldsLongAttribute(cppValue);
1596 } 1596 }
1597 1597
1598 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac kInfo<void>& info) 1598 static void activityLoggingAccessForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
1599 { 1599 {
1600 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1600 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1601 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 1601 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
1602 if (contextData && contextData->activityLogger()) { 1602 if (contextData && contextData->activityLogger()) {
1603 v8::Handle<v8::Value> loggerArg[] = { jsValue }; 1603 v8::Handle<v8::Value> loggerArg[] = { v8Value };
1604 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssForAllWorldsLongAttribute", 1, &loggerArg[0], "Setter"); 1604 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssForAllWorldsLongAttribute", 1, &loggerArg[0], "Setter");
1605 } 1605 }
1606 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAt tributeSetter(jsValue, info); 1606 TestObjectPythonV8Internal::activityLoggingAccessForAllWorldsLongAttributeAt tributeSetter(v8Value, info);
1607 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1607 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1608 } 1608 }
1609 1609
1610 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1610 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1611 { 1611 {
1612 v8::Handle<v8::Object> holder = info.Holder(); 1612 v8::Handle<v8::Object> holder = info.Holder();
1613 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1613 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1614 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te()); 1614 v8SetReturnValueInt(info, impl->activityLoggingGetterForAllWorldsLongAttribu te());
1615 } 1615 }
1616 1616
1617 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1617 static void activityLoggingGetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1618 { 1618 {
1619 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1619 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1620 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 1620 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
1621 if (contextData && contextData->activityLogger()) 1621 if (contextData && contextData->activityLogger())
1622 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett erForAllWorldsLongAttribute", 0, 0, "Getter"); 1622 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett erForAllWorldsLongAttribute", 0, 0, "Getter");
1623 TestObjectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAt tributeGetter(info); 1623 TestObjectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAt tributeGetter(info);
1624 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1624 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1625 } 1625 }
1626 1626
1627 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1627 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1628 { 1628 {
1629 v8::Handle<v8::Object> holder = info.Holder(); 1629 v8::Handle<v8::Object> holder = info.Holder();
1630 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObjectPython", holder, info.GetIsolate() ); 1630 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForAllWorldsLongAttribute", "TestObjectPython", holder, info.GetIsolate() );
1631 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1631 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1632 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 1632 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
1633 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue); 1633 impl->setActivityLoggingGetterForAllWorldsLongAttribute(cppValue);
1634 } 1634 }
1635 1635
1636 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac kInfo<void>& info) 1636 static void activityLoggingGetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
1637 { 1637 {
1638 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1638 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1639 TestObjectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAt tributeSetter(jsValue, info); 1639 TestObjectPythonV8Internal::activityLoggingGetterForAllWorldsLongAttributeAt tributeSetter(v8Value, info);
1640 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1640 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1641 } 1641 }
1642 1642
1643 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 1643 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
1644 { 1644 {
1645 v8::Handle<v8::Object> holder = info.Holder(); 1645 v8::Handle<v8::Object> holder = info.Holder();
1646 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1646 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1647 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu te()); 1647 v8SetReturnValueInt(info, impl->activityLoggingSetterForAllWorldsLongAttribu te());
1648 } 1648 }
1649 1649
1650 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1650 static void activityLoggingSetterForAllWorldsLongAttributeAttributeGetterCallbac k(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1651 { 1651 {
1652 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1652 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1653 TestObjectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAt tributeGetter(info); 1653 TestObjectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAt tributeGetter(info);
1654 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1654 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1655 } 1655 }
1656 1656
1657 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1657 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetter(v8::Lo cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1658 { 1658 {
1659 v8::Handle<v8::Object> holder = info.Holder(); 1659 v8::Handle<v8::Object> holder = info.Holder();
1660 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObjectPython", holder, info.GetIsolate() ); 1660 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gSetterForAllWorldsLongAttribute", "TestObjectPython", holder, info.GetIsolate() );
1661 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1661 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1662 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 1662 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
1663 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue); 1663 impl->setActivityLoggingSetterForAllWorldsLongAttribute(cppValue);
1664 } 1664 }
1665 1665
1666 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbac kInfo<void>& info) 1666 static void activityLoggingSetterForAllWorldsLongAttributeAttributeSetterCallbac k(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbac kInfo<void>& info)
1667 { 1667 {
1668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1669 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 1669 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
1670 if (contextData && contextData->activityLogger()) { 1670 if (contextData && contextData->activityLogger()) {
1671 v8::Handle<v8::Value> loggerArg[] = { jsValue }; 1671 v8::Handle<v8::Value> loggerArg[] = { v8Value };
1672 contextData->activityLogger()->log("TestObjectPython.activityLoggingSett erForAllWorldsLongAttribute", 1, &loggerArg[0], "Setter"); 1672 contextData->activityLogger()->log("TestObjectPython.activityLoggingSett erForAllWorldsLongAttribute", 1, &loggerArg[0], "Setter");
1673 } 1673 }
1674 TestObjectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAt tributeSetter(jsValue, info); 1674 TestObjectPythonV8Internal::activityLoggingSetterForAllWorldsLongAttributeAt tributeSetter(v8Value, info);
1675 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1675 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1676 } 1676 }
1677 1677
1678 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 1678 static void cachedAttributeAnyAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
1679 { 1679 {
1680 v8::Handle<v8::Object> holder = info.Holder(); 1680 v8::Handle<v8::Object> holder = info.Holder();
1681 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedAttributeAnyAttribute"); 1681 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedAttributeAnyAttribute");
1682 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1682 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1683 if (!impl->isValueDirty()) { 1683 if (!impl->isValueDirty()) {
1684 v8::Handle<v8::Value> jsValue = V8HiddenValue::getHiddenValue(info.GetIs olate(), holder, propertyName); 1684 v8::Handle<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIs olate(), holder, propertyName);
1685 if (!jsValue.IsEmpty()) { 1685 if (!v8Value.IsEmpty()) {
1686 v8SetReturnValue(info, jsValue); 1686 v8SetReturnValue(info, v8Value);
1687 return; 1687 return;
1688 } 1688 }
1689 } 1689 }
1690 ScriptValue jsValue = impl->cachedAttributeAnyAttribute(); 1690 ScriptValue v8Value = impl->cachedAttributeAnyAttribute();
1691 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, jsVal ue.v8Value()); 1691 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue.v8Value());
1692 v8SetReturnValue(info, jsValue.v8Value()); 1692 v8SetReturnValue(info, v8Value.v8Value());
1693 } 1693 }
1694 1694
1695 static void cachedAttributeAnyAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 1695 static void cachedAttributeAnyAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
1696 { 1696 {
1697 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1697 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1698 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeGetter(info) ; 1698 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeGetter(info) ;
1699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1700 } 1700 }
1701 1701
1702 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> jsVa lue, const v8::PropertyCallbackInfo<void>& info) 1702 static void cachedAttributeAnyAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
1703 { 1703 {
1704 v8::Handle<v8::Object> holder = info.Holder(); 1704 v8::Handle<v8::Object> holder = info.Holder();
1705 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1705 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1706 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate( ))); 1706 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate( )));
1707 impl->setCachedAttributeAnyAttribute(cppValue); 1707 impl->setCachedAttributeAnyAttribute(cppValue);
1708 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu e. 1708 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeAnyAttribute")); // Invalidate the cached valu e.
1709 } 1709 }
1710 1710
1711 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1711 static void cachedAttributeAnyAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1712 { 1712 {
1713 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1713 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1714 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeSetter(jsVal ue, info); 1714 TestObjectPythonV8Internal::cachedAttributeAnyAttributeAttributeSetter(v8Val ue, info);
1715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1715 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1716 } 1716 }
1717 1717
1718 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info) 1718 static void callWithExecutionContextAnyAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info)
1719 { 1719 {
1720 v8::Handle<v8::Object> holder = info.Holder(); 1720 v8::Handle<v8::Object> holder = info.Holder();
1721 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1721 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1722 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 1722 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
1723 v8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(scriptCont ext).v8Value()); 1723 v8SetReturnValue(info, impl->callWithExecutionContextAnyAttribute(scriptCont ext).v8Value());
1724 } 1724 }
1725 1725
1726 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1726 static void callWithExecutionContextAnyAttributeAttributeGetterCallback(v8::Loca l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1727 { 1727 {
1728 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1728 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1729 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeGet ter(info); 1729 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeGet ter(info);
1730 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1730 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1731 } 1731 }
1732 1732
1733 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va lue> jsValue, const v8::PropertyCallbackInfo<void>& info) 1733 static void callWithExecutionContextAnyAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info)
1734 { 1734 {
1735 v8::Handle<v8::Object> holder = info.Holder(); 1735 v8::Handle<v8::Object> holder = info.Holder();
1736 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1736 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1737 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate( ))); 1737 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate( )));
1738 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 1738 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
1739 impl->setCallWithExecutionContextAnyAttribute(scriptContext, cppValue); 1739 impl->setCallWithExecutionContextAnyAttribute(scriptContext, cppValue);
1740 } 1740 }
1741 1741
1742 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void >& info) 1742 static void callWithExecutionContextAnyAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
1743 { 1743 {
1744 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1744 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1745 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeSet ter(jsValue, info); 1745 TestObjectPythonV8Internal::callWithExecutionContextAnyAttributeAttributeSet ter(v8Value, info);
1746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1747 } 1747 }
1748 1748
1749 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) 1749 static void checkSecurityForNodeReadonlyDocumentAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info)
1750 { 1750 {
1751 v8::Handle<v8::Object> holder = info.Holder(); 1751 v8::Handle<v8::Object> holder = info.Holder();
1752 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1752 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1753 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF orNodeReadonlyDocumentAttribute", "TestObjectPython", holder, info.GetIsolate()) ; 1753 ExceptionState exceptionState(ExceptionState::GetterContext, "checkSecurityF orNodeReadonlyDocumentAttribute", "TestObjectPython", holder, info.GetIsolate()) ;
1754 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check SecurityForNodeReadonlyDocumentAttribute(), exceptionState)) { 1754 if (!BindingSecurity::shouldAllowAccessToNode(info.GetIsolate(), impl->check SecurityForNodeReadonlyDocumentAttribute(), exceptionState)) {
1755 v8SetReturnValueNull(info); 1755 v8SetReturnValueNull(info);
(...skipping 22 matching lines...) Expand all
1778 #if ENABLE(CONDITION) 1778 #if ENABLE(CONDITION)
1779 static void conditionalLongAttributeAttributeGetterCallback(v8::Local<v8::String >, const v8::PropertyCallbackInfo<v8::Value>& info) 1779 static void conditionalLongAttributeAttributeGetterCallback(v8::Local<v8::String >, const v8::PropertyCallbackInfo<v8::Value>& info)
1780 { 1780 {
1781 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1781 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1782 TestObjectPythonV8Internal::conditionalLongAttributeAttributeGetter(info); 1782 TestObjectPythonV8Internal::conditionalLongAttributeAttributeGetter(info);
1783 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1783 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1784 } 1784 }
1785 #endif // ENABLE(CONDITION) 1785 #endif // ENABLE(CONDITION)
1786 1786
1787 #if ENABLE(CONDITION) 1787 #if ENABLE(CONDITION)
1788 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue , const v8::PropertyCallbackInfo<void>& info) 1788 static void conditionalLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info)
1789 { 1789 {
1790 v8::Handle<v8::Object> holder = info.Holder(); 1790 v8::Handle<v8::Object> holder = info.Holder();
1791 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon gAttribute", "TestObjectPython", holder, info.GetIsolate()); 1791 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalLon gAttribute", "TestObjectPython", holder, info.GetIsolate());
1792 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1792 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1793 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 1793 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
1794 impl->setConditionalLongAttribute(cppValue); 1794 impl->setConditionalLongAttribute(cppValue);
1795 } 1795 }
1796 #endif // ENABLE(CONDITION) 1796 #endif // ENABLE(CONDITION)
1797 1797
1798 #if ENABLE(CONDITION) 1798 #if ENABLE(CONDITION)
1799 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1799 static void conditionalLongAttributeAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1800 { 1800 {
1801 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1801 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1802 TestObjectPythonV8Internal::conditionalLongAttributeAttributeSetter(jsValue, info); 1802 TestObjectPythonV8Internal::conditionalLongAttributeAttributeSetter(v8Value, info);
1803 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1803 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1804 } 1804 }
1805 #endif // ENABLE(CONDITION) 1805 #endif // ENABLE(CONDITION)
1806 1806
1807 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) 1807 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2)
1808 static void conditionalAndLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 1808 static void conditionalAndLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
1809 { 1809 {
1810 v8::Handle<v8::Object> holder = info.Holder(); 1810 v8::Handle<v8::Object> holder = info.Holder();
1811 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1811 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1812 v8SetReturnValueInt(info, impl->conditionalAndLongAttribute()); 1812 v8SetReturnValueInt(info, impl->conditionalAndLongAttribute());
1813 } 1813 }
1814 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) 1814 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2)
1815 1815
1816 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) 1816 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2)
1817 static void conditionalAndLongAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 1817 static void conditionalAndLongAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
1818 { 1818 {
1819 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1819 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1820 TestObjectPythonV8Internal::conditionalAndLongAttributeAttributeGetter(info) ; 1820 TestObjectPythonV8Internal::conditionalAndLongAttributeAttributeGetter(info) ;
1821 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1821 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1822 } 1822 }
1823 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) 1823 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2)
1824 1824
1825 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) 1825 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2)
1826 static void conditionalAndLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa lue, const v8::PropertyCallbackInfo<void>& info) 1826 static void conditionalAndLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
1827 { 1827 {
1828 v8::Handle<v8::Object> holder = info.Holder(); 1828 v8::Handle<v8::Object> holder = info.Holder();
1829 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAnd LongAttribute", "TestObjectPython", holder, info.GetIsolate()); 1829 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalAnd LongAttribute", "TestObjectPython", holder, info.GetIsolate());
1830 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1830 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1831 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 1831 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
1832 impl->setConditionalAndLongAttribute(cppValue); 1832 impl->setConditionalAndLongAttribute(cppValue);
1833 } 1833 }
1834 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) 1834 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2)
1835 1835
1836 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2) 1836 #if ENABLE(CONDITION_1) && ENABLE(CONDITION_2)
1837 static void conditionalAndLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1837 static void conditionalAndLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1838 { 1838 {
1839 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1839 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1840 TestObjectPythonV8Internal::conditionalAndLongAttributeAttributeSetter(jsVal ue, info); 1840 TestObjectPythonV8Internal::conditionalAndLongAttributeAttributeSetter(v8Val ue, info);
1841 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1841 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1842 } 1842 }
1843 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2) 1843 #endif // ENABLE(CONDITION_1) && ENABLE(CONDITION_2)
1844 1844
1845 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) 1845 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2)
1846 static void conditionalOrLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 1846 static void conditionalOrLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
1847 { 1847 {
1848 v8::Handle<v8::Object> holder = info.Holder(); 1848 v8::Handle<v8::Object> holder = info.Holder();
1849 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1849 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1850 v8SetReturnValueInt(info, impl->conditionalOrLongAttribute()); 1850 v8SetReturnValueInt(info, impl->conditionalOrLongAttribute());
1851 } 1851 }
1852 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) 1852 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2)
1853 1853
1854 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) 1854 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2)
1855 static void conditionalOrLongAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 1855 static void conditionalOrLongAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
1856 { 1856 {
1857 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1857 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1858 TestObjectPythonV8Internal::conditionalOrLongAttributeAttributeGetter(info); 1858 TestObjectPythonV8Internal::conditionalOrLongAttributeAttributeGetter(info);
1859 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1859 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1860 } 1860 }
1861 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) 1861 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2)
1862 1862
1863 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) 1863 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2)
1864 static void conditionalOrLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal ue, const v8::PropertyCallbackInfo<void>& info) 1864 static void conditionalOrLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
1865 { 1865 {
1866 v8::Handle<v8::Object> holder = info.Holder(); 1866 v8::Handle<v8::Object> holder = info.Holder();
1867 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalOrL ongAttribute", "TestObjectPython", holder, info.GetIsolate()); 1867 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalOrL ongAttribute", "TestObjectPython", holder, info.GetIsolate());
1868 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1868 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1869 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 1869 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
1870 impl->setConditionalOrLongAttribute(cppValue); 1870 impl->setConditionalOrLongAttribute(cppValue);
1871 } 1871 }
1872 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) 1872 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2)
1873 1873
1874 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2) 1874 #if ENABLE(CONDITION_1) || ENABLE(CONDITION_2)
1875 static void conditionalOrLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1875 static void conditionalOrLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1876 { 1876 {
1877 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1877 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1878 TestObjectPythonV8Internal::conditionalOrLongAttributeAttributeSetter(jsValu e, info); 1878 TestObjectPythonV8Internal::conditionalOrLongAttributeAttributeSetter(v8Valu e, info);
1879 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1879 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1880 } 1880 }
1881 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2) 1881 #endif // ENABLE(CONDITION_1) || ENABLE(CONDITION_2)
1882 1882
1883 static void customObjectAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1883 static void customObjectAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1884 { 1884 {
1885 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1885 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1886 V8TestObjectPython::customObjectAttributeAttributeGetterCustom(info); 1886 V8TestObjectPython::customObjectAttributeAttributeGetterCustom(info);
1887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1888 } 1888 }
1889 1889
1890 static void customObjectAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1890 static void customObjectAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1891 { 1891 {
1892 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1892 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1893 V8TestObjectPython::customObjectAttributeAttributeSetterCustom(jsValue, info ); 1893 V8TestObjectPython::customObjectAttributeAttributeSetterCustom(v8Value, info );
1894 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1894 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1895 } 1895 }
1896 1896
1897 static void customGetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 1897 static void customGetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
1898 { 1898 {
1899 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1899 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1900 V8TestObjectPython::customGetterLongAttributeAttributeGetterCustom(info); 1900 V8TestObjectPython::customGetterLongAttributeAttributeGetterCustom(info);
1901 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1901 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1902 } 1902 }
1903 1903
1904 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 1904 static void customGetterLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
1905 { 1905 {
1906 v8::Handle<v8::Object> holder = info.Holder(); 1906 v8::Handle<v8::Object> holder = info.Holder();
1907 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo ngAttribute", "TestObjectPython", holder, info.GetIsolate()); 1907 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterLo ngAttribute", "TestObjectPython", holder, info.GetIsolate());
1908 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1908 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1909 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 1909 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
1910 impl->setCustomGetterLongAttribute(cppValue); 1910 impl->setCustomGetterLongAttribute(cppValue);
1911 } 1911 }
1912 1912
1913 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1913 static void customGetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1914 { 1914 {
1915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1915 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1916 TestObjectPythonV8Internal::customGetterLongAttributeAttributeSetter(jsValue , info); 1916 TestObjectPythonV8Internal::customGetterLongAttributeAttributeSetter(v8Value , info);
1917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1917 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1918 } 1918 }
1919 1919
1920 static void customGetterReadonlyObjectAttributeAttributeGetterCallback(v8::Local <v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1920 static void customGetterReadonlyObjectAttributeAttributeGetterCallback(v8::Local <v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1921 { 1921 {
1922 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1922 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1923 V8TestObjectPython::customGetterReadonlyObjectAttributeAttributeGetterCustom (info); 1923 V8TestObjectPython::customGetterReadonlyObjectAttributeAttributeGetterCustom (info);
1924 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1924 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1925 } 1925 }
1926 1926
1927 static void customSetterLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 1927 static void customSetterLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
1928 { 1928 {
1929 v8::Handle<v8::Object> holder = info.Holder(); 1929 v8::Handle<v8::Object> holder = info.Holder();
1930 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1930 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1931 v8SetReturnValueInt(info, impl->customSetterLongAttribute()); 1931 v8SetReturnValueInt(info, impl->customSetterLongAttribute());
1932 } 1932 }
1933 1933
1934 static void customSetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 1934 static void customSetterLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
1935 { 1935 {
1936 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1936 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1937 TestObjectPythonV8Internal::customSetterLongAttributeAttributeGetter(info); 1937 TestObjectPythonV8Internal::customSetterLongAttributeAttributeGetter(info);
1938 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1938 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1939 } 1939 }
1940 1940
1941 static void customSetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1941 static void customSetterLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1942 { 1942 {
1943 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1943 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1944 V8TestObjectPython::customSetterLongAttributeAttributeSetterCustom(jsValue, info); 1944 V8TestObjectPython::customSetterLongAttributeAttributeSetterCustom(v8Value, info);
1945 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1945 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1946 } 1946 }
1947 1947
1948 #if ENABLE(CONDITION) 1948 #if ENABLE(CONDITION)
1949 static void customLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1949 static void customLongAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1950 { 1950 {
1951 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1951 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1952 V8TestObjectPython::customLongAttributeAttributeGetterCustom(info); 1952 V8TestObjectPython::customLongAttributeAttributeGetterCustom(info);
1953 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1953 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1954 } 1954 }
1955 #endif // ENABLE(CONDITION) 1955 #endif // ENABLE(CONDITION)
1956 1956
1957 #if ENABLE(CONDITION) 1957 #if ENABLE(CONDITION)
1958 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1958 static void customLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1959 { 1959 {
1960 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1960 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1961 V8TestObjectPython::customLongAttributeAttributeSetterCustom(jsValue, info); 1961 V8TestObjectPython::customLongAttributeAttributeSetterCustom(v8Value, info);
1962 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1962 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1963 } 1963 }
1964 #endif // ENABLE(CONDITION) 1964 #endif // ENABLE(CONDITION)
1965 1965
1966 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 1966 static void customElementsCallbacksReadonlyLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
1967 { 1967 {
1968 v8::Handle<v8::Object> holder = info.Holder(); 1968 v8::Handle<v8::Object> holder = info.Holder();
1969 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1969 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
1970 v8SetReturnValueInt(info, impl->customElementsCallbacksReadonlyLongAttribute ()); 1970 v8SetReturnValueInt(info, impl->customElementsCallbacksReadonlyLongAttribute ());
1971 } 1971 }
(...skipping 13 matching lines...) Expand all
1985 } 1985 }
1986 1986
1987 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 1987 static void deprecatedLongAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
1988 { 1988 {
1989 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1989 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1990 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::LongAttribute); 1990 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::LongAttribute);
1991 TestObjectPythonV8Internal::deprecatedLongAttributeAttributeGetter(info); 1991 TestObjectPythonV8Internal::deprecatedLongAttributeAttributeGetter(info);
1992 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1992 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1993 } 1993 }
1994 1994
1995 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 1995 static void deprecatedLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1996 { 1996 {
1997 v8::Handle<v8::Object> holder = info.Holder(); 1997 v8::Handle<v8::Object> holder = info.Holder();
1998 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObjectPython", holder, info.GetIsolate()); 1998 ExceptionState exceptionState(ExceptionState::SetterContext, "deprecatedLong Attribute", "TestObjectPython", holder, info.GetIsolate());
1999 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 1999 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2000 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2000 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2001 impl->setDeprecatedLongAttribute(cppValue); 2001 impl->setDeprecatedLongAttribute(cppValue);
2002 } 2002 }
2003 2003
2004 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2004 static void deprecatedLongAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2005 { 2005 {
2006 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2006 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2007 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::LongAttribute); 2007 UseCounter::countDeprecation(callingExecutionContext(info.GetIsolate()), Use Counter::LongAttribute);
2008 TestObjectPythonV8Internal::deprecatedLongAttributeAttributeSetter(jsValue, info); 2008 TestObjectPythonV8Internal::deprecatedLongAttributeAttributeSetter(v8Value, info);
2009 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2009 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2010 } 2010 }
2011 2011
2012 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 2012 static void enforceRangeLongAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
2013 { 2013 {
2014 v8::Handle<v8::Object> holder = info.Holder(); 2014 v8::Handle<v8::Object> holder = info.Holder();
2015 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2015 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2016 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute()); 2016 v8SetReturnValueInt(info, impl->enforceRangeLongAttribute());
2017 } 2017 }
2018 2018
2019 static void enforceRangeLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 2019 static void enforceRangeLongAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
2020 { 2020 {
2021 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2021 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2022 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeGetter(info); 2022 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeGetter(info);
2023 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2023 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2024 } 2024 }
2025 2025
2026 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 2026 static void enforceRangeLongAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
2027 { 2027 {
2028 v8::Handle<v8::Object> holder = info.Holder(); 2028 v8::Handle<v8::Object> holder = info.Holder();
2029 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo ngAttribute", "TestObjectPython", holder, info.GetIsolate()); 2029 ExceptionState exceptionState(ExceptionState::SetterContext, "enforceRangeLo ngAttribute", "TestObjectPython", holder, info.GetIsolate());
2030 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2030 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2031 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, EnforceRange, exce ptionState), exceptionState); 2031 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, EnforceRange, exce ptionState), exceptionState);
2032 impl->setEnforceRangeLongAttribute(cppValue); 2032 impl->setEnforceRangeLongAttribute(cppValue);
2033 } 2033 }
2034 2034
2035 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2035 static void enforceRangeLongAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2036 { 2036 {
2037 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2037 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2038 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeSetter(jsValue , info); 2038 TestObjectPythonV8Internal::enforceRangeLongAttributeAttributeSetter(v8Value , info);
2039 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2039 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2040 } 2040 }
2041 2041
2042 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info) 2042 static void exposeJSAccessorsLongAttributeAttributeGetter(const v8::FunctionCall backInfo<v8::Value>& info)
2043 { 2043 {
2044 v8::Handle<v8::Object> holder = info.Holder(); 2044 v8::Handle<v8::Object> holder = info.Holder();
2045 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2045 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2046 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute()); 2046 v8SetReturnValueInt(info, impl->exposeJSAccessorsLongAttribute());
2047 } 2047 }
2048 2048
2049 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 2049 static void exposeJSAccessorsLongAttributeAttributeGetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
2050 { 2050 {
2051 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2051 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2052 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(in fo); 2052 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeGetter(in fo);
2053 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2053 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2054 } 2054 }
2055 2055
2056 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> j sValue, const v8::FunctionCallbackInfo<v8::Value>& info) 2056 static void exposeJSAccessorsLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::FunctionCallbackInfo<v8::Value>& info)
2057 { 2057 {
2058 v8::Handle<v8::Object> holder = info.Holder(); 2058 v8::Handle<v8::Object> holder = info.Holder();
2059 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess orsLongAttribute", "TestObjectPython", holder, info.GetIsolate()); 2059 ExceptionState exceptionState(ExceptionState::SetterContext, "exposeJSAccess orsLongAttribute", "TestObjectPython", holder, info.GetIsolate());
2060 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2060 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2061 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2061 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2062 impl->setExposeJSAccessorsLongAttribute(cppValue); 2062 impl->setExposeJSAccessorsLongAttribute(cppValue);
2063 } 2063 }
2064 2064
2065 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info) 2065 static void exposeJSAccessorsLongAttributeAttributeSetterCallback(const v8::Func tionCallbackInfo<v8::Value>& info)
2066 { 2066 {
2067 v8::Local<v8::Value> jsValue = info[0]; 2067 v8::Local<v8::Value> v8Value = info[0];
2068 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2068 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2069 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(js Value, info); 2069 TestObjectPythonV8Internal::exposeJSAccessorsLongAttributeAttributeSetter(v8 Value, info);
2070 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2070 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2071 } 2071 }
2072 2072
2073 static void implementedAsLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 2073 static void implementedAsLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
2074 { 2074 {
2075 v8::Handle<v8::Object> holder = info.Holder(); 2075 v8::Handle<v8::Object> holder = info.Holder();
2076 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2076 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2077 v8SetReturnValueInt(info, impl->implementedAsName()); 2077 v8SetReturnValueInt(info, impl->implementedAsName());
2078 } 2078 }
2079 2079
2080 static void implementedAsLongAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 2080 static void implementedAsLongAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
2081 { 2081 {
2082 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2082 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2083 TestObjectPythonV8Internal::implementedAsLongAttributeAttributeGetter(info); 2083 TestObjectPythonV8Internal::implementedAsLongAttributeAttributeGetter(info);
2084 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2084 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2085 } 2085 }
2086 2086
2087 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal ue, const v8::PropertyCallbackInfo<void>& info) 2087 static void implementedAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
2088 { 2088 {
2089 v8::Handle<v8::Object> holder = info.Holder(); 2089 v8::Handle<v8::Object> holder = info.Holder();
2090 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL ongAttribute", "TestObjectPython", holder, info.GetIsolate()); 2090 ExceptionState exceptionState(ExceptionState::SetterContext, "implementedAsL ongAttribute", "TestObjectPython", holder, info.GetIsolate());
2091 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2091 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2092 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2092 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2093 impl->setImplementedAsName(cppValue); 2093 impl->setImplementedAsName(cppValue);
2094 } 2094 }
2095 2095
2096 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2096 static void implementedAsLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2097 { 2097 {
2098 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2098 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2099 TestObjectPythonV8Internal::implementedAsLongAttributeAttributeSetter(jsValu e, info); 2099 TestObjectPythonV8Internal::implementedAsLongAttributeAttributeSetter(v8Valu e, info);
2100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2101 } 2101 }
2102 2102
2103 static void customImplementedAsLongAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2103 static void customImplementedAsLongAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2104 { 2104 {
2105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2106 V8TestObjectPython::customImplementedAsLongAttributeAttributeGetterCustom(in fo); 2106 V8TestObjectPython::customImplementedAsLongAttributeAttributeGetterCustom(in fo);
2107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2108 } 2108 }
2109 2109
2110 static void customImplementedAsLongAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo) 2110 static void customImplementedAsLongAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
2111 { 2111 {
2112 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2112 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2113 V8TestObjectPython::customImplementedAsLongAttributeAttributeSetterCustom(js Value, info); 2113 V8TestObjectPython::customImplementedAsLongAttributeAttributeSetterCustom(v8 Value, info);
2114 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2114 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2115 } 2115 }
2116 2116
2117 static void customGetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2117 static void customGetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2118 { 2118 {
2119 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2119 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2120 V8TestObjectPython::customGetterImplementedAsLongAttributeAttributeGetterCus tom(info); 2120 V8TestObjectPython::customGetterImplementedAsLongAttributeAttributeGetterCus tom(info);
2121 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2121 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2122 } 2122 }
2123 2123
2124 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8:: Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2124 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2125 { 2125 {
2126 v8::Handle<v8::Object> holder = info.Holder(); 2126 v8::Handle<v8::Object> holder = info.Holder();
2127 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm plementedAsLongAttribute", "TestObjectPython", holder, info.GetIsolate()); 2127 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm plementedAsLongAttribute", "TestObjectPython", holder, info.GetIsolate());
2128 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2128 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2129 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2129 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2130 impl->setImplementedAsNameWithCustomGetter(cppValue); 2130 impl->setImplementedAsNameWithCustomGetter(cppValue);
2131 } 2131 }
2132 2132
2133 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo id>& info) 2133 static void customGetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
2134 { 2134 {
2135 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2135 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2136 TestObjectPythonV8Internal::customGetterImplementedAsLongAttributeAttributeS etter(jsValue, info); 2136 TestObjectPythonV8Internal::customGetterImplementedAsLongAttributeAttributeS etter(v8Value, info);
2137 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2137 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2138 } 2138 }
2139 2139
2140 static void customSetterImplementedAsLongAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info) 2140 static void customSetterImplementedAsLongAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info)
2141 { 2141 {
2142 v8::Handle<v8::Object> holder = info.Holder(); 2142 v8::Handle<v8::Object> holder = info.Holder();
2143 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2143 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2144 v8SetReturnValueInt(info, impl->implementedAsNameWithCustomGetter()); 2144 v8SetReturnValueInt(info, impl->implementedAsNameWithCustomGetter());
2145 } 2145 }
2146 2146
2147 static void customSetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2147 static void customSetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2148 { 2148 {
2149 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2149 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2150 TestObjectPythonV8Internal::customSetterImplementedAsLongAttributeAttributeG etter(info); 2150 TestObjectPythonV8Internal::customSetterImplementedAsLongAttributeAttributeG etter(info);
2151 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2151 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2152 } 2152 }
2153 2153
2154 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo id>& info) 2154 static void customSetterImplementedAsLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
2155 { 2155 {
2156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2156 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2157 V8TestObjectPython::customSetterImplementedAsLongAttributeAttributeSetterCus tom(jsValue, info); 2157 V8TestObjectPython::customSetterImplementedAsLongAttributeAttributeSetterCus tom(v8Value, info);
2158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2158 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2159 } 2159 }
2160 2160
2161 static void measureAsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 2161 static void measureAsLongAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
2162 { 2162 {
2163 v8::Handle<v8::Object> holder = info.Holder(); 2163 v8::Handle<v8::Object> holder = info.Holder();
2164 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2164 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2165 v8SetReturnValueInt(info, impl->measureAsLongAttribute()); 2165 v8SetReturnValueInt(info, impl->measureAsLongAttribute());
2166 } 2166 }
2167 2167
2168 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2168 static void measureAsLongAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2169 { 2169 {
2170 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2170 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2171 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 2171 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature);
2172 TestObjectPythonV8Internal::measureAsLongAttributeAttributeGetter(info); 2172 TestObjectPythonV8Internal::measureAsLongAttributeAttributeGetter(info);
2173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2174 } 2174 }
2175 2175
2176 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2176 static void measureAsLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2177 { 2177 {
2178 v8::Handle<v8::Object> holder = info.Holder(); 2178 v8::Handle<v8::Object> holder = info.Holder();
2179 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObjectPython", holder, info.GetIsolate()); 2179 ExceptionState exceptionState(ExceptionState::SetterContext, "measureAsLongA ttribute", "TestObjectPython", holder, info.GetIsolate());
2180 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2180 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2181 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2181 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2182 impl->setMeasureAsLongAttribute(cppValue); 2182 impl->setMeasureAsLongAttribute(cppValue);
2183 } 2183 }
2184 2184
2185 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2185 static void measureAsLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2186 { 2186 {
2187 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2187 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2188 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature); 2188 UseCounter::count(callingExecutionContext(info.GetIsolate()), UseCounter::Te stFeature);
2189 TestObjectPythonV8Internal::measureAsLongAttributeAttributeSetter(jsValue, i nfo); 2189 TestObjectPythonV8Internal::measureAsLongAttributeAttributeSetter(v8Value, i nfo);
2190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2191 } 2191 }
2192 2192
2193 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info) 2193 static void notEnumerableLongAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
2194 { 2194 {
2195 v8::Handle<v8::Object> holder = info.Holder(); 2195 v8::Handle<v8::Object> holder = info.Holder();
2196 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2196 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2197 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute()); 2197 v8SetReturnValueInt(info, impl->notEnumerableLongAttribute());
2198 } 2198 }
2199 2199
2200 static void notEnumerableLongAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info) 2200 static void notEnumerableLongAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
2201 { 2201 {
2202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2202 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2203 TestObjectPythonV8Internal::notEnumerableLongAttributeAttributeGetter(info); 2203 TestObjectPythonV8Internal::notEnumerableLongAttributeAttributeGetter(info);
2204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2204 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2205 } 2205 }
2206 2206
2207 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> jsVal ue, const v8::PropertyCallbackInfo<void>& info) 2207 static void notEnumerableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
2208 { 2208 {
2209 v8::Handle<v8::Object> holder = info.Holder(); 2209 v8::Handle<v8::Object> holder = info.Holder();
2210 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL ongAttribute", "TestObjectPython", holder, info.GetIsolate()); 2210 ExceptionState exceptionState(ExceptionState::SetterContext, "notEnumerableL ongAttribute", "TestObjectPython", holder, info.GetIsolate());
2211 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2211 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2212 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2212 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2213 impl->setNotEnumerableLongAttribute(cppValue); 2213 impl->setNotEnumerableLongAttribute(cppValue);
2214 } 2214 }
2215 2215
2216 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2216 static void notEnumerableLongAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2217 { 2217 {
2218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2219 TestObjectPythonV8Internal::notEnumerableLongAttributeAttributeSetter(jsValu e, info); 2219 TestObjectPythonV8Internal::notEnumerableLongAttributeAttributeSetter(v8Valu e, info);
2220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2221 } 2221 }
2222 2222
2223 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 2223 static void perContextEnabledLongAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
2224 { 2224 {
2225 v8::Handle<v8::Object> holder = info.Holder(); 2225 v8::Handle<v8::Object> holder = info.Holder();
2226 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2226 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2227 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute()); 2227 v8SetReturnValueInt(info, impl->perContextEnabledLongAttribute());
2228 } 2228 }
2229 2229
2230 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2230 static void perContextEnabledLongAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2231 { 2231 {
2232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2233 TestObjectPythonV8Internal::perContextEnabledLongAttributeAttributeGetter(in fo); 2233 TestObjectPythonV8Internal::perContextEnabledLongAttributeAttributeGetter(in fo);
2234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2235 } 2235 }
2236 2236
2237 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info) 2237 static void perContextEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
2238 { 2238 {
2239 v8::Handle<v8::Object> holder = info.Holder(); 2239 v8::Handle<v8::Object> holder = info.Holder();
2240 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledLongAttribute", "TestObjectPython", holder, info.GetIsolate()); 2240 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledLongAttribute", "TestObjectPython", holder, info.GetIsolate());
2241 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2241 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2242 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2242 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2243 impl->setPerContextEnabledLongAttribute(cppValue); 2243 impl->setPerContextEnabledLongAttribute(cppValue);
2244 } 2244 }
2245 2245
2246 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf o) 2246 static void perContextEnabledLongAttributeAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o)
2247 { 2247 {
2248 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2248 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2249 TestObjectPythonV8Internal::perContextEnabledLongAttributeAttributeSetter(js Value, info); 2249 TestObjectPythonV8Internal::perContextEnabledLongAttributeAttributeSetter(v8 Value, info);
2250 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2250 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2251 } 2251 }
2252 2252
2253 static void perWorldBindingsLongAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 2253 static void perWorldBindingsLongAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
2254 { 2254 {
2255 v8::Handle<v8::Object> holder = info.Holder(); 2255 v8::Handle<v8::Object> holder = info.Holder();
2256 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2256 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2257 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute()); 2257 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute());
2258 } 2258 }
2259 2259
2260 static void perWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 2260 static void perWorldBindingsLongAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
2261 { 2261 {
2262 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2262 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2263 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeGetter(inf o); 2263 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeGetter(inf o);
2264 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2264 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2265 } 2265 }
2266 2266
2267 static void perWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info) 2267 static void perWorldBindingsLongAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
2268 { 2268 {
2269 v8::Handle<v8::Object> holder = info.Holder(); 2269 v8::Handle<v8::Object> holder = info.Holder();
2270 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin gsLongAttribute", "TestObjectPython", holder, info.GetIsolate()); 2270 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin gsLongAttribute", "TestObjectPython", holder, info.GetIsolate());
2271 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2271 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2272 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2272 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2273 impl->setPerWorldBindingsLongAttribute(cppValue); 2273 impl->setPerWorldBindingsLongAttribute(cppValue);
2274 } 2274 }
2275 2275
2276 static void perWorldBindingsLongAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info ) 2276 static void perWorldBindingsLongAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
2277 { 2277 {
2278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2279 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeSetter(jsV alue, info); 2279 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeSetter(v8V alue, info);
2280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2281 } 2281 }
2282 2282
2283 static void perWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::P ropertyCallbackInfo<v8::Value>& info) 2283 static void perWorldBindingsLongAttributeAttributeGetterForMainWorld(const v8::P ropertyCallbackInfo<v8::Value>& info)
2284 { 2284 {
2285 v8::Handle<v8::Object> holder = info.Holder(); 2285 v8::Handle<v8::Object> holder = info.Holder();
2286 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2286 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2287 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute()); 2287 v8SetReturnValueInt(info, impl->perWorldBindingsLongAttribute());
2288 } 2288 }
2289 2289
2290 static void perWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(v8: :Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2290 static void perWorldBindingsLongAttributeAttributeGetterCallbackForMainWorld(v8: :Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2291 { 2291 {
2292 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2292 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2293 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeGetterForM ainWorld(info); 2293 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeGetterForM ainWorld(info);
2294 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2294 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2295 } 2295 }
2296 2296
2297 static void perWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v 8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2297 static void perWorldBindingsLongAttributeAttributeSetterForMainWorld(v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2298 { 2298 {
2299 v8::Handle<v8::Object> holder = info.Holder(); 2299 v8::Handle<v8::Object> holder = info.Holder();
2300 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin gsLongAttribute", "TestObjectPython", holder, info.GetIsolate()); 2300 ExceptionState exceptionState(ExceptionState::SetterContext, "perWorldBindin gsLongAttribute", "TestObjectPython", holder, info.GetIsolate());
2301 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2301 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2302 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2302 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2303 impl->setPerWorldBindingsLongAttribute(cppValue); 2303 impl->setPerWorldBindingsLongAttribute(cppValue);
2304 } 2304 }
2305 2305
2306 static void perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld(v8: :Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo <void>& info) 2306 static void perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld(v8: :Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo <void>& info)
2307 { 2307 {
2308 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2308 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2309 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeSetterForM ainWorld(jsValue, info); 2309 TestObjectPythonV8Internal::perWorldBindingsLongAttributeAttributeSetterForM ainWorld(v8Value, info);
2310 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2310 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2311 } 2311 }
2312 2312
2313 static void perWorldBindingsReadonlyLongAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info) 2313 static void perWorldBindingsReadonlyLongAttributeAttributeGetter(const v8::Prope rtyCallbackInfo<v8::Value>& info)
2314 { 2314 {
2315 v8::Handle<v8::Object> holder = info.Holder(); 2315 v8::Handle<v8::Object> holder = info.Holder();
2316 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2316 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2317 v8SetReturnValueInt(info, impl->perWorldBindingsReadonlyLongAttribute()); 2317 v8SetReturnValueInt(info, impl->perWorldBindingsReadonlyLongAttribute());
2318 } 2318 }
2319 2319
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
2390 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2390 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2391 { 2391 {
2392 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2392 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2393 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2393 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2394 if (contextData && contextData->activityLogger()) 2394 if (contextData && contextData->activityLogger())
2395 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssPerWorldBindingsLongAttribute", 0, 0, "Getter"); 2395 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssPerWorldBindingsLongAttribute", 0, 0, "Getter");
2396 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu teAttributeGetter(info); 2396 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu teAttributeGetter(info);
2397 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2397 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2398 } 2398 }
2399 2399
2400 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2400 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2401 { 2401 {
2402 v8::Handle<v8::Object> holder = info.Holder(); 2402 v8::Handle<v8::Object> holder = info.Holder();
2403 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObjectPython", holder, info.GetIsola te()); 2403 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObjectPython", holder, info.GetIsola te());
2404 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2404 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2405 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2405 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2406 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2406 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2407 } 2407 }
2408 2408
2409 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCal lbackInfo<void>& info) 2409 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
2410 { 2410 {
2411 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2411 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2412 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2412 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2413 if (contextData && contextData->activityLogger()) { 2413 if (contextData && contextData->activityLogger()) {
2414 v8::Handle<v8::Value> loggerArg[] = { jsValue }; 2414 v8::Handle<v8::Value> loggerArg[] = { v8Value };
2415 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); 2415 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter");
2416 } 2416 }
2417 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu teAttributeSetter(jsValue, info); 2417 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu teAttributeSetter(v8Value, info);
2418 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2418 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2419 } 2419 }
2420 2420
2421 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2421 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2422 { 2422 {
2423 v8::Handle<v8::Object> holder = info.Holder(); 2423 v8::Handle<v8::Object> holder = info.Holder();
2424 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2424 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2425 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute()); 2425 v8SetReturnValueInt(info, impl->activityLoggingAccessPerWorldBindingsLongAtt ribute());
2426 } 2426 }
2427 2427
2428 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) 2428 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info)
2429 { 2429 {
2430 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2430 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2431 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2431 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2432 if (contextData && contextData->activityLogger()) 2432 if (contextData && contextData->activityLogger())
2433 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssPerWorldBindingsLongAttribute", 0, 0, "Getter"); 2433 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssPerWorldBindingsLongAttribute", 0, 0, "Getter");
2434 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu teAttributeGetterForMainWorld(info); 2434 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu teAttributeGetterForMainWorld(info);
2435 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2435 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2436 } 2436 }
2437 2437
2438 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo) 2438 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
2439 { 2439 {
2440 v8::Handle<v8::Object> holder = info.Holder(); 2440 v8::Handle<v8::Object> holder = info.Holder();
2441 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObjectPython", holder, info.GetIsola te()); 2441 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessPerWorldBindingsLongAttribute", "TestObjectPython", holder, info.GetIsola te());
2442 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2442 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2443 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2443 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2444 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue); 2444 impl->setActivityLoggingAccessPerWorldBindingsLongAttribute(cppValue);
2445 } 2445 }
2446 2446
2447 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8: :PropertyCallbackInfo<void>& info) 2447 static void activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
2448 { 2448 {
2449 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2449 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2450 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2450 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2451 if (contextData && contextData->activityLogger()) { 2451 if (contextData && contextData->activityLogger()) {
2452 v8::Handle<v8::Value> loggerArg[] = { jsValue }; 2452 v8::Handle<v8::Value> loggerArg[] = { v8Value };
2453 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); 2453 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter");
2454 } 2454 }
2455 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu teAttributeSetterForMainWorld(jsValue, info); 2455 TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribu teAttributeSetterForMainWorld(v8Value, info);
2456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2456 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2457 } 2457 }
2458 2458
2459 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2459 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
2460 { 2460 {
2461 v8::Handle<v8::Object> holder = info.Holder(); 2461 v8::Handle<v8::Object> holder = info.Holder();
2462 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2462 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2463 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2463 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute());
2464 } 2464 }
2465 2465
2466 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) 2466 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info)
2467 { 2467 {
2468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2468 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2469 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2469 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2470 if (contextData && contextData->activityLogger()) 2470 if (contextData && contextData->activityLogger())
2471 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); 2471 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter");
2472 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeGetter(info); 2472 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeGetter(info);
2473 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2473 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2474 } 2474 }
2475 2475
2476 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void >& info) 2476 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2477 { 2477 {
2478 v8::Handle<v8::Object> holder = info.Holder(); 2478 v8::Handle<v8::Object> holder = info.Holder();
2479 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", hold er, info.GetIsolate()); 2479 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", hold er, info.GetIsolate());
2480 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2480 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2481 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2481 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2482 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2482 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2483 } 2483 }
2484 2484
2485 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, cons t v8::PropertyCallbackInfo<void>& info) 2485 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
2486 { 2486 {
2487 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2487 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2488 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2488 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2489 if (contextData && contextData->activityLogger()) { 2489 if (contextData && contextData->activityLogger()) {
2490 v8::Handle<v8::Value> loggerArg[] = { jsValue }; 2490 v8::Handle<v8::Value> loggerArg[] = { v8Value };
2491 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter"); 2491 contextData->activityLogger()->log("TestObjectPython.activityLoggingAcce ssForIsolatedWorldsPerWorldBindingsLongAttribute", 1, &loggerArg[0], "Setter");
2492 } 2492 }
2493 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeSetter(jsValue, info); 2493 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeSetter(v8Value, info);
2494 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2494 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2495 } 2495 }
2496 2496
2497 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2497 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2498 { 2498 {
2499 v8::Handle<v8::Object> holder = info.Holder(); 2499 v8::Handle<v8::Object> holder = info.Holder();
2500 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2500 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2501 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2501 v8SetReturnValueInt(info, impl->activityLoggingAccessForIsolatedWorldsPerWor ldBindingsLongAttribute());
2502 } 2502 }
2503 2503
2504 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall backInfo<v8::Value>& info) 2504 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall backInfo<v8::Value>& info)
2505 { 2505 {
2506 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2506 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2507 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeGetterForMainWorld(info); 2507 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeGetterForMainWorld(info);
2508 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2508 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2509 } 2509 }
2510 2510
2511 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallb ackInfo<void>& info) 2511 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
2512 { 2512 {
2513 v8::Handle<v8::Object> holder = info.Holder(); 2513 v8::Handle<v8::Object> holder = info.Holder();
2514 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", hold er, info.GetIsolate()); 2514 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gAccessForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", hold er, info.GetIsolate());
2515 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2515 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2516 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2516 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2517 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2517 impl->setActivityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2518 } 2518 }
2519 2519
2520 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info) 2520 static void activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
2521 { 2521 {
2522 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2522 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2523 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info); 2523 TestObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeSetterForMainWorld(v8Value, info);
2524 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2524 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2525 } 2525 }
2526 2526
2527 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 2527 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
2528 { 2528 {
2529 v8::Handle<v8::Object> holder = info.Holder(); 2529 v8::Handle<v8::Object> holder = info.Holder();
2530 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2530 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2531 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 2531 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
2532 } 2532 }
2533 2533
2534 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2534 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2535 { 2535 {
2536 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2536 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2537 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2537 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2538 if (contextData && contextData->activityLogger()) 2538 if (contextData && contextData->activityLogger())
2539 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett erPerWorldBindingsLongAttribute", 0, 0, "Getter"); 2539 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett erPerWorldBindingsLongAttribute", 0, 0, "Getter");
2540 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu teAttributeGetter(info); 2540 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu teAttributeGetter(info);
2541 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2541 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2542 } 2542 }
2543 2543
2544 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2544 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2545 { 2545 {
2546 v8::Handle<v8::Object> holder = info.Holder(); 2546 v8::Handle<v8::Object> holder = info.Holder();
2547 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObjectPython", holder, info.GetIsola te()); 2547 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObjectPython", holder, info.GetIsola te());
2548 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2548 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2549 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2549 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2550 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); 2550 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
2551 } 2551 }
2552 2552
2553 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCal lbackInfo<void>& info) 2553 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
2554 { 2554 {
2555 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2555 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2556 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu teAttributeSetter(jsValue, info); 2556 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu teAttributeSetter(v8Value, info);
2557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2557 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2558 } 2558 }
2559 2559
2560 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2560 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterFor MainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2561 { 2561 {
2562 v8::Handle<v8::Object> holder = info.Holder(); 2562 v8::Handle<v8::Object> holder = info.Holder();
2563 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2563 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2564 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute()); 2564 v8SetReturnValueInt(info, impl->activityLoggingGetterPerWorldBindingsLongAtt ribute());
2565 } 2565 }
2566 2566
2567 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info) 2567 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCal lbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Valu e>& info)
2568 { 2568 {
2569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2570 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2570 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2571 if (contextData && contextData->activityLogger()) 2571 if (contextData && contextData->activityLogger())
2572 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett erPerWorldBindingsLongAttribute", 0, 0, "Getter"); 2572 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett erPerWorldBindingsLongAttribute", 0, 0, "Getter");
2573 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu teAttributeGetterForMainWorld(info); 2573 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu teAttributeGetterForMainWorld(info);
2574 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2574 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2575 } 2575 }
2576 2576
2577 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in fo) 2577 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterFor MainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in fo)
2578 { 2578 {
2579 v8::Handle<v8::Object> holder = info.Holder(); 2579 v8::Handle<v8::Object> holder = info.Holder();
2580 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObjectPython", holder, info.GetIsola te()); 2580 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterPerWorldBindingsLongAttribute", "TestObjectPython", holder, info.GetIsola te());
2581 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2581 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2582 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2582 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2583 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue); 2583 impl->setActivityLoggingGetterPerWorldBindingsLongAttribute(cppValue);
2584 } 2584 }
2585 2585
2586 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8: :PropertyCallbackInfo<void>& info) 2586 static void activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCal lbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
2587 { 2587 {
2588 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2588 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2589 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu teAttributeSetterForMainWorld(jsValue, info); 2589 TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribu teAttributeSetterForMainWorld(v8Value, info);
2590 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2590 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2591 } 2591 }
2592 2592
2593 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 2593 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
2594 { 2594 {
2595 v8::Handle<v8::Object> holder = info.Holder(); 2595 v8::Handle<v8::Object> holder = info.Holder();
2596 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2596 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2597 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2597 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute());
2598 } 2598 }
2599 2599
2600 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info) 2600 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8: :Value>& info)
2601 { 2601 {
2602 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2602 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2603 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext()); 2603 V8PerContextData* contextData = V8PerContextData::from(info.GetIsolate()->Ge tCurrentContext());
2604 if (contextData && contextData->activityLogger()) 2604 if (contextData && contextData->activityLogger())
2605 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter"); 2605 contextData->activityLogger()->log("TestObjectPython.activityLoggingGett erForIsolatedWorldsPerWorldBindingsLongAttribute", 0, 0, "Getter");
2606 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeGetter(info); 2606 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeGetter(info);
2607 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2607 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2608 } 2608 }
2609 2609
2610 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void >& info) 2610 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
2611 { 2611 {
2612 v8::Handle<v8::Object> holder = info.Holder(); 2612 v8::Handle<v8::Object> holder = info.Holder();
2613 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", hold er, info.GetIsolate()); 2613 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", hold er, info.GetIsolate());
2614 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2614 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2615 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2615 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2616 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2616 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2617 } 2617 }
2618 2618
2619 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, cons t v8::PropertyCallbackInfo<void>& info) 2619 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
2620 { 2620 {
2621 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2621 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2622 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeSetter(jsValue, info); 2622 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeSetter(v8Value, info);
2623 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2623 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2624 } 2624 }
2625 2625
2626 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info) 2626 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterForMainWorld(const v8::PropertyCallbackInfo<v8::Value>& info)
2627 { 2627 {
2628 v8::Handle<v8::Object> holder = info.Holder(); 2628 v8::Handle<v8::Object> holder = info.Holder();
2629 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2629 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2630 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute()); 2630 v8SetReturnValueInt(info, impl->activityLoggingGetterForIsolatedWorldsPerWor ldBindingsLongAttribute());
2631 } 2631 }
2632 2632
2633 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall backInfo<v8::Value>& info) 2633 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeGetterCallbackForMainWorld(v8::Local<v8::String>, const v8::PropertyCall backInfo<v8::Value>& info)
2634 { 2634 {
2635 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2635 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2636 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeGetterForMainWorld(info); 2636 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeGetterForMainWorld(info);
2637 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2637 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2638 } 2638 }
2639 2639
2640 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> jsValue, const v8::PropertyCallb ackInfo<void>& info) 2640 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterForMainWorld(v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
2641 { 2641 {
2642 v8::Handle<v8::Object> holder = info.Holder(); 2642 v8::Handle<v8::Object> holder = info.Holder();
2643 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", hold er, info.GetIsolate()); 2643 ExceptionState exceptionState(ExceptionState::SetterContext, "activityLoggin gGetterForIsolatedWorldsPerWorldBindingsLongAttribute", "TestObjectPython", hold er, info.GetIsolate());
2644 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2644 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2645 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2645 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2646 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue); 2646 impl->setActivityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute (cppValue);
2647 } 2647 }
2648 2648
2649 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info) 2649 static void activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeA ttributeSetterCallbackForMainWorld(v8::Local<v8::String>, v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
2650 { 2650 {
2651 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2651 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2652 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeSetterForMainWorld(jsValue, info); 2652 TestObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBi ndingsLongAttributeAttributeSetterForMainWorld(v8Value, info);
2653 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2653 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2654 } 2654 }
2655 2655
2656 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo) 2656 static void locationAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& i nfo)
2657 { 2657 {
2658 v8::Handle<v8::Object> holder = info.Holder(); 2658 v8::Handle<v8::Object> holder = info.Holder();
2659 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2659 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2660 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl); 2660 v8SetReturnValueFast(info, WTF::getPtr(impl->location()), impl);
2661 } 2661 }
2662 2662
2663 static void locationAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro pertyCallbackInfo<v8::Value>& info) 2663 static void locationAttributeGetterCallback(v8::Local<v8::String>, const v8::Pro pertyCallbackInfo<v8::Value>& info)
2664 { 2664 {
2665 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2665 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2666 TestObjectPythonV8Internal::locationAttributeGetter(info); 2666 TestObjectPythonV8Internal::locationAttributeGetter(info);
2667 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2667 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2668 } 2668 }
2669 2669
2670 static void locationAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Prop ertyCallbackInfo<void>& info) 2670 static void locationAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Prop ertyCallbackInfo<void>& info)
2671 { 2671 {
2672 v8::Handle<v8::Object> holder = info.Holder(); 2672 v8::Handle<v8::Object> holder = info.Holder();
2673 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder); 2673 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder);
2674 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->location()); 2674 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->location());
2675 if (!impl) 2675 if (!impl)
2676 return; 2676 return;
2677 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 2677 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
2678 impl->setHref(cppValue); 2678 impl->setHref(cppValue);
2679 } 2679 }
2680 2680
2681 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8: :Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2681 static void locationAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8: :Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2682 { 2682 {
2683 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2683 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2684 TestObjectPythonV8Internal::locationAttributeSetter(jsValue, info); 2684 TestObjectPythonV8Internal::locationAttributeSetter(v8Value, info);
2685 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2685 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2686 } 2686 }
2687 2687
2688 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 2688 static void locationWithExceptionAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
2689 { 2689 {
2690 v8::Handle<v8::Object> holder = info.Holder(); 2690 v8::Handle<v8::Object> holder = info.Holder();
2691 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2691 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2692 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithException()), impl) ; 2692 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithException()), impl) ;
2693 } 2693 }
2694 2694
2695 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2695 static void locationWithExceptionAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2696 { 2696 {
2697 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2697 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2698 TestObjectPythonV8Internal::locationWithExceptionAttributeGetter(info); 2698 TestObjectPythonV8Internal::locationWithExceptionAttributeGetter(info);
2699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2700 } 2700 }
2701 2701
2702 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> jsValue, c onst v8::PropertyCallbackInfo<void>& info) 2702 static void locationWithExceptionAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
2703 { 2703 {
2704 v8::Handle<v8::Object> holder = info.Holder(); 2704 v8::Handle<v8::Object> holder = info.Holder();
2705 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder); 2705 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder);
2706 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithException()); 2706 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithException());
2707 if (!impl) 2707 if (!impl)
2708 return; 2708 return;
2709 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 2709 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
2710 impl->setHrefThrows(cppValue); 2710 impl->setHrefThrows(cppValue);
2711 } 2711 }
2712 2712
2713 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2713 static void locationWithExceptionAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2714 { 2714 {
2715 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2715 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2716 TestObjectPythonV8Internal::locationWithExceptionAttributeSetter(jsValue, in fo); 2716 TestObjectPythonV8Internal::locationWithExceptionAttributeSetter(v8Value, in fo);
2717 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2717 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2718 } 2718 }
2719 2719
2720 static void locationWithCallWithAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 2720 static void locationWithCallWithAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
2721 { 2721 {
2722 v8::Handle<v8::Object> holder = info.Holder(); 2722 v8::Handle<v8::Object> holder = info.Holder();
2723 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2723 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2724 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithCallWith()), impl); 2724 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithCallWith()), impl);
2725 } 2725 }
2726 2726
2727 static void locationWithCallWithAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 2727 static void locationWithCallWithAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
2728 { 2728 {
2729 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2729 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2730 TestObjectPythonV8Internal::locationWithCallWithAttributeGetter(info); 2730 TestObjectPythonV8Internal::locationWithCallWithAttributeGetter(info);
2731 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2731 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2732 } 2732 }
2733 2733
2734 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info) 2734 static void locationWithCallWithAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
2735 { 2735 {
2736 v8::Handle<v8::Object> holder = info.Holder(); 2736 v8::Handle<v8::Object> holder = info.Holder();
2737 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder); 2737 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder);
2738 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallWith()); 2738 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithCallWith());
2739 if (!impl) 2739 if (!impl)
2740 return; 2740 return;
2741 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 2741 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
2742 impl->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow( info.GetIsolate()), cppValue); 2742 impl->setHrefCallWith(callingDOMWindow(info.GetIsolate()), enteredDOMWindow( info.GetIsolate()), cppValue);
2743 } 2743 }
2744 2744
2745 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2745 static void locationWithCallWithAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2746 { 2746 {
2747 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2747 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2748 TestObjectPythonV8Internal::locationWithCallWithAttributeSetter(jsValue, inf o); 2748 TestObjectPythonV8Internal::locationWithCallWithAttributeSetter(v8Value, inf o);
2749 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2749 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2750 } 2750 }
2751 2751
2752 static void locationWithPerWorldBindingsAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 2752 static void locationWithPerWorldBindingsAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
2753 { 2753 {
2754 v8::Handle<v8::Object> holder = info.Holder(); 2754 v8::Handle<v8::Object> holder = info.Holder();
2755 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2755 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2756 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithPerWorldBindings()) , impl); 2756 v8SetReturnValueFast(info, WTF::getPtr(impl->locationWithPerWorldBindings()) , impl);
2757 } 2757 }
2758 2758
2759 static void locationWithPerWorldBindingsAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 2759 static void locationWithPerWorldBindingsAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
2760 { 2760 {
2761 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2761 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2762 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetter(info ); 2762 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetter(info );
2763 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2763 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2764 } 2764 }
2765 2765
2766 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> jsV alue, const v8::PropertyCallbackInfo<void>& info) 2766 static void locationWithPerWorldBindingsAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
2767 { 2767 {
2768 v8::Handle<v8::Object> holder = info.Holder(); 2768 v8::Handle<v8::Object> holder = info.Holder();
2769 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder); 2769 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder);
2770 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings( )); 2770 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings( ));
2771 if (!impl) 2771 if (!impl)
2772 return; 2772 return;
2773 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 2773 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
2774 impl->setHref(cppValue); 2774 impl->setHref(cppValue);
2775 } 2775 }
2776 2776
2777 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2777 static void locationWithPerWorldBindingsAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2778 { 2778 {
2779 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2779 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2780 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetter(jsVa lue, info); 2780 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetter(v8Va lue, info);
2781 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2781 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2782 } 2782 }
2783 2783
2784 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Pr opertyCallbackInfo<v8::Value>& info) 2784 static void locationWithPerWorldBindingsAttributeGetterForMainWorld(const v8::Pr opertyCallbackInfo<v8::Value>& info)
2785 { 2785 {
2786 v8::Handle<v8::Object> holder = info.Holder(); 2786 v8::Handle<v8::Object> holder = info.Holder();
2787 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2787 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2788 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->locationWithPerWorldBin dings())); 2788 v8SetReturnValueForMainWorld(info, WTF::getPtr(impl->locationWithPerWorldBin dings()));
2789 } 2789 }
2790 2790
2791 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2791 static void locationWithPerWorldBindingsAttributeGetterCallbackForMainWorld(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2792 { 2792 {
2793 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2793 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2794 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetterForMa inWorld(info); 2794 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeGetterForMa inWorld(info);
2795 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2795 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2796 } 2796 }
2797 2797
2798 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2798 static void locationWithPerWorldBindingsAttributeSetterForMainWorld(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2799 { 2799 {
2800 v8::Handle<v8::Object> holder = info.Holder(); 2800 v8::Handle<v8::Object> holder = info.Holder();
2801 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder); 2801 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder);
2802 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings( )); 2802 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationWithPerWorldBindings( ));
2803 if (!impl) 2803 if (!impl)
2804 return; 2804 return;
2805 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 2805 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
2806 impl->setHref(cppValue); 2806 impl->setHref(cppValue);
2807 } 2807 }
2808 2808
2809 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info) 2809 static void locationWithPerWorldBindingsAttributeSetterCallbackForMainWorld(v8:: Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info)
2810 { 2810 {
2811 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2811 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2812 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetterForMa inWorld(jsValue, info); 2812 TestObjectPythonV8Internal::locationWithPerWorldBindingsAttributeSetterForMa inWorld(v8Value, info);
2813 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2813 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2814 } 2814 }
2815 2815
2816 static void locationWillBeGarbageCollectedAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 2816 static void locationWillBeGarbageCollectedAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
2817 { 2817 {
2818 v8::Handle<v8::Object> holder = info.Holder(); 2818 v8::Handle<v8::Object> holder = info.Holder();
2819 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2819 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2820 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> result(impl->locatio nWillBeGarbageCollected()); 2820 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> result(impl->locatio nWillBeGarbageCollected());
2821 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceWillBeG arbageCollected>(info.GetReturnValue(), result.get())) 2821 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceWillBeG arbageCollected>(info.GetReturnValue(), result.get()))
2822 return; 2822 return;
2823 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate() ); 2823 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate() );
2824 if (!wrapper.IsEmpty()) { 2824 if (!wrapper.IsEmpty()) {
2825 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "locationWillBeGarbageCollected"), wrapper); 2825 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "locationWillBeGarbageCollected"), wrapper);
2826 v8SetReturnValue(info, wrapper); 2826 v8SetReturnValue(info, wrapper);
2827 } 2827 }
2828 } 2828 }
2829 2829
2830 static void locationWillBeGarbageCollectedAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2830 static void locationWillBeGarbageCollectedAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2831 { 2831 {
2832 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2832 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2833 TestObjectPythonV8Internal::locationWillBeGarbageCollectedAttributeGetter(in fo); 2833 TestObjectPythonV8Internal::locationWillBeGarbageCollectedAttributeGetter(in fo);
2834 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2834 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2835 } 2835 }
2836 2836
2837 static void locationWillBeGarbageCollectedAttributeSetter(v8::Local<v8::Value> j sValue, const v8::PropertyCallbackInfo<void>& info) 2837 static void locationWillBeGarbageCollectedAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
2838 { 2838 {
2839 v8::Handle<v8::Object> holder = info.Holder(); 2839 v8::Handle<v8::Object> holder = info.Holder();
2840 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder); 2840 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder);
2841 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = WTF::getPtr(p roxyImpl->locationWillBeGarbageCollected()); 2841 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = WTF::getPtr(p roxyImpl->locationWillBeGarbageCollected());
2842 if (!impl) 2842 if (!impl)
2843 return; 2843 return;
2844 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), jsValue)); 2844 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value));
2845 impl->setAttr1(WTF::getPtr(cppValue)); 2845 impl->setAttr1(WTF::getPtr(cppValue));
2846 } 2846 }
2847 2847
2848 static void locationWillBeGarbageCollectedAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& inf o) 2848 static void locationWillBeGarbageCollectedAttributeSetterCallback(v8::Local<v8:: String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& inf o)
2849 { 2849 {
2850 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2850 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2851 TestObjectPythonV8Internal::locationWillBeGarbageCollectedAttributeSetter(js Value, info); 2851 TestObjectPythonV8Internal::locationWillBeGarbageCollectedAttributeSetter(v8 Value, info);
2852 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2852 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2853 } 2853 }
2854 2854
2855 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 2855 static void raisesExceptionLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
2856 { 2856 {
2857 v8::Handle<v8::Object> holder = info.Holder(); 2857 v8::Handle<v8::Object> holder = info.Holder();
2858 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2858 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2859 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nLongAttribute", "TestObjectPython", holder, info.GetIsolate()); 2859 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nLongAttribute", "TestObjectPython", holder, info.GetIsolate());
2860 int jsValue = impl->raisesExceptionLongAttribute(exceptionState); 2860 int v8Value = impl->raisesExceptionLongAttribute(exceptionState);
2861 if (UNLIKELY(exceptionState.throwIfNeeded())) 2861 if (UNLIKELY(exceptionState.throwIfNeeded()))
2862 return; 2862 return;
2863 v8SetReturnValueInt(info, jsValue); 2863 v8SetReturnValueInt(info, v8Value);
2864 } 2864 }
2865 2865
2866 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 2866 static void raisesExceptionLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
2867 { 2867 {
2868 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2868 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2869 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeGetter(info ); 2869 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeGetter(info );
2870 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2870 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2871 } 2871 }
2872 2872
2873 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> jsV alue, const v8::PropertyCallbackInfo<void>& info) 2873 static void raisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
2874 { 2874 {
2875 v8::Handle<v8::Object> holder = info.Holder(); 2875 v8::Handle<v8::Object> holder = info.Holder();
2876 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nLongAttribute", "TestObjectPython", holder, info.GetIsolate()); 2876 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nLongAttribute", "TestObjectPython", holder, info.GetIsolate());
2877 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2877 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2878 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2878 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2879 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState); 2879 impl->setRaisesExceptionLongAttribute(cppValue, exceptionState);
2880 exceptionState.throwIfNeeded(); 2880 exceptionState.throwIfNeeded();
2881 } 2881 }
2882 2882
2883 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2883 static void raisesExceptionLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2884 { 2884 {
2885 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2885 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2886 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeSetter(jsVa lue, info); 2886 TestObjectPythonV8Internal::raisesExceptionLongAttributeAttributeSetter(v8Va lue, info);
2887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2888 } 2888 }
2889 2889
2890 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 2890 static void raisesExceptionGetterLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
2891 { 2891 {
2892 v8::Handle<v8::Object> holder = info.Holder(); 2892 v8::Handle<v8::Object> holder = info.Holder();
2893 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2893 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2894 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nGetterLongAttribute", "TestObjectPython", holder, info.GetIsolate()); 2894 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nGetterLongAttribute", "TestObjectPython", holder, info.GetIsolate());
2895 int jsValue = impl->raisesExceptionGetterLongAttribute(exceptionState); 2895 int v8Value = impl->raisesExceptionGetterLongAttribute(exceptionState);
2896 if (UNLIKELY(exceptionState.throwIfNeeded())) 2896 if (UNLIKELY(exceptionState.throwIfNeeded()))
2897 return; 2897 return;
2898 v8SetReturnValueInt(info, jsValue); 2898 v8SetReturnValueInt(info, v8Value);
2899 } 2899 }
2900 2900
2901 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2901 static void raisesExceptionGetterLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2902 { 2902 {
2903 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2903 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2904 TestObjectPythonV8Internal::raisesExceptionGetterLongAttributeAttributeGette r(info); 2904 TestObjectPythonV8Internal::raisesExceptionGetterLongAttributeAttributeGette r(info);
2905 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2905 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2906 } 2906 }
2907 2907
2908 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu e> jsValue, const v8::PropertyCallbackInfo<void>& info) 2908 static void raisesExceptionGetterLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
2909 { 2909 {
2910 v8::Handle<v8::Object> holder = info.Holder(); 2910 v8::Handle<v8::Object> holder = info.Holder();
2911 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nGetterLongAttribute", "TestObjectPython", holder, info.GetIsolate()); 2911 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nGetterLongAttribute", "TestObjectPython", holder, info.GetIsolate());
2912 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2912 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2913 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2913 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2914 impl->setRaisesExceptionGetterLongAttribute(cppValue); 2914 impl->setRaisesExceptionGetterLongAttribute(cppValue);
2915 } 2915 }
2916 2916
2917 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2917 static void raisesExceptionGetterLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2918 { 2918 {
2919 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2919 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2920 TestObjectPythonV8Internal::raisesExceptionGetterLongAttributeAttributeSette r(jsValue, info); 2920 TestObjectPythonV8Internal::raisesExceptionGetterLongAttributeAttributeSette r(v8Value, info);
2921 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2921 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2922 } 2922 }
2923 2923
2924 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 2924 static void setterRaisesExceptionLongAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
2925 { 2925 {
2926 v8::Handle<v8::Object> holder = info.Holder(); 2926 v8::Handle<v8::Object> holder = info.Holder();
2927 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2927 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2928 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute()); 2928 v8SetReturnValueInt(info, impl->setterRaisesExceptionLongAttribute());
2929 } 2929 }
2930 2930
2931 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2931 static void setterRaisesExceptionLongAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2932 { 2932 {
2933 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2933 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2934 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeGette r(info); 2934 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeGette r(info);
2935 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2935 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2936 } 2936 }
2937 2937
2938 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> jsValue, const v8::PropertyCallbackInfo<void>& info) 2938 static void setterRaisesExceptionLongAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
2939 { 2939 {
2940 v8::Handle<v8::Object> holder = info.Holder(); 2940 v8::Handle<v8::Object> holder = info.Holder();
2941 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx ceptionLongAttribute", "TestObjectPython", holder, info.GetIsolate()); 2941 ExceptionState exceptionState(ExceptionState::SetterContext, "setterRaisesEx ceptionLongAttribute", "TestObjectPython", holder, info.GetIsolate());
2942 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2942 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2943 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 2943 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
2944 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState); 2944 impl->setSetterRaisesExceptionLongAttribute(cppValue, exceptionState);
2945 exceptionState.throwIfNeeded(); 2945 exceptionState.throwIfNeeded();
2946 } 2946 }
2947 2947
2948 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2948 static void setterRaisesExceptionLongAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2949 { 2949 {
2950 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2950 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2951 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeSette r(jsValue, info); 2951 TestObjectPythonV8Internal::setterRaisesExceptionLongAttributeAttributeSette r(v8Value, info);
2952 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2952 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2953 } 2953 }
2954 2954
2955 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info) 2955 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info)
2956 { 2956 {
2957 v8::Handle<v8::Object> holder = info.Holder(); 2957 v8::Handle<v8::Object> holder = info.Holder();
2958 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2958 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2959 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObjectPython", holder, info.GetIsolate()); 2959 ExceptionState exceptionState(ExceptionState::GetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObjectPython", holder, info.GetIsolate());
2960 RefPtr<TestInterfaceEmpty> jsValue = impl->raisesExceptionTestInterfaceEmpty Attribute(exceptionState); 2960 RefPtr<TestInterfaceEmpty> v8Value = impl->raisesExceptionTestInterfaceEmpty Attribute(exceptionState);
2961 if (UNLIKELY(exceptionState.throwIfNeeded())) 2961 if (UNLIKELY(exceptionState.throwIfNeeded()))
2962 return; 2962 return;
2963 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), impl); 2963 v8SetReturnValueFast(info, WTF::getPtr(v8Value.release()), impl);
2964 } 2964 }
2965 2965
2966 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2966 static void raisesExceptionTestInterfaceEmptyAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2967 { 2967 {
2968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2969 TestObjectPythonV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttrib uteGetter(info); 2969 TestObjectPythonV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttrib uteGetter(info);
2970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2971 } 2971 }
2972 2972
2973 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local< v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2973 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
2974 { 2974 {
2975 v8::Handle<v8::Object> holder = info.Holder(); 2975 v8::Handle<v8::Object> holder = info.Holder();
2976 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObjectPython", holder, info.GetIsolate()); 2976 ExceptionState exceptionState(ExceptionState::SetterContext, "raisesExceptio nTestInterfaceEmptyAttribute", "TestObjectPython", holder, info.GetIsolate());
2977 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2977 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2978 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ eWithTypeCheck(info.GetIsolate(), jsValue)); 2978 V8TRYCATCH_VOID(TestInterfaceEmpty*, cppValue, V8TestInterfaceEmpty::toNativ eWithTypeCheck(info.GetIsolate(), v8Value));
2979 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e xceptionState); 2979 impl->setRaisesExceptionTestInterfaceEmptyAttribute(WTF::getPtr(cppValue), e xceptionState);
2980 exceptionState.throwIfNeeded(); 2980 exceptionState.throwIfNeeded();
2981 } 2981 }
2982 2982
2983 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInf o<void>& info) 2983 static void raisesExceptionTestInterfaceEmptyAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
2984 { 2984 {
2985 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 2985 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2986 TestObjectPythonV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttrib uteSetter(jsValue, info); 2986 TestObjectPythonV8Internal::raisesExceptionTestInterfaceEmptyAttributeAttrib uteSetter(v8Value, info);
2987 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2987 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2988 } 2988 }
2989 2989
2990 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons t v8::PropertyCallbackInfo<v8::Value>& info) 2990 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetter(cons t v8::PropertyCallbackInfo<v8::Value>& info)
2991 { 2991 {
2992 v8::Handle<v8::Object> holder = info.Holder(); 2992 v8::Handle<v8::Object> holder = info.Holder();
2993 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedAttributeRaisesExceptionGetterAnyAttribute"); 2993 v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cac hedAttributeRaisesExceptionGetterAnyAttribute");
2994 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 2994 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
2995 if (!impl->isValueDirty()) { 2995 if (!impl->isValueDirty()) {
2996 v8::Handle<v8::Value> jsValue = V8HiddenValue::getHiddenValue(info.GetIs olate(), holder, propertyName); 2996 v8::Handle<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIs olate(), holder, propertyName);
2997 if (!jsValue.IsEmpty()) { 2997 if (!v8Value.IsEmpty()) {
2998 v8SetReturnValue(info, jsValue); 2998 v8SetReturnValue(info, v8Value);
2999 return; 2999 return;
3000 } 3000 }
3001 } 3001 }
3002 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObjectPython", holder, info.GetIsolate ()); 3002 ExceptionState exceptionState(ExceptionState::GetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObjectPython", holder, info.GetIsolate ());
3003 ScriptValue jsValue = impl->cachedAttributeRaisesExceptionGetterAnyAttribute (exceptionState); 3003 ScriptValue v8Value = impl->cachedAttributeRaisesExceptionGetterAnyAttribute (exceptionState);
3004 if (UNLIKELY(exceptionState.throwIfNeeded())) 3004 if (UNLIKELY(exceptionState.throwIfNeeded()))
3005 return; 3005 return;
3006 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, jsVal ue.v8Value()); 3006 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, v8Val ue.v8Value());
3007 v8SetReturnValue(info, jsValue.v8Value()); 3007 v8SetReturnValue(info, v8Value.v8Value());
3008 } 3008 }
3009 3009
3010 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb ack(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3010 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeGetterCallb ack(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3011 { 3011 {
3012 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3012 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3013 TestObjectPythonV8Internal::cachedAttributeRaisesExceptionGetterAnyAttribute AttributeGetter(info); 3013 TestObjectPythonV8Internal::cachedAttributeRaisesExceptionGetterAnyAttribute AttributeGetter(info);
3014 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3014 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3015 } 3015 }
3016 3016
3017 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8:: Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3017 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetter(v8:: Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3018 { 3018 {
3019 v8::Handle<v8::Object> holder = info.Holder(); 3019 v8::Handle<v8::Object> holder = info.Holder();
3020 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObjectPython", holder, info.GetIsolate ()); 3020 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedAttribut eRaisesExceptionGetterAnyAttribute", "TestObjectPython", holder, info.GetIsolate ());
3021 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3021 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3022 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(jsValue, info.GetIsolate( ))); 3022 V8TRYCATCH_VOID(ScriptValue, cppValue, ScriptValue(v8Value, info.GetIsolate( )));
3023 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio nState); 3023 impl->setCachedAttributeRaisesExceptionGetterAnyAttribute(cppValue, exceptio nState);
3024 exceptionState.throwIfNeeded(); 3024 exceptionState.throwIfNeeded();
3025 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval idate the cached value. 3025 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i nfo.GetIsolate(), "cachedAttributeRaisesExceptionGetterAnyAttribute")); // Inval idate the cached value.
3026 } 3026 }
3027 3027
3028 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb ack(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallb ackInfo<void>& info) 3028 static void cachedAttributeRaisesExceptionGetterAnyAttributeAttributeSetterCallb ack(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallb ackInfo<void>& info)
3029 { 3029 {
3030 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3030 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3031 TestObjectPythonV8Internal::cachedAttributeRaisesExceptionGetterAnyAttribute AttributeSetter(jsValue, info); 3031 TestObjectPythonV8Internal::cachedAttributeRaisesExceptionGetterAnyAttribute AttributeSetter(v8Value, info);
3032 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3032 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3033 } 3033 }
3034 3034
3035 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 3035 static void reflectTestInterfaceAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
3036 { 3036 {
3037 v8::Handle<v8::Object> holder = info.Holder(); 3037 v8::Handle<v8::Object> holder = info.Holder();
3038 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3038 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3039 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lecttestinterfaceattributeAttr)), impl); 3039 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lecttestinterfaceattributeAttr)), impl);
3040 } 3040 }
3041 3041
3042 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 3042 static void reflectTestInterfaceAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
3043 { 3043 {
3044 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3044 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3045 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeGetter(inf o); 3045 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeGetter(inf o);
3046 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3046 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3047 } 3047 }
3048 3048
3049 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info) 3049 static void reflectTestInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
3050 { 3050 {
3051 v8::Handle<v8::Object> holder = info.Holder(); 3051 v8::Handle<v8::Object> holder = info.Holder();
3052 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3052 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3053 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC heck(info.GetIsolate(), jsValue)); 3053 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC heck(info.GetIsolate(), v8Value));
3054 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3054 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3055 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr (cppValue)); 3055 impl->setAttribute(HTMLNames::reflecttestinterfaceattributeAttr, WTF::getPtr (cppValue));
3056 } 3056 }
3057 3057
3058 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info ) 3058 static void reflectTestInterfaceAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
3059 { 3059 {
3060 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3060 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3061 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3061 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3062 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeSetter(jsV alue, info); 3062 TestObjectPythonV8Internal::reflectTestInterfaceAttributeAttributeSetter(v8V alue, info);
3063 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3063 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3064 } 3064 }
3065 3065
3066 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info) 3066 static void reflectReflectedNameAttributeTestAttributeAttributeGetter(const v8:: PropertyCallbackInfo<v8::Value>& info)
3067 { 3067 {
3068 v8::Handle<v8::Object> holder = info.Holder(); 3068 v8::Handle<v8::Object> holder = info.Holder();
3069 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3069 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3070 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lectedNameAttributeAttr)), impl); 3070 v8SetReturnValueFast(info, WTF::getPtr(impl->fastGetAttribute(HTMLNames::ref lectedNameAttributeAttr)), impl);
3071 } 3071 }
3072 3072
3073 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3073 static void reflectReflectedNameAttributeTestAttributeAttributeGetterCallback(v8 ::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3074 { 3074 {
3075 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3075 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3076 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib uteGetter(info); 3076 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib uteGetter(info);
3077 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3077 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3078 } 3078 }
3079 3079
3080 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3080 static void reflectReflectedNameAttributeTestAttributeAttributeSetter(v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3081 { 3081 {
3082 v8::Handle<v8::Object> holder = info.Holder(); 3082 v8::Handle<v8::Object> holder = info.Holder();
3083 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3083 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3084 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC heck(info.GetIsolate(), jsValue)); 3084 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC heck(info.GetIsolate(), v8Value));
3085 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3085 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3086 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal ue)); 3086 impl->setAttribute(HTMLNames::reflectedNameAttributeAttr, WTF::getPtr(cppVal ue));
3087 } 3087 }
3088 3088
3089 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInf o<void>& info) 3089 static void reflectReflectedNameAttributeTestAttributeAttributeSetterCallback(v8 ::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf o<void>& info)
3090 { 3090 {
3091 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3091 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3092 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3092 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3093 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib uteSetter(jsValue, info); 3093 TestObjectPythonV8Internal::reflectReflectedNameAttributeTestAttributeAttrib uteSetter(v8Value, info);
3094 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3094 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3095 } 3095 }
3096 3096
3097 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info) 3097 static void reflectBooleanAttributeAttributeGetter(const v8::PropertyCallbackInf o<v8::Value>& info)
3098 { 3098 {
3099 v8::Handle<v8::Object> holder = info.Holder(); 3099 v8::Handle<v8::Object> holder = info.Holder();
3100 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3100 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3101 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana ttributeAttr)); 3101 v8SetReturnValueBool(info, impl->fastHasAttribute(HTMLNames::reflectbooleana ttributeAttr));
3102 } 3102 }
3103 3103
3104 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 3104 static void reflectBooleanAttributeAttributeGetterCallback(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
3105 { 3105 {
3106 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3106 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3107 TestObjectPythonV8Internal::reflectBooleanAttributeAttributeGetter(info); 3107 TestObjectPythonV8Internal::reflectBooleanAttributeAttributeGetter(info);
3108 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3108 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3109 } 3109 }
3110 3110
3111 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3111 static void reflectBooleanAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3112 { 3112 {
3113 v8::Handle<v8::Object> holder = info.Holder(); 3113 v8::Handle<v8::Object> holder = info.Holder();
3114 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3114 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3115 V8TRYCATCH_VOID(bool, cppValue, jsValue->BooleanValue()); 3115 V8TRYCATCH_VOID(bool, cppValue, v8Value->BooleanValue());
3116 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3116 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3117 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue); 3117 impl->setBooleanAttribute(HTMLNames::reflectbooleanattributeAttr, cppValue);
3118 } 3118 }
3119 3119
3120 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3120 static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String> , v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3121 { 3121 {
3122 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3122 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3123 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3123 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3124 TestObjectPythonV8Internal::reflectBooleanAttributeAttributeSetter(jsValue, info); 3124 TestObjectPythonV8Internal::reflectBooleanAttributeAttributeSetter(v8Value, info);
3125 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3125 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3126 } 3126 }
3127 3127
3128 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 3128 static void reflectLongAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
3129 { 3129 {
3130 v8::Handle<v8::Object> holder = info.Holder(); 3130 v8::Handle<v8::Object> holder = info.Holder();
3131 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3131 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3132 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga ttributeAttr)); 3132 v8SetReturnValueInt(info, impl->getIntegralAttribute(HTMLNames::reflectlonga ttributeAttr));
3133 } 3133 }
3134 3134
3135 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 3135 static void reflectLongAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
3136 { 3136 {
3137 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3137 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3138 TestObjectPythonV8Internal::reflectLongAttributeAttributeGetter(info); 3138 TestObjectPythonV8Internal::reflectLongAttributeAttributeGetter(info);
3139 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3139 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3140 } 3140 }
3141 3141
3142 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue, co nst v8::PropertyCallbackInfo<void>& info) 3142 static void reflectLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
3143 { 3143 {
3144 v8::Handle<v8::Object> holder = info.Holder(); 3144 v8::Handle<v8::Object> holder = info.Holder();
3145 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObjectPython", holder, info.GetIsolate()); 3145 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectLongAtt ribute", "TestObjectPython", holder, info.GetIsolate());
3146 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3146 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3147 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 3147 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
3148 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3148 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3149 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue); 3149 impl->setIntegralAttribute(HTMLNames::reflectlongattributeAttr, cppValue);
3150 } 3150 }
3151 3151
3152 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3152 static void reflectLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3153 { 3153 {
3154 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3154 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3155 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3155 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3156 TestObjectPythonV8Internal::reflectLongAttributeAttributeSetter(jsValue, inf o); 3156 TestObjectPythonV8Internal::reflectLongAttributeAttributeSetter(v8Value, inf o);
3157 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3157 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3158 } 3158 }
3159 3159
3160 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info) 3160 static void reflectUnsignedShortAttributeAttributeGetter(const v8::PropertyCallb ackInfo<v8::Value>& info)
3161 { 3161 {
3162 v8::Handle<v8::Object> holder = info.Holder(); 3162 v8::Handle<v8::Object> holder = info.Holder();
3163 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3163 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3164 v8SetReturnValueUnsigned(info, std::max(0, impl->fastGetAttribute(HTMLNames: :reflectunsignedshortattributeAttr))); 3164 v8SetReturnValueUnsigned(info, std::max(0, impl->fastGetAttribute(HTMLNames: :reflectunsignedshortattributeAttr)));
3165 } 3165 }
3166 3166
3167 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info) 3167 static void reflectUnsignedShortAttributeAttributeGetterCallback(v8::Local<v8::S tring>, const v8::PropertyCallbackInfo<v8::Value>& info)
3168 { 3168 {
3169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3170 TestObjectPythonV8Internal::reflectUnsignedShortAttributeAttributeGetter(inf o); 3170 TestObjectPythonV8Internal::reflectUnsignedShortAttributeAttributeGetter(inf o);
3171 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3171 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3172 } 3172 }
3173 3173
3174 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> js Value, const v8::PropertyCallbackInfo<void>& info) 3174 static void reflectUnsignedShortAttributeAttributeSetter(v8::Local<v8::Value> v8 Value, const v8::PropertyCallbackInfo<void>& info)
3175 { 3175 {
3176 v8::Handle<v8::Object> holder = info.Holder(); 3176 v8::Handle<v8::Object> holder = info.Holder();
3177 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObjectPython", holder, info.GetIsolate()); 3177 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dShortAttribute", "TestObjectPython", holder, info.GetIsolate());
3178 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3178 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3179 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(jsValue, exceptionSta te), exceptionState); 3179 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt16(v8Value, exceptionSta te), exceptionState);
3180 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3180 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3181 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue); 3181 impl->setAttribute(HTMLNames::reflectunsignedshortattributeAttr, cppValue);
3182 } 3182 }
3183 3183
3184 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info ) 3184 static void reflectUnsignedShortAttributeAttributeSetterCallback(v8::Local<v8::S tring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
3185 { 3185 {
3186 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3186 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3187 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3187 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3188 TestObjectPythonV8Internal::reflectUnsignedShortAttributeAttributeSetter(jsV alue, info); 3188 TestObjectPythonV8Internal::reflectUnsignedShortAttributeAttributeSetter(v8V alue, info);
3189 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3189 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3190 } 3190 }
3191 3191
3192 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 3192 static void reflectUnsignedLongAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
3193 { 3193 {
3194 v8::Handle<v8::Object> holder = info.Holder(); 3194 v8::Handle<v8::Object> holder = info.Holder();
3195 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3195 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3196 v8SetReturnValueUnsigned(info, std::max(0, impl->getIntegralAttribute(HTMLNa mes::reflectunsignedlongattributeAttr))); 3196 v8SetReturnValueUnsigned(info, std::max(0, impl->getIntegralAttribute(HTMLNa mes::reflectunsignedlongattributeAttr)));
3197 } 3197 }
3198 3198
3199 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 3199 static void reflectUnsignedLongAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
3200 { 3200 {
3201 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3201 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3202 TestObjectPythonV8Internal::reflectUnsignedLongAttributeAttributeGetter(info ); 3202 TestObjectPythonV8Internal::reflectUnsignedLongAttributeAttributeGetter(info );
3203 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3203 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3204 } 3204 }
3205 3205
3206 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> jsV alue, const v8::PropertyCallbackInfo<void>& info) 3206 static void reflectUnsignedLongAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
3207 { 3207 {
3208 v8::Handle<v8::Object> holder = info.Holder(); 3208 v8::Handle<v8::Object> holder = info.Holder();
3209 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObjectPython", holder, info.GetIsolate()); 3209 ExceptionState exceptionState(ExceptionState::SetterContext, "reflectUnsigne dLongAttribute", "TestObjectPython", holder, info.GetIsolate());
3210 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3210 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3211 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(jsValue, exceptionSta te), exceptionState); 3211 V8TRYCATCH_EXCEPTION_VOID(unsigned, cppValue, toUInt32(v8Value, exceptionSta te), exceptionState);
3212 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3212 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3213 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue); 3213 impl->setUnsignedIntegralAttribute(HTMLNames::reflectunsignedlongattributeAt tr, cppValue);
3214 } 3214 }
3215 3215
3216 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3216 static void reflectUnsignedLongAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3217 { 3217 {
3218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3219 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3219 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3220 TestObjectPythonV8Internal::reflectUnsignedLongAttributeAttributeSetter(jsVa lue, info); 3220 TestObjectPythonV8Internal::reflectUnsignedLongAttributeAttributeSetter(v8Va lue, info);
3221 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3221 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3222 } 3222 }
3223 3223
3224 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 3224 static void idAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
3225 { 3225 {
3226 v8::Handle<v8::Object> holder = info.Holder(); 3226 v8::Handle<v8::Object> holder = info.Holder();
3227 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3227 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3228 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); 3228 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate());
3229 } 3229 }
3230 3230
3231 static void idAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyC allbackInfo<v8::Value>& info) 3231 static void idAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyC allbackInfo<v8::Value>& info)
3232 { 3232 {
3233 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3233 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3234 TestObjectPythonV8Internal::idAttributeGetter(info); 3234 TestObjectPythonV8Internal::idAttributeGetter(info);
3235 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3235 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3236 } 3236 }
3237 3237
3238 static void idAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCa llbackInfo<void>& info) 3238 static void idAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCa llbackInfo<void>& info)
3239 { 3239 {
3240 v8::Handle<v8::Object> holder = info.Holder(); 3240 v8::Handle<v8::Object> holder = info.Holder();
3241 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3241 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3242 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3242 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
3243 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3243 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3244 impl->setAttribute(HTMLNames::idAttr, cppValue); 3244 impl->setAttribute(HTMLNames::idAttr, cppValue);
3245 } 3245 }
3246 3246
3247 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value > jsValue, const v8::PropertyCallbackInfo<void>& info) 3247 static void idAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value > v8Value, const v8::PropertyCallbackInfo<void>& info)
3248 { 3248 {
3249 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3249 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3250 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3250 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3251 TestObjectPythonV8Internal::idAttributeSetter(jsValue, info); 3251 TestObjectPythonV8Internal::idAttributeSetter(v8Value, info);
3252 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3252 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3253 } 3253 }
3254 3254
3255 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 3255 static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
3256 { 3256 {
3257 v8::Handle<v8::Object> holder = info.Holder(); 3257 v8::Handle<v8::Object> holder = info.Holder();
3258 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3258 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3259 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); 3259 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate());
3260 } 3260 }
3261 3261
3262 static void nameAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert yCallbackInfo<v8::Value>& info) 3262 static void nameAttributeGetterCallback(v8::Local<v8::String>, const v8::Propert yCallbackInfo<v8::Value>& info)
3263 { 3263 {
3264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3264 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3265 TestObjectPythonV8Internal::nameAttributeGetter(info); 3265 TestObjectPythonV8Internal::nameAttributeGetter(info);
3266 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3266 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3267 } 3267 }
3268 3268
3269 static void nameAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Property CallbackInfo<void>& info) 3269 static void nameAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info)
3270 { 3270 {
3271 v8::Handle<v8::Object> holder = info.Holder(); 3271 v8::Handle<v8::Object> holder = info.Holder();
3272 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3272 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3273 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3273 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
3274 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3274 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3275 impl->setAttribute(HTMLNames::nameAttr, cppValue); 3275 impl->setAttribute(HTMLNames::nameAttr, cppValue);
3276 } 3276 }
3277 3277
3278 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val ue> jsValue, const v8::PropertyCallbackInfo<void>& info) 3278 static void nameAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Val ue> v8Value, const v8::PropertyCallbackInfo<void>& info)
3279 { 3279 {
3280 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3280 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3281 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3281 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3282 TestObjectPythonV8Internal::nameAttributeSetter(jsValue, info); 3282 TestObjectPythonV8Internal::nameAttributeSetter(v8Value, info);
3283 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3283 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3284 } 3284 }
3285 3285
3286 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info ) 3286 static void classAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info )
3287 { 3287 {
3288 v8::Handle<v8::Object> holder = info.Holder(); 3288 v8::Handle<v8::Object> holder = info.Holder();
3289 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3289 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3290 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); 3290 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate());
3291 } 3291 }
3292 3292
3293 static void classAttributeGetterCallback(v8::Local<v8::String>, const v8::Proper tyCallbackInfo<v8::Value>& info) 3293 static void classAttributeGetterCallback(v8::Local<v8::String>, const v8::Proper tyCallbackInfo<v8::Value>& info)
3294 { 3294 {
3295 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3295 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3296 TestObjectPythonV8Internal::classAttributeGetter(info); 3296 TestObjectPythonV8Internal::classAttributeGetter(info);
3297 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3297 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3298 } 3298 }
3299 3299
3300 static void classAttributeSetter(v8::Local<v8::Value> jsValue, const v8::Propert yCallbackInfo<void>& info) 3300 static void classAttributeSetter(v8::Local<v8::Value> v8Value, const v8::Propert yCallbackInfo<void>& info)
3301 { 3301 {
3302 v8::Handle<v8::Object> holder = info.Holder(); 3302 v8::Handle<v8::Object> holder = info.Holder();
3303 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3303 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3304 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3304 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
3305 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3305 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3306 impl->setAttribute(HTMLNames::classAttr, cppValue); 3306 impl->setAttribute(HTMLNames::classAttr, cppValue);
3307 } 3307 }
3308 3308
3309 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va lue> jsValue, const v8::PropertyCallbackInfo<void>& info) 3309 static void classAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info)
3310 { 3310 {
3311 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3311 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3312 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3312 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3313 TestObjectPythonV8Internal::classAttributeSetter(jsValue, info); 3313 TestObjectPythonV8Internal::classAttributeSetter(v8Value, info);
3314 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3314 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3315 } 3315 }
3316 3316
3317 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value> & info) 3317 static void reflectedIdAttributeGetter(const v8::PropertyCallbackInfo<v8::Value> & info)
3318 { 3318 {
3319 v8::Handle<v8::Object> holder = info.Holder(); 3319 v8::Handle<v8::Object> holder = info.Holder();
3320 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3320 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3321 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate()); 3321 v8SetReturnValueString(info, impl->getIdAttribute(), info.GetIsolate());
3322 } 3322 }
3323 3323
3324 static void reflectedIdAttributeGetterCallback(v8::Local<v8::String>, const v8:: PropertyCallbackInfo<v8::Value>& info) 3324 static void reflectedIdAttributeGetterCallback(v8::Local<v8::String>, const v8:: PropertyCallbackInfo<v8::Value>& info)
3325 { 3325 {
3326 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3326 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3327 TestObjectPythonV8Internal::reflectedIdAttributeGetter(info); 3327 TestObjectPythonV8Internal::reflectedIdAttributeGetter(info);
3328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3329 } 3329 }
3330 3330
3331 static void reflectedIdAttributeSetter(v8::Local<v8::Value> jsValue, const v8::P ropertyCallbackInfo<void>& info) 3331 static void reflectedIdAttributeSetter(v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info)
3332 { 3332 {
3333 v8::Handle<v8::Object> holder = info.Holder(); 3333 v8::Handle<v8::Object> holder = info.Holder();
3334 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3334 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3335 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3335 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
3336 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3336 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3337 impl->setAttribute(HTMLNames::idAttr, cppValue); 3337 impl->setAttribute(HTMLNames::idAttr, cppValue);
3338 } 3338 }
3339 3339
3340 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local< v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3340 static void reflectedIdAttributeSetterCallback(v8::Local<v8::String>, v8::Local< v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3341 { 3341 {
3342 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3342 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3343 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3343 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3344 TestObjectPythonV8Internal::reflectedIdAttributeSetter(jsValue, info); 3344 TestObjectPythonV8Internal::reflectedIdAttributeSetter(v8Value, info);
3345 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3345 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3346 } 3346 }
3347 3347
3348 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info) 3348 static void reflectedNameAttributeGetter(const v8::PropertyCallbackInfo<v8::Valu e>& info)
3349 { 3349 {
3350 v8::Handle<v8::Object> holder = info.Holder(); 3350 v8::Handle<v8::Object> holder = info.Holder();
3351 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3351 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3352 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate()); 3352 v8SetReturnValueString(info, impl->getNameAttribute(), info.GetIsolate());
3353 } 3353 }
3354 3354
3355 static void reflectedNameAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info) 3355 static void reflectedNameAttributeGetterCallback(v8::Local<v8::String>, const v8 ::PropertyCallbackInfo<v8::Value>& info)
3356 { 3356 {
3357 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3357 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3358 TestObjectPythonV8Internal::reflectedNameAttributeGetter(info); 3358 TestObjectPythonV8Internal::reflectedNameAttributeGetter(info);
3359 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3359 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3360 } 3360 }
3361 3361
3362 static void reflectedNameAttributeSetter(v8::Local<v8::Value> jsValue, const v8: :PropertyCallbackInfo<void>& info) 3362 static void reflectedNameAttributeSetter(v8::Local<v8::Value> v8Value, const v8: :PropertyCallbackInfo<void>& info)
3363 { 3363 {
3364 v8::Handle<v8::Object> holder = info.Holder(); 3364 v8::Handle<v8::Object> holder = info.Holder();
3365 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3365 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3366 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3366 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
3367 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3367 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3368 impl->setAttribute(HTMLNames::nameAttr, cppValue); 3368 impl->setAttribute(HTMLNames::nameAttr, cppValue);
3369 } 3369 }
3370 3370
3371 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3371 static void reflectedNameAttributeSetterCallback(v8::Local<v8::String>, v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3372 { 3372 {
3373 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3373 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3374 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3374 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3375 TestObjectPythonV8Internal::reflectedNameAttributeSetter(jsValue, info); 3375 TestObjectPythonV8Internal::reflectedNameAttributeSetter(v8Value, info);
3376 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3376 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3377 } 3377 }
3378 3378
3379 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info) 3379 static void reflectedClassAttributeGetter(const v8::PropertyCallbackInfo<v8::Val ue>& info)
3380 { 3380 {
3381 v8::Handle<v8::Object> holder = info.Holder(); 3381 v8::Handle<v8::Object> holder = info.Holder();
3382 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3382 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3383 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate()); 3383 v8SetReturnValueString(info, impl->getClassAttribute(), info.GetIsolate());
3384 } 3384 }
3385 3385
3386 static void reflectedClassAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info) 3386 static void reflectedClassAttributeGetterCallback(v8::Local<v8::String>, const v 8::PropertyCallbackInfo<v8::Value>& info)
3387 { 3387 {
3388 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3388 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3389 TestObjectPythonV8Internal::reflectedClassAttributeGetter(info); 3389 TestObjectPythonV8Internal::reflectedClassAttributeGetter(info);
3390 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3390 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3391 } 3391 }
3392 3392
3393 static void reflectedClassAttributeSetter(v8::Local<v8::Value> jsValue, const v8 ::PropertyCallbackInfo<void>& info) 3393 static void reflectedClassAttributeSetter(v8::Local<v8::Value> v8Value, const v8 ::PropertyCallbackInfo<void>& info)
3394 { 3394 {
3395 v8::Handle<v8::Object> holder = info.Holder(); 3395 v8::Handle<v8::Object> holder = info.Holder();
3396 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3396 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3397 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3397 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
3398 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3398 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3399 impl->setAttribute(HTMLNames::classAttr, cppValue); 3399 impl->setAttribute(HTMLNames::classAttr, cppValue);
3400 } 3400 }
3401 3401
3402 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3402 static void reflectedClassAttributeSetterCallback(v8::Local<v8::String>, v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3403 { 3403 {
3404 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3404 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3405 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3405 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3406 TestObjectPythonV8Internal::reflectedClassAttributeSetter(jsValue, info); 3406 TestObjectPythonV8Internal::reflectedClassAttributeSetter(v8Value, info);
3407 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3407 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3408 } 3408 }
3409 3409
3410 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info) 3410 static void limitedToOnlyOneAttributeAttributeGetter(const v8::PropertyCallbackI nfo<v8::Value>& info)
3411 { 3411 {
3412 v8::Handle<v8::Object> holder = info.Holder(); 3412 v8::Handle<v8::Object> holder = info.Holder();
3413 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3413 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3414 String jsValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattribute Attr); 3414 String v8Value = impl->fastGetAttribute(HTMLNames::limitedtoonlyoneattribute Attr);
3415 if (jsValue.isEmpty()) { 3415 if (v8Value.isEmpty()) {
3416 ; 3416 ;
3417 } else if (equalIgnoringCase(jsValue, "unique")) { 3417 } else if (equalIgnoringCase(v8Value, "unique")) {
3418 jsValue = "unique"; 3418 v8Value = "unique";
3419 } else { 3419 } else {
3420 jsValue = ""; 3420 v8Value = "";
3421 } 3421 }
3422 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 3422 v8SetReturnValueString(info, v8Value, info.GetIsolate());
3423 } 3423 }
3424 3424
3425 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info) 3425 static void limitedToOnlyOneAttributeAttributeGetterCallback(v8::Local<v8::Strin g>, const v8::PropertyCallbackInfo<v8::Value>& info)
3426 { 3426 {
3427 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3427 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3428 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeGetter(info); 3428 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeGetter(info);
3429 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3429 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3430 } 3430 }
3431 3431
3432 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> jsValu e, const v8::PropertyCallbackInfo<void>& info) 3432 static void limitedToOnlyOneAttributeAttributeSetter(v8::Local<v8::Value> v8Valu e, const v8::PropertyCallbackInfo<void>& info)
3433 { 3433 {
3434 v8::Handle<v8::Object> holder = info.Holder(); 3434 v8::Handle<v8::Object> holder = info.Holder();
3435 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3435 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3436 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3436 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
3437 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3437 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3438 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue); 3438 impl->setAttribute(HTMLNames::limitedtoonlyoneattributeAttr, cppValue);
3439 } 3439 }
3440 3440
3441 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3441 static void limitedToOnlyOneAttributeAttributeSetterCallback(v8::Local<v8::Strin g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3442 { 3442 {
3443 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3443 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3444 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3444 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3445 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeSetter(jsValue , info); 3445 TestObjectPythonV8Internal::limitedToOnlyOneAttributeAttributeSetter(v8Value , info);
3446 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3446 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3447 } 3447 }
3448 3448
3449 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 3449 static void limitedToOnlyAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
3450 { 3450 {
3451 v8::Handle<v8::Object> holder = info.Holder(); 3451 v8::Handle<v8::Object> holder = info.Holder();
3452 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3452 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3453 String jsValue = impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAtt r); 3453 String v8Value = impl->fastGetAttribute(HTMLNames::limitedtoonlyattributeAtt r);
3454 if (jsValue.isEmpty()) { 3454 if (v8Value.isEmpty()) {
3455 ; 3455 ;
3456 } else if (equalIgnoringCase(jsValue, "Per")) { 3456 } else if (equalIgnoringCase(v8Value, "Per")) {
3457 jsValue = "Per"; 3457 v8Value = "Per";
3458 } else if (equalIgnoringCase(jsValue, "Paal")) { 3458 } else if (equalIgnoringCase(v8Value, "Paal")) {
3459 jsValue = "Paal"; 3459 v8Value = "Paal";
3460 } else if (equalIgnoringCase(jsValue, "Espen")) { 3460 } else if (equalIgnoringCase(v8Value, "Espen")) {
3461 jsValue = "Espen"; 3461 v8Value = "Espen";
3462 } else { 3462 } else {
3463 jsValue = ""; 3463 v8Value = "";
3464 } 3464 }
3465 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 3465 v8SetReturnValueString(info, v8Value, info.GetIsolate());
3466 } 3466 }
3467 3467
3468 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3468 static void limitedToOnlyAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3469 { 3469 {
3470 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3470 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3471 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeGetter(info); 3471 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeGetter(info);
3472 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3472 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3473 } 3473 }
3474 3474
3475 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3475 static void limitedToOnlyAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3476 { 3476 {
3477 v8::Handle<v8::Object> holder = info.Holder(); 3477 v8::Handle<v8::Object> holder = info.Holder();
3478 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3478 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3479 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3479 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
3480 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3480 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3481 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue); 3481 impl->setAttribute(HTMLNames::limitedtoonlyattributeAttr, cppValue);
3482 } 3482 }
3483 3483
3484 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3484 static void limitedToOnlyAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3485 { 3485 {
3486 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3486 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3487 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3487 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3488 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeSetter(jsValue, i nfo); 3488 TestObjectPythonV8Internal::limitedToOnlyAttributeAttributeSetter(v8Value, i nfo);
3489 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3489 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3490 } 3490 }
3491 3491
3492 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 3492 static void limitedToOnlyOtherAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
3493 { 3493 {
3494 v8::Handle<v8::Object> holder = info.Holder(); 3494 v8::Handle<v8::Object> holder = info.Holder();
3495 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3495 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3496 String jsValue = impl->fastGetAttribute(HTMLNames::OtherAttr); 3496 String v8Value = impl->fastGetAttribute(HTMLNames::OtherAttr);
3497 if (jsValue.isEmpty()) { 3497 if (v8Value.isEmpty()) {
3498 ; 3498 ;
3499 } else if (equalIgnoringCase(jsValue, "Value1")) { 3499 } else if (equalIgnoringCase(v8Value, "Value1")) {
3500 jsValue = "Value1"; 3500 v8Value = "Value1";
3501 } else if (equalIgnoringCase(jsValue, "Value2")) { 3501 } else if (equalIgnoringCase(v8Value, "Value2")) {
3502 jsValue = "Value2"; 3502 v8Value = "Value2";
3503 } else { 3503 } else {
3504 jsValue = ""; 3504 v8Value = "";
3505 } 3505 }
3506 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 3506 v8SetReturnValueString(info, v8Value, info.GetIsolate());
3507 } 3507 }
3508 3508
3509 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 3509 static void limitedToOnlyOtherAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
3510 { 3510 {
3511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3511 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3512 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info) ; 3512 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeGetter(info) ;
3513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3513 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3514 } 3514 }
3515 3515
3516 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> jsVa lue, const v8::PropertyCallbackInfo<void>& info) 3516 static void limitedToOnlyOtherAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
3517 { 3517 {
3518 v8::Handle<v8::Object> holder = info.Holder(); 3518 v8::Handle<v8::Object> holder = info.Holder();
3519 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3519 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3520 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3520 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
3521 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3521 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3522 impl->setAttribute(HTMLNames::OtherAttr, cppValue); 3522 impl->setAttribute(HTMLNames::OtherAttr, cppValue);
3523 } 3523 }
3524 3524
3525 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3525 static void limitedToOnlyOtherAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3526 { 3526 {
3527 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3527 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3528 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3528 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3529 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeSetter(jsVal ue, info); 3529 TestObjectPythonV8Internal::limitedToOnlyOtherAttributeAttributeSetter(v8Val ue, info);
3530 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3530 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3531 } 3531 }
3532 3532
3533 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info) 3533 static void limitedWithMissingDefaultAttributeAttributeGetter(const v8::Property CallbackInfo<v8::Value>& info)
3534 { 3534 {
3535 v8::Handle<v8::Object> holder = info.Holder(); 3535 v8::Handle<v8::Object> holder = info.Holder();
3536 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3536 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3537 String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithmissingdefault attributeAttr); 3537 String v8Value = impl->fastGetAttribute(HTMLNames::limitedwithmissingdefault attributeAttr);
3538 if (jsValue.isEmpty()) { 3538 if (v8Value.isEmpty()) {
3539 jsValue = "rsa"; 3539 v8Value = "rsa";
3540 } else if (equalIgnoringCase(jsValue, "rsa")) { 3540 } else if (equalIgnoringCase(v8Value, "rsa")) {
3541 jsValue = "rsa"; 3541 v8Value = "rsa";
3542 } else if (equalIgnoringCase(jsValue, "dsa")) { 3542 } else if (equalIgnoringCase(v8Value, "dsa")) {
3543 jsValue = "dsa"; 3543 v8Value = "dsa";
3544 } else { 3544 } else {
3545 jsValue = ""; 3545 v8Value = "";
3546 } 3546 }
3547 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 3547 v8SetReturnValueString(info, v8Value, info.GetIsolate());
3548 } 3548 }
3549 3549
3550 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3550 static void limitedWithMissingDefaultAttributeAttributeGetterCallback(v8::Local< v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3551 { 3551 {
3552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3552 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3553 TestObjectPythonV8Internal::limitedWithMissingDefaultAttributeAttributeGette r(info); 3553 TestObjectPythonV8Internal::limitedWithMissingDefaultAttributeAttributeGette r(info);
3554 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3554 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3555 } 3555 }
3556 3556
3557 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> jsValue, const v8::PropertyCallbackInfo<void>& info) 3557 static void limitedWithMissingDefaultAttributeAttributeSetter(v8::Local<v8::Valu e> v8Value, const v8::PropertyCallbackInfo<void>& info)
3558 { 3558 {
3559 v8::Handle<v8::Object> holder = info.Holder(); 3559 v8::Handle<v8::Object> holder = info.Holder();
3560 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3560 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3561 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3561 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
3562 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3562 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3563 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue); 3563 impl->setAttribute(HTMLNames::limitedwithmissingdefaultattributeAttr, cppVal ue);
3564 } 3564 }
3565 3565
3566 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3566 static void limitedWithMissingDefaultAttributeAttributeSetterCallback(v8::Local< v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3567 { 3567 {
3568 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3568 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3569 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3569 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3570 TestObjectPythonV8Internal::limitedWithMissingDefaultAttributeAttributeSette r(jsValue, info); 3570 TestObjectPythonV8Internal::limitedWithMissingDefaultAttributeAttributeSette r(v8Value, info);
3571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3572 } 3572 }
3573 3573
3574 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P ropertyCallbackInfo<v8::Value>& info) 3574 static void limitedWithInvalidMissingDefaultAttributeAttributeGetter(const v8::P ropertyCallbackInfo<v8::Value>& info)
3575 { 3575 {
3576 v8::Handle<v8::Object> holder = info.Holder(); 3576 v8::Handle<v8::Object> holder = info.Holder();
3577 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3577 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3578 String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissing defaultattributeAttr); 3578 String v8Value = impl->fastGetAttribute(HTMLNames::limitedwithinvalidmissing defaultattributeAttr);
3579 if (jsValue.isEmpty()) { 3579 if (v8Value.isEmpty()) {
3580 jsValue = "auto"; 3580 v8Value = "auto";
3581 } else if (equalIgnoringCase(jsValue, "ltr")) { 3581 } else if (equalIgnoringCase(v8Value, "ltr")) {
3582 jsValue = "ltr"; 3582 v8Value = "ltr";
3583 } else if (equalIgnoringCase(jsValue, "rtl")) { 3583 } else if (equalIgnoringCase(v8Value, "rtl")) {
3584 jsValue = "rtl"; 3584 v8Value = "rtl";
3585 } else if (equalIgnoringCase(jsValue, "auto")) { 3585 } else if (equalIgnoringCase(v8Value, "auto")) {
3586 jsValue = "auto"; 3586 v8Value = "auto";
3587 } else { 3587 } else {
3588 jsValue = "ltr"; 3588 v8Value = "ltr";
3589 } 3589 }
3590 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 3590 v8SetReturnValueString(info, v8Value, info.GetIsolate());
3591 } 3591 }
3592 3592
3593 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8: :Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3593 static void limitedWithInvalidMissingDefaultAttributeAttributeGetterCallback(v8: :Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3594 { 3594 {
3595 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3595 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3596 TestObjectPythonV8Internal::limitedWithInvalidMissingDefaultAttributeAttribu teGetter(info); 3596 TestObjectPythonV8Internal::limitedWithInvalidMissingDefaultAttributeAttribu teGetter(info);
3597 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3597 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3598 } 3598 }
3599 3599
3600 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3600 static void limitedWithInvalidMissingDefaultAttributeAttributeSetter(v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3601 { 3601 {
3602 v8::Handle<v8::Object> holder = info.Holder(); 3602 v8::Handle<v8::Object> holder = info.Holder();
3603 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3603 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3604 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3604 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
3605 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3605 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3606 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue); 3606 impl->setAttribute(HTMLNames::limitedwithinvalidmissingdefaultattributeAttr, cppValue);
3607 } 3607 }
3608 3608
3609 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8: :Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo <void>& info) 3609 static void limitedWithInvalidMissingDefaultAttributeAttributeSetterCallback(v8: :Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo <void>& info)
3610 { 3610 {
3611 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3611 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3612 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3612 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3613 TestObjectPythonV8Internal::limitedWithInvalidMissingDefaultAttributeAttribu teSetter(jsValue, info); 3613 TestObjectPythonV8Internal::limitedWithInvalidMissingDefaultAttributeAttribu teSetter(v8Value, info);
3614 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3614 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3615 } 3615 }
3616 3616
3617 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info) 3617 static void corsSettingAttributeAttributeGetter(const v8::PropertyCallbackInfo<v 8::Value>& info)
3618 { 3618 {
3619 v8::Handle<v8::Object> holder = info.Holder(); 3619 v8::Handle<v8::Object> holder = info.Holder();
3620 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3620 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3621 String jsValue = impl->fastGetAttribute(HTMLNames::corssettingattributeAttr) ; 3621 String v8Value = impl->fastGetAttribute(HTMLNames::corssettingattributeAttr) ;
3622 if (jsValue.isNull()) { 3622 if (v8Value.isNull()) {
3623 ; 3623 ;
3624 } else if (jsValue.isEmpty()) { 3624 } else if (v8Value.isEmpty()) {
3625 jsValue = "anonymous"; 3625 v8Value = "anonymous";
3626 } else if (equalIgnoringCase(jsValue, "anonymous")) { 3626 } else if (equalIgnoringCase(v8Value, "anonymous")) {
3627 jsValue = "anonymous"; 3627 v8Value = "anonymous";
3628 } else if (equalIgnoringCase(jsValue, "use-credentials")) { 3628 } else if (equalIgnoringCase(v8Value, "use-credentials")) {
3629 jsValue = "use-credentials"; 3629 v8Value = "use-credentials";
3630 } else { 3630 } else {
3631 jsValue = "anonymous"; 3631 v8Value = "anonymous";
3632 } 3632 }
3633 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 3633 v8SetReturnValueString(info, v8Value, info.GetIsolate());
3634 } 3634 }
3635 3635
3636 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info) 3636 static void corsSettingAttributeAttributeGetterCallback(v8::Local<v8::String>, c onst v8::PropertyCallbackInfo<v8::Value>& info)
3637 { 3637 {
3638 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3638 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3639 TestObjectPythonV8Internal::corsSettingAttributeAttributeGetter(info); 3639 TestObjectPythonV8Internal::corsSettingAttributeAttributeGetter(info);
3640 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3640 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3641 } 3641 }
3642 3642
3643 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info) 3643 static void limitedWithEmptyMissingInvalidAttributeAttributeGetter(const v8::Pro pertyCallbackInfo<v8::Value>& info)
3644 { 3644 {
3645 v8::Handle<v8::Object> holder = info.Holder(); 3645 v8::Handle<v8::Object> holder = info.Holder();
3646 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3646 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3647 String jsValue = impl->fastGetAttribute(HTMLNames::limitedwithemptymissingin validattributeAttr); 3647 String v8Value = impl->fastGetAttribute(HTMLNames::limitedwithemptymissingin validattributeAttr);
3648 if (jsValue.isNull()) { 3648 if (v8Value.isNull()) {
3649 jsValue = "missing"; 3649 v8Value = "missing";
3650 } else if (jsValue.isEmpty()) { 3650 } else if (v8Value.isEmpty()) {
3651 jsValue = "empty"; 3651 v8Value = "empty";
3652 } else if (equalIgnoringCase(jsValue, "empty")) { 3652 } else if (equalIgnoringCase(v8Value, "empty")) {
3653 jsValue = "empty"; 3653 v8Value = "empty";
3654 } else if (equalIgnoringCase(jsValue, "missing")) { 3654 } else if (equalIgnoringCase(v8Value, "missing")) {
3655 jsValue = "missing"; 3655 v8Value = "missing";
3656 } else if (equalIgnoringCase(jsValue, "invalid")) { 3656 } else if (equalIgnoringCase(v8Value, "invalid")) {
3657 jsValue = "invalid"; 3657 v8Value = "invalid";
3658 } else if (equalIgnoringCase(jsValue, "a-normal")) { 3658 } else if (equalIgnoringCase(v8Value, "a-normal")) {
3659 jsValue = "a-normal"; 3659 v8Value = "a-normal";
3660 } else { 3660 } else {
3661 jsValue = "invalid"; 3661 v8Value = "invalid";
3662 } 3662 }
3663 v8SetReturnValueString(info, jsValue, info.GetIsolate()); 3663 v8SetReturnValueString(info, v8Value, info.GetIsolate());
3664 } 3664 }
3665 3665
3666 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3666 static void limitedWithEmptyMissingInvalidAttributeAttributeGetterCallback(v8::L ocal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3667 { 3667 {
3668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3669 TestObjectPythonV8Internal::limitedWithEmptyMissingInvalidAttributeAttribute Getter(info); 3669 TestObjectPythonV8Internal::limitedWithEmptyMissingInvalidAttributeAttribute Getter(info);
3670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3671 } 3671 }
3672 3672
3673 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) 3673 static void replaceableReadonlyLongAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info)
(...skipping 17 matching lines...) Expand all
3691 v8SetReturnValueFast(info, WTF::getPtr(impl->locationReplaceable()), impl); 3691 v8SetReturnValueFast(info, WTF::getPtr(impl->locationReplaceable()), impl);
3692 } 3692 }
3693 3693
3694 static void locationReplaceableAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 3694 static void locationReplaceableAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
3695 { 3695 {
3696 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3696 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3697 TestObjectPythonV8Internal::locationReplaceableAttributeGetter(info); 3697 TestObjectPythonV8Internal::locationReplaceableAttributeGetter(info);
3698 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3698 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3699 } 3699 }
3700 3700
3701 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> jsValue, con st v8::PropertyCallbackInfo<void>& info) 3701 static void locationReplaceableAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
3702 { 3702 {
3703 v8::Handle<v8::Object> holder = info.Holder(); 3703 v8::Handle<v8::Object> holder = info.Holder();
3704 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder); 3704 TestObjectPython* proxyImpl = V8TestObjectPython::toNative(holder);
3705 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceable()); 3705 RefPtr<TestNode> impl = WTF::getPtr(proxyImpl->locationReplaceable());
3706 if (!impl) 3706 if (!impl)
3707 return; 3707 return;
3708 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3708 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
3709 impl->setHref(cppValue); 3709 impl->setHref(cppValue);
3710 } 3710 }
3711 3711
3712 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3712 static void locationReplaceableAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3713 { 3713 {
3714 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3714 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3715 TestObjectPythonV8Internal::locationReplaceableAttributeSetter(jsValue, info ); 3715 TestObjectPythonV8Internal::locationReplaceableAttributeSetter(v8Value, info );
3716 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3716 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3717 } 3717 }
3718 3718
3719 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info) 3719 static void runtimeEnabledLongAttributeAttributeGetter(const v8::PropertyCallbac kInfo<v8::Value>& info)
3720 { 3720 {
3721 v8::Handle<v8::Object> holder = info.Holder(); 3721 v8::Handle<v8::Object> holder = info.Holder();
3722 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3722 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3723 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute()); 3723 v8SetReturnValueInt(info, impl->runtimeEnabledLongAttribute());
3724 } 3724 }
3725 3725
3726 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 3726 static void runtimeEnabledLongAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
3727 { 3727 {
3728 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3728 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3729 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeGetter(info) ; 3729 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeGetter(info) ;
3730 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3730 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3731 } 3731 }
3732 3732
3733 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> jsVa lue, const v8::PropertyCallbackInfo<void>& info) 3733 static void runtimeEnabledLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::PropertyCallbackInfo<void>& info)
3734 { 3734 {
3735 v8::Handle<v8::Object> holder = info.Holder(); 3735 v8::Handle<v8::Object> holder = info.Holder();
3736 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled LongAttribute", "TestObjectPython", holder, info.GetIsolate()); 3736 ExceptionState exceptionState(ExceptionState::SetterContext, "runtimeEnabled LongAttribute", "TestObjectPython", holder, info.GetIsolate());
3737 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3737 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3738 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 3738 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
3739 impl->setRuntimeEnabledLongAttribute(cppValue); 3739 impl->setRuntimeEnabledLongAttribute(cppValue);
3740 } 3740 }
3741 3741
3742 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3742 static void runtimeEnabledLongAttributeAttributeSetterCallback(v8::Local<v8::Str ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3743 { 3743 {
3744 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3744 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3745 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeSetter(jsVal ue, info); 3745 TestObjectPythonV8Internal::runtimeEnabledLongAttributeAttributeSetter(v8Val ue, info);
3746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3746 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3747 } 3747 }
3748 3748
3749 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 3749 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
3750 { 3750 {
3751 v8::Handle<v8::Object> holder = info.Holder(); 3751 v8::Handle<v8::Object> holder = info.Holder();
3752 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3752 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3753 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute ()); 3753 v8SetReturnValueInt(info, impl->perContextEnabledRuntimeEnabledLongAttribute ());
3754 } 3754 }
3755 3755
3756 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3756 static void perContextEnabledRuntimeEnabledLongAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3757 { 3757 {
3758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3759 TestObjectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttr ibuteGetter(info); 3759 TestObjectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttr ibuteGetter(info);
3760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3761 } 3761 }
3762 3762
3763 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3763 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3764 { 3764 {
3765 v8::Handle<v8::Object> holder = info.Holder(); 3765 v8::Handle<v8::Object> holder = info.Holder();
3766 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledRuntimeEnabledLongAttribute", "TestObjectPython", holder, info.GetIsolate()); 3766 ExceptionState exceptionState(ExceptionState::SetterContext, "perContextEnab ledRuntimeEnabledLongAttribute", "TestObjectPython", holder, info.GetIsolate());
3767 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3767 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3768 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 3768 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
3769 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue); 3769 impl->setPerContextEnabledRuntimeEnabledLongAttribute(cppValue);
3770 } 3770 }
3771 3771
3772 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI nfo<void>& info) 3772 static void perContextEnabledRuntimeEnabledLongAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
3773 { 3773 {
3774 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3774 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3775 TestObjectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttr ibuteSetter(jsValue, info); 3775 TestObjectPythonV8Internal::perContextEnabledRuntimeEnabledLongAttributeAttr ibuteSetter(v8Value, info);
3776 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3776 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3777 } 3777 }
3778 3778
3779 #if ENABLE(CONDITION) 3779 #if ENABLE(CONDITION)
3780 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info) 3780 static void conditionalRuntimeEnabledLongAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info)
3781 { 3781 {
3782 v8::Handle<v8::Object> holder = info.Holder(); 3782 v8::Handle<v8::Object> holder = info.Holder();
3783 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3783 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3784 v8SetReturnValueInt(info, impl->conditionalRuntimeEnabledLongAttribute()); 3784 v8SetReturnValueInt(info, impl->conditionalRuntimeEnabledLongAttribute());
3785 } 3785 }
3786 #endif // ENABLE(CONDITION) 3786 #endif // ENABLE(CONDITION)
3787 3787
3788 #if ENABLE(CONDITION) 3788 #if ENABLE(CONDITION)
3789 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3789 static void conditionalRuntimeEnabledLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3790 { 3790 {
3791 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3791 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3792 TestObjectPythonV8Internal::conditionalRuntimeEnabledLongAttributeAttributeG etter(info); 3792 TestObjectPythonV8Internal::conditionalRuntimeEnabledLongAttributeAttributeG etter(info);
3793 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3793 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3794 } 3794 }
3795 #endif // ENABLE(CONDITION) 3795 #endif // ENABLE(CONDITION)
3796 3796
3797 #if ENABLE(CONDITION) 3797 #if ENABLE(CONDITION)
3798 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8:: Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3798 static void conditionalRuntimeEnabledLongAttributeAttributeSetter(v8::Local<v8:: Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3799 { 3799 {
3800 v8::Handle<v8::Object> holder = info.Holder(); 3800 v8::Handle<v8::Object> holder = info.Holder();
3801 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun timeEnabledLongAttribute", "TestObjectPython", holder, info.GetIsolate()); 3801 ExceptionState exceptionState(ExceptionState::SetterContext, "conditionalRun timeEnabledLongAttribute", "TestObjectPython", holder, info.GetIsolate());
3802 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3802 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3803 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 3803 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
3804 impl->setConditionalRuntimeEnabledLongAttribute(cppValue); 3804 impl->setConditionalRuntimeEnabledLongAttribute(cppValue);
3805 } 3805 }
3806 #endif // ENABLE(CONDITION) 3806 #endif // ENABLE(CONDITION)
3807 3807
3808 #if ENABLE(CONDITION) 3808 #if ENABLE(CONDITION)
3809 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo id>& info) 3809 static void conditionalRuntimeEnabledLongAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<vo id>& info)
3810 { 3810 {
3811 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3811 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3812 TestObjectPythonV8Internal::conditionalRuntimeEnabledLongAttributeAttributeS etter(jsValue, info); 3812 TestObjectPythonV8Internal::conditionalRuntimeEnabledLongAttributeAttributeS etter(v8Value, info);
3813 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3813 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3814 } 3814 }
3815 #endif // ENABLE(CONDITION) 3815 #endif // ENABLE(CONDITION)
3816 3816
3817 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett er(const v8::PropertyCallbackInfo<v8::Value>& info) 3817 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett er(const v8::PropertyCallbackInfo<v8::Value>& info)
3818 { 3818 {
3819 v8::Handle<v8::Object> holder = info.Holder(); 3819 v8::Handle<v8::Object> holder = info.Holder();
3820 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3820 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3821 v8SetReturnValueString(info, impl->setterCallWithActiveWindowAndFirstWindowS tringAttribute(), info.GetIsolate()); 3821 v8SetReturnValueString(info, impl->setterCallWithActiveWindowAndFirstWindowS tringAttribute(), info.GetIsolate());
3822 } 3822 }
3823 3823
3824 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett erCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& inf o) 3824 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGett erCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& inf o)
3825 { 3825 {
3826 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3826 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3827 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt tributeAttributeGetter(info); 3827 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt tributeAttributeGetter(info);
3828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3829 } 3829 }
3830 3830
3831 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett er(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3831 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3832 { 3832 {
3833 v8::Handle<v8::Object> holder = info.Holder(); 3833 v8::Handle<v8::Object> holder = info.Holder();
3834 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3834 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3835 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3835 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
3836 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue); 3836 impl->setSetterCallWithActiveWindowAndFirstWindowStringAttribute(callingDOMW indow(info.GetIsolate()), enteredDOMWindow(info.GetIsolate()), cppValue);
3837 } 3837 }
3838 3838
3839 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett erCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::Proper tyCallbackInfo<void>& info) 3839 static void setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeSett erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper tyCallbackInfo<void>& info)
3840 { 3840 {
3841 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3841 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3842 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt tributeAttributeSetter(jsValue, info); 3842 TestObjectPythonV8Internal::setterCallWithActiveWindowAndFirstWindowStringAt tributeAttributeSetter(v8Value, info);
3843 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3843 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3844 } 3844 }
3845 3845
3846 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info) 3846 static void setterCallWithExecutionContextStringAttributeAttributeGetter(const v 8::PropertyCallbackInfo<v8::Value>& info)
3847 { 3847 {
3848 v8::Handle<v8::Object> holder = info.Holder(); 3848 v8::Handle<v8::Object> holder = info.Holder();
3849 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3849 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3850 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri bute(), info.GetIsolate()); 3850 v8SetReturnValueString(info, impl->setterCallWithExecutionContextStringAttri bute(), info.GetIsolate());
3851 } 3851 }
3852 3852
3853 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3853 static void setterCallWithExecutionContextStringAttributeAttributeGetterCallback (v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3854 { 3854 {
3855 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3855 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3856 TestObjectPythonV8Internal::setterCallWithExecutionContextStringAttributeAtt ributeGetter(info); 3856 TestObjectPythonV8Internal::setterCallWithExecutionContextStringAttributeAtt ributeGetter(info);
3857 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3857 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3858 } 3858 }
3859 3859
3860 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc al<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3860 static void setterCallWithExecutionContextStringAttributeAttributeSetter(v8::Loc al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3861 { 3861 {
3862 v8::Handle<v8::Object> holder = info.Holder(); 3862 v8::Handle<v8::Object> holder = info.Holder();
3863 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3863 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3864 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3864 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
3865 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ; 3865 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()) ;
3866 impl->setSetterCallWithExecutionContextStringAttribute(scriptContext, cppVal ue); 3866 impl->setSetterCallWithExecutionContextStringAttribute(scriptContext, cppVal ue);
3867 } 3867 }
3868 3868
3869 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback (v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallback Info<void>& info) 3869 static void setterCallWithExecutionContextStringAttributeAttributeSetterCallback (v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallback Info<void>& info)
3870 { 3870 {
3871 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3871 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3872 TestObjectPythonV8Internal::setterCallWithExecutionContextStringAttributeAtt ributeSetter(jsValue, info); 3872 TestObjectPythonV8Internal::setterCallWithExecutionContextStringAttributeAtt ributeSetter(v8Value, info);
3873 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3873 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3874 } 3874 }
3875 3875
3876 static void strictTypeCheckingFloatAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info) 3876 static void strictTypeCheckingFloatAttributeAttributeGetter(const v8::PropertyCa llbackInfo<v8::Value>& info)
3877 { 3877 {
3878 v8::Handle<v8::Object> holder = info.Holder(); 3878 v8::Handle<v8::Object> holder = info.Holder();
3879 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3879 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3880 v8SetReturnValue(info, impl->strictTypeCheckingFloatAttribute()); 3880 v8SetReturnValue(info, impl->strictTypeCheckingFloatAttribute());
3881 } 3881 }
3882 3882
3883 static void strictTypeCheckingFloatAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3883 static void strictTypeCheckingFloatAttributeAttributeGetterCallback(v8::Local<v8 ::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3884 { 3884 {
3885 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3885 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3886 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeGetter( info); 3886 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeGetter( info);
3887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3887 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3888 } 3888 }
3889 3889
3890 static void strictTypeCheckingFloatAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3890 static void strictTypeCheckingFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3891 { 3891 {
3892 v8::Handle<v8::Object> holder = info.Holder(); 3892 v8::Handle<v8::Object> holder = info.Holder();
3893 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3893 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3894 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(jsValue->NumberValue())) ; 3894 V8TRYCATCH_VOID(float, cppValue, static_cast<float>(v8Value->NumberValue())) ;
3895 impl->setStrictTypeCheckingFloatAttribute(cppValue); 3895 impl->setStrictTypeCheckingFloatAttribute(cppValue);
3896 } 3896 }
3897 3897
3898 static void strictTypeCheckingFloatAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo) 3898 static void strictTypeCheckingFloatAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
3899 { 3899 {
3900 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3900 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3901 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeSetter( jsValue, info); 3901 TestObjectPythonV8Internal::strictTypeCheckingFloatAttributeAttributeSetter( v8Value, info);
3902 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3902 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3903 } 3903 }
3904 3904
3905 static void strictTypeCheckingTestInterfaceAttributeAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info) 3905 static void strictTypeCheckingTestInterfaceAttributeAttributeGetter(const v8::Pr opertyCallbackInfo<v8::Value>& info)
3906 { 3906 {
3907 v8::Handle<v8::Object> holder = info.Holder(); 3907 v8::Handle<v8::Object> holder = info.Holder();
3908 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3908 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3909 v8SetReturnValueFast(info, WTF::getPtr(impl->strictTypeCheckingTestInterface Attribute()), impl); 3909 v8SetReturnValueFast(info, WTF::getPtr(impl->strictTypeCheckingTestInterface Attribute()), impl);
3910 } 3910 }
3911 3911
3912 static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3912 static void strictTypeCheckingTestInterfaceAttributeAttributeGetterCallback(v8:: Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3913 { 3913 {
3914 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3914 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3915 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut eGetter(info); 3915 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut eGetter(info);
3916 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3916 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3917 } 3917 }
3918 3918
3919 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8 ::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3919 static void strictTypeCheckingTestInterfaceAttributeAttributeSetter(v8::Local<v8 ::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3920 { 3920 {
3921 v8::Handle<v8::Object> holder = info.Holder(); 3921 v8::Handle<v8::Object> holder = info.Holder();
3922 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec kingTestInterfaceAttribute", "TestObjectPython", holder, info.GetIsolate()); 3922 ExceptionState exceptionState(ExceptionState::SetterContext, "strictTypeChec kingTestInterfaceAttribute", "TestObjectPython", holder, info.GetIsolate());
3923 if (!isUndefinedOrNull(jsValue) && !V8TestInterface::hasInstance(jsValue, in fo.GetIsolate())) { 3923 if (!isUndefinedOrNull(v8Value) && !V8TestInterface::hasInstance(v8Value, in fo.GetIsolate())) {
3924 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'."); 3924 exceptionState.throwTypeError("The provided value is not of type 'TestIn terface'.");
3925 exceptionState.throwIfNeeded(); 3925 exceptionState.throwIfNeeded();
3926 return; 3926 return;
3927 } 3927 }
3928 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3928 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3929 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC heck(info.GetIsolate(), jsValue)); 3929 V8TRYCATCH_VOID(TestInterface*, cppValue, V8TestInterface::toNativeWithTypeC heck(info.GetIsolate(), v8Value));
3930 impl->setStrictTypeCheckingTestInterfaceAttribute(WTF::getPtr(cppValue)); 3930 impl->setStrictTypeCheckingTestInterfaceAttribute(WTF::getPtr(cppValue));
3931 } 3931 }
3932 3932
3933 static void strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo< void>& info) 3933 static void strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback(v8:: Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo< void>& info)
3934 { 3934 {
3935 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3935 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3936 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut eSetter(jsValue, info); 3936 TestObjectPythonV8Internal::strictTypeCheckingTestInterfaceAttributeAttribut eSetter(v8Value, info);
3937 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3937 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3938 } 3938 }
3939 3939
3940 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info) 3940 static void treatNullAsNullStringStringAttributeAttributeGetter(const v8::Proper tyCallbackInfo<v8::Value>& info)
3941 { 3941 {
3942 v8::Handle<v8::Object> holder = info.Holder(); 3942 v8::Handle<v8::Object> holder = info.Holder();
3943 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3943 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3944 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i nfo.GetIsolate()); 3944 v8SetReturnValueString(info, impl->treatNullAsNullStringStringAttribute(), i nfo.GetIsolate());
3945 } 3945 }
3946 3946
3947 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3947 static void treatNullAsNullStringStringAttributeAttributeGetterCallback(v8::Loca l<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3948 { 3948 {
3949 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3949 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3950 TestObjectPythonV8Internal::treatNullAsNullStringStringAttributeAttributeGet ter(info); 3950 TestObjectPythonV8Internal::treatNullAsNullStringStringAttributeAttributeGet ter(info);
3951 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3951 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3952 } 3952 }
3953 3953
3954 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va lue> jsValue, const v8::PropertyCallbackInfo<void>& info) 3954 static void treatNullAsNullStringStringAttributeAttributeSetter(v8::Local<v8::Va lue> v8Value, const v8::PropertyCallbackInfo<void>& info)
3955 { 3955 {
3956 v8::Handle<v8::Object> holder = info.Holder(); 3956 v8::Handle<v8::Object> holder = info.Holder();
3957 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3957 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3958 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal ue, jsValue); 3958 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<WithNullCheck>, cppVal ue, v8Value);
3959 impl->setTreatNullAsNullStringStringAttribute(cppValue); 3959 impl->setTreatNullAsNullStringStringAttribute(cppValue);
3960 } 3960 }
3961 3961
3962 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void >& info) 3962 static void treatNullAsNullStringStringAttributeAttributeSetterCallback(v8::Loca l<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void >& info)
3963 { 3963 {
3964 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3964 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3965 TestObjectPythonV8Internal::treatNullAsNullStringStringAttributeAttributeSet ter(jsValue, info); 3965 TestObjectPythonV8Internal::treatNullAsNullStringStringAttributeAttributeSet ter(v8Value, info);
3966 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3966 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3967 } 3967 }
3968 3968
3969 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 3969 static void treatReturnedNullStringAsNullStringAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
3970 { 3970 {
3971 v8::Handle<v8::Object> holder = info.Holder(); 3971 v8::Handle<v8::Object> holder = info.Holder();
3972 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3972 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3973 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString Attribute(), info.GetIsolate()); 3973 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullString Attribute(), info.GetIsolate());
3974 } 3974 }
3975 3975
3976 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 3976 static void treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3977 { 3977 {
3978 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 3978 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3979 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttr ibuteGetter(info); 3979 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttr ibuteGetter(info);
3980 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3980 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3981 } 3981 }
3982 3982
3983 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3983 static void treatReturnedNullStringAsNullStringAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
3984 { 3984 {
3985 v8::Handle<v8::Object> holder = info.Holder(); 3985 v8::Handle<v8::Object> holder = info.Holder();
3986 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 3986 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
3987 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 3987 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
3988 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue); 3988 impl->setTreatReturnedNullStringAsNullStringAttribute(cppValue);
3989 } 3989 }
3990 3990
3991 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI nfo<void>& info) 3991 static void treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
3992 { 3992 {
3993 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3993 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3994 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttr ibuteSetter(jsValue, info); 3994 TestObjectPythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttr ibuteSetter(v8Value, info);
3995 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3995 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3996 } 3996 }
3997 3997
3998 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info) 3998 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info)
3999 { 3999 {
4000 v8::Handle<v8::Object> holder = info.Holder(); 4000 v8::Handle<v8::Object> holder = info.Holder();
4001 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4001 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4002 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedStringAttribute(), info.GetIsolate()); 4002 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedStringAttribute(), info.GetIsolate());
4003 } 4003 }
4004 4004
4005 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4005 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4006 { 4006 {
4007 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4007 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4008 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttribut eAttributeGetter(info); 4008 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttribut eAttributeGetter(info);
4009 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4009 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4010 } 4010 }
4011 4011
4012 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8: :Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 4012 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter(v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4013 { 4013 {
4014 v8::Handle<v8::Object> holder = info.Holder(); 4014 v8::Handle<v8::Object> holder = info.Holder();
4015 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4015 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4016 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 4016 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
4017 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue); 4017 impl->setTreatReturnedNullStringAsUndefinedStringAttribute(cppValue);
4018 } 4018 }
4019 4019
4020 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCall backInfo<void>& info) 4020 static void treatReturnedNullStringAsUndefinedStringAttributeAttributeSetterCall back(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCall backInfo<void>& info)
4021 { 4021 {
4022 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4022 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4023 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttribut eAttributeSetter(jsValue, info); 4023 TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttribut eAttributeSetter(v8Value, info);
4024 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4024 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4025 } 4025 }
4026 4026
4027 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 4027 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info)
4028 { 4028 {
4029 v8::Handle<v8::Object> holder = info.Holder(); 4029 v8::Handle<v8::Object> holder = info.Holder();
4030 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4030 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4031 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri buteAttr), info.GetIsolate()); 4031 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::urlstringattri buteAttr), info.GetIsolate());
4032 } 4032 }
4033 4033
4034 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info) 4034 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info)
4035 { 4035 {
4036 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4036 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4037 TestObjectPythonV8Internal::urlStringAttributeAttributeGetter(info); 4037 TestObjectPythonV8Internal::urlStringAttributeAttributeGetter(info);
4038 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4038 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4039 } 4039 }
4040 4040
4041 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, cons t v8::PropertyCallbackInfo<void>& info) 4041 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
4042 { 4042 {
4043 v8::Handle<v8::Object> holder = info.Holder(); 4043 v8::Handle<v8::Object> holder = info.Holder();
4044 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4044 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4045 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 4045 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
4046 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 4046 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
4047 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue); 4047 impl->setAttribute(HTMLNames::urlstringattributeAttr, cppValue);
4048 } 4048 }
4049 4049
4050 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 4050 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4051 { 4051 {
4052 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4052 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4053 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 4053 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
4054 TestObjectPythonV8Internal::urlStringAttributeAttributeSetter(jsValue, info) ; 4054 TestObjectPythonV8Internal::urlStringAttributeAttributeSetter(v8Value, info) ;
4055 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4055 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4056 } 4056 }
4057 4057
4058 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info) 4058 static void urlStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8: :Value>& info)
4059 { 4059 {
4060 v8::Handle<v8::Object> holder = info.Holder(); 4060 v8::Handle<v8::Object> holder = info.Holder();
4061 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4061 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4062 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::ReflectUrlAttr ibuteAttr), info.GetIsolate()); 4062 v8SetReturnValueString(info, impl->getURLAttribute(HTMLNames::ReflectUrlAttr ibuteAttr), info.GetIsolate());
4063 } 4063 }
4064 4064
4065 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info) 4065 static void urlStringAttributeAttributeGetterCallback(v8::Local<v8::String>, con st v8::PropertyCallbackInfo<v8::Value>& info)
4066 { 4066 {
4067 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4067 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4068 TestObjectPythonV8Internal::urlStringAttributeAttributeGetter(info); 4068 TestObjectPythonV8Internal::urlStringAttributeAttributeGetter(info);
4069 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4069 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4070 } 4070 }
4071 4071
4072 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, cons t v8::PropertyCallbackInfo<void>& info) 4072 static void urlStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons t v8::PropertyCallbackInfo<void>& info)
4073 { 4073 {
4074 v8::Handle<v8::Object> holder = info.Holder(); 4074 v8::Handle<v8::Object> holder = info.Holder();
4075 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4075 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4076 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 4076 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
4077 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 4077 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
4078 impl->setAttribute(HTMLNames::ReflectUrlAttributeAttr, cppValue); 4078 impl->setAttribute(HTMLNames::ReflectUrlAttributeAttr, cppValue);
4079 } 4079 }
4080 4080
4081 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 4081 static void urlStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8: :Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4082 { 4082 {
4083 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4083 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4084 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 4084 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
4085 TestObjectPythonV8Internal::urlStringAttributeAttributeSetter(jsValue, info) ; 4085 TestObjectPythonV8Internal::urlStringAttributeAttributeSetter(v8Value, info) ;
4086 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4086 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4087 } 4087 }
4088 4088
4089 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info) 4089 static void unforgeableLongAttributeAttributeGetter(const v8::PropertyCallbackIn fo<v8::Value>& info)
4090 { 4090 {
4091 v8::Handle<v8::Object> holder = V8TestObjectPython::findInstanceInPrototypeC hain(info.This(), info.GetIsolate()); 4091 v8::Handle<v8::Object> holder = V8TestObjectPython::findInstanceInPrototypeC hain(info.This(), info.GetIsolate());
4092 if (holder.IsEmpty()) 4092 if (holder.IsEmpty())
4093 return; 4093 return;
4094 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4094 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4095 v8SetReturnValueInt(info, impl->unforgeableLongAttribute()); 4095 v8SetReturnValueInt(info, impl->unforgeableLongAttribute());
4096 } 4096 }
4097 4097
4098 static void unforgeableLongAttributeAttributeGetterCallback(v8::Local<v8::String >, const v8::PropertyCallbackInfo<v8::Value>& info) 4098 static void unforgeableLongAttributeAttributeGetterCallback(v8::Local<v8::String >, const v8::PropertyCallbackInfo<v8::Value>& info)
4099 { 4099 {
4100 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4100 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4101 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeGetter(info); 4101 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeGetter(info);
4102 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4102 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4103 } 4103 }
4104 4104
4105 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> jsValue , const v8::PropertyCallbackInfo<void>& info) 4105 static void unforgeableLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value , const v8::PropertyCallbackInfo<void>& info)
4106 { 4106 {
4107 v8::Handle<v8::Object> holder = info.Holder(); 4107 v8::Handle<v8::Object> holder = info.Holder();
4108 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon gAttribute", "TestObjectPython", holder, info.GetIsolate()); 4108 ExceptionState exceptionState(ExceptionState::SetterContext, "unforgeableLon gAttribute", "TestObjectPython", holder, info.GetIsolate());
4109 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4109 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4110 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(jsValue, exceptionState), e xceptionState); 4110 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e xceptionState);
4111 impl->setUnforgeableLongAttribute(cppValue); 4111 impl->setUnforgeableLongAttribute(cppValue);
4112 } 4112 }
4113 4113
4114 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 4114 static void unforgeableLongAttributeAttributeSetterCallback(v8::Local<v8::String >, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4115 { 4115 {
4116 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4116 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4117 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeSetter(jsValue, info); 4117 TestObjectPythonV8Internal::unforgeableLongAttributeAttributeSetter(v8Value, info);
4118 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4118 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4119 } 4119 }
4120 4120
4121 static void anotherStringAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info) 4121 static void anotherStringAttributeAttributeGetter(const v8::PropertyCallbackInfo <v8::Value>& info)
4122 { 4122 {
4123 v8::Handle<v8::Object> holder = info.Holder(); 4123 v8::Handle<v8::Object> holder = info.Holder();
4124 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4124 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4125 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::ReflectUrlAtt ributeAsAStringAttr), info.GetIsolate()); 4125 v8SetReturnValueString(info, impl->fastGetAttribute(HTMLNames::ReflectUrlAtt ributeAsAStringAttr), info.GetIsolate());
4126 } 4126 }
4127 4127
4128 static void anotherStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4128 static void anotherStringAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4129 { 4129 {
4130 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4130 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4131 TestObjectPythonV8Internal::anotherStringAttributeAttributeGetter(info); 4131 TestObjectPythonV8Internal::anotherStringAttributeAttributeGetter(info);
4132 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4132 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4133 } 4133 }
4134 4134
4135 static void anotherStringAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 4135 static void anotherStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4136 { 4136 {
4137 v8::Handle<v8::Object> holder = info.Holder(); 4137 v8::Handle<v8::Object> holder = info.Holder();
4138 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4138 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4139 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); 4139 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value);
4140 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 4140 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
4141 impl->setAttribute(HTMLNames::ReflectUrlAttributeAsAStringAttr, cppValue); 4141 impl->setAttribute(HTMLNames::ReflectUrlAttributeAsAStringAttr, cppValue);
4142 } 4142 }
4143 4143
4144 static void anotherStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 4144 static void anotherStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4145 { 4145 {
4146 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4146 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4147 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 4147 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
4148 TestObjectPythonV8Internal::anotherStringAttributeAttributeSetter(jsValue, i nfo); 4148 TestObjectPythonV8Internal::anotherStringAttributeAttributeSetter(v8Value, i nfo);
4149 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4149 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4150 } 4150 }
4151 4151
4152 static void testInterfacePythonAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info) 4152 static void testInterfacePythonAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
4153 { 4153 {
4154 v8::Handle<v8::Object> holder = info.Holder(); 4154 v8::Handle<v8::Object> holder = info.Holder();
4155 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4155 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4156 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfacePythonAttribute()) , impl); 4156 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfacePythonAttribute()) , impl);
4157 } 4157 }
4158 4158
4159 static void testInterfacePythonAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info) 4159 static void testInterfacePythonAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
4160 { 4160 {
4161 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4161 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4162 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeGetter(info ); 4162 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeGetter(info );
4163 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4163 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4164 } 4164 }
4165 4165
4166 static void testInterfacePythonAttributeAttributeSetter(v8::Local<v8::Value> jsV alue, const v8::PropertyCallbackInfo<void>& info) 4166 static void testInterfacePythonAttributeAttributeSetter(v8::Local<v8::Value> v8V alue, const v8::PropertyCallbackInfo<void>& info)
4167 { 4167 {
4168 v8::Handle<v8::Object> holder = info.Holder(); 4168 v8::Handle<v8::Object> holder = info.Holder();
4169 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4169 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4170 V8TRYCATCH_VOID(TestInterfacePythonImplementation*, cppValue, V8TestInterfac ePython::toNativeWithTypeCheck(info.GetIsolate(), jsValue)); 4170 V8TRYCATCH_VOID(TestInterfacePythonImplementation*, cppValue, V8TestInterfac ePython::toNativeWithTypeCheck(info.GetIsolate(), v8Value));
4171 impl->setTestInterfacePythonAttribute(WTF::getPtr(cppValue)); 4171 impl->setTestInterfacePythonAttribute(WTF::getPtr(cppValue));
4172 } 4172 }
4173 4173
4174 static void testInterfacePythonAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 4174 static void testInterfacePythonAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4175 { 4175 {
4176 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4176 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4177 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeSetter(jsVa lue, info); 4177 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeSetter(v8Va lue, info);
4178 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4178 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4179 } 4179 }
4180 4180
4181 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info) 4181 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetter(const v8 ::PropertyCallbackInfo<v8::Value>& info)
4182 { 4182 {
4183 v8::Handle<v8::Object> holder = info.Holder(); 4183 v8::Handle<v8::Object> holder = info.Holder();
4184 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4184 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4185 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedAttribute()), impl); 4185 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceWillBeGarbageColle ctedAttribute()), impl);
4186 } 4186 }
4187 4187
4188 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4188 static void testInterfaceWillBeGarbageCollectedAttributeAttributeGetterCallback( v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4189 { 4189 {
4190 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4190 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4191 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttr ibuteGetter(info); 4191 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttr ibuteGetter(info);
4192 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4192 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4193 } 4193 }
4194 4194
4195 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 4195 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetter(v8::Loca l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4196 { 4196 {
4197 v8::Handle<v8::Object> holder = info.Holder(); 4197 v8::Handle<v8::Object> holder = info.Holder();
4198 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4198 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4199 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), jsValue)); 4199 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value));
4200 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue)) ; 4200 impl->setTestInterfaceWillBeGarbageCollectedAttribute(WTF::getPtr(cppValue)) ;
4201 } 4201 }
4202 4202
4203 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackI nfo<void>& info) 4203 static void testInterfaceWillBeGarbageCollectedAttributeAttributeSetterCallback( v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI nfo<void>& info)
4204 { 4204 {
4205 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4205 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4206 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttr ibuteSetter(jsValue, info); 4206 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedAttributeAttr ibuteSetter(v8Value, info);
4207 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4207 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4208 } 4208 }
4209 4209
4210 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info) 4210 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetter(co nst v8::PropertyCallbackInfo<v8::Value>& info)
4211 { 4211 {
4212 v8::Handle<v8::Object> holder = info.Holder(); 4212 v8::Handle<v8::Object> holder = info.Holder();
4213 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4213 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4214 bool isNull = false; 4214 bool isNull = false;
4215 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> jsValue = impl->test InterfaceWillBeGarbageCollectedOrNullAttribute(isNull); 4215 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> v8Value = impl->test InterfaceWillBeGarbageCollectedOrNullAttribute(isNull);
4216 if (isNull) { 4216 if (isNull) {
4217 v8SetReturnValueNull(info); 4217 v8SetReturnValueNull(info);
4218 return; 4218 return;
4219 } 4219 }
4220 v8SetReturnValueFast(info, WTF::getPtr(jsValue.release()), impl); 4220 v8SetReturnValueFast(info, WTF::getPtr(v8Value.release()), impl);
4221 } 4221 }
4222 4222
4223 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4223 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeGetterCal lback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4224 { 4224 {
4225 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4225 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4226 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttribu teAttributeGetter(info); 4226 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttribu teAttributeGetter(info);
4227 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4227 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4228 } 4228 }
4229 4229
4230 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8 ::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 4230 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetter(v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4231 { 4231 {
4232 v8::Handle<v8::Object> holder = info.Holder(); 4232 v8::Handle<v8::Object> holder = info.Holder();
4233 TestObjectPython* impl = V8TestObjectPython::toNative(holder); 4233 TestObjectPython* impl = V8TestObjectPython::toNative(holder);
4234 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), jsValue)); 4234 V8TRYCATCH_VOID(TestInterfaceWillBeGarbageCollected*, cppValue, V8TestInterf aceWillBeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), v8Value));
4235 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV alue)); 4235 impl->setTestInterfaceWillBeGarbageCollectedOrNullAttribute(WTF::getPtr(cppV alue));
4236 } 4236 }
4237 4237
4238 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCal lbackInfo<void>& info) 4238 static void testInterfaceWillBeGarbageCollectedOrNullAttributeAttributeSetterCal lback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCal lbackInfo<void>& info)
4239 { 4239 {
4240 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4240 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4241 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttribu teAttributeSetter(jsValue, info); 4241 TestObjectPythonV8Internal::testInterfaceWillBeGarbageCollectedOrNullAttribu teAttributeSetter(v8Value, info);
4242 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4242 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4243 } 4243 }
4244 4244
4245 static void TestObjectPythonConstructorGetter(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info) 4245 static void TestObjectPythonConstructorGetter(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info)
4246 { 4246 {
4247 v8::Handle<v8::Value> data = info.Data(); 4247 v8::Handle<v8::Value> data = info.Data();
4248 ASSERT(data->IsExternal()); 4248 ASSERT(data->IsExternal());
4249 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext()); 4249 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext());
4250 if (!perContextData) 4250 if (!perContextData)
4251 return; 4251 return;
4252 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u nwrap(data))); 4252 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u nwrap(data)));
4253 } 4253 }
4254 4254
4255 static void TestObjectPythonReplaceableAttributeSetter(v8::Local<v8::String> nam e, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 4255 static void TestObjectPythonReplaceableAttributeSetter(v8::Local<v8::String> nam e, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4256 { 4256 {
4257 info.This()->ForceSet(name, jsValue); 4257 info.This()->ForceSet(name, v8Value);
4258 } 4258 }
4259 4259
4260 static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str ing> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo) 4260 static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::Str ing> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i nfo)
4261 { 4261 {
4262 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name, jsValue, info); 4262 TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name, v8Value, info);
4263 } 4263 }
4264 4264
4265 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 4265 static void voidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
4266 { 4266 {
4267 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder()); 4267 TestObjectPython* impl = V8TestObjectPython::toNative(info.Holder());
4268 impl->voidMethod(); 4268 impl->voidMethod();
4269 } 4269 }
4270 4270
4271 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) 4271 static void voidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
4272 { 4272 {
(...skipping 3695 matching lines...) Expand 10 before | Expand all | Expand 10 after
7968 if (!result.IsEmpty()) 7968 if (!result.IsEmpty())
7969 return result; 7969 return result;
7970 7970
7971 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); 7971 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate");
7972 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons tructorMode); 7972 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons tructorMode);
7973 configureV8TestObjectPythonTemplate(result, isolate); 7973 configureV8TestObjectPythonTemplate(result, isolate);
7974 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result) ; 7974 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result) ;
7975 return result; 7975 return result;
7976 } 7976 }
7977 7977
7978 bool V8TestObjectPython::hasInstance(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate) 7978 bool V8TestObjectPython::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate)
7979 { 7979 {
7980 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu e); 7980 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e);
7981 } 7981 }
7982 7982
7983 v8::Handle<v8::Object> V8TestObjectPython::findInstanceInPrototypeChain(v8::Hand le<v8::Value> jsValue, v8::Isolate* isolate) 7983 v8::Handle<v8::Object> V8TestObjectPython::findInstanceInPrototypeChain(v8::Hand le<v8::Value> v8Value, v8::Isolate* isolate)
7984 { 7984 {
7985 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, jsValue); 7985 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
7986 } 7986 }
7987 7987
7988 TestObjectPython* V8TestObjectPython::toNativeWithTypeCheck(v8::Isolate* isolate , v8::Handle<v8::Value> value) 7988 TestObjectPython* V8TestObjectPython::toNativeWithTypeCheck(v8::Isolate* isolate , v8::Handle<v8::Value> value)
7989 { 7989 {
7990 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) : 0; 7990 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) : 0;
7991 } 7991 }
7992 7992
7993 void V8TestObjectPython::installPerContextEnabledProperties(v8::Handle<v8::Objec t> instanceTemplate, TestObjectPython* impl, v8::Isolate* isolate) 7993 void V8TestObjectPython::installPerContextEnabledProperties(v8::Handle<v8::Objec t> instanceTemplate, TestObjectPython* impl, v8::Isolate* isolate)
7994 { 7994 {
7995 v8::Local<v8::Object> prototypeTemplate = v8::Local<v8::Object>::Cast(instan ceTemplate->GetPrototype()); 7995 v8::Local<v8::Object> prototypeTemplate = v8::Local<v8::Object>::Cast(instan ceTemplate->GetPrototype());
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
8039 fromInternalPointer(object)->deref(); 8039 fromInternalPointer(object)->deref();
8040 } 8040 }
8041 8041
8042 template<> 8042 template<>
8043 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) 8043 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate)
8044 { 8044 {
8045 return toV8(impl, creationContext, isolate); 8045 return toV8(impl, creationContext, isolate);
8046 } 8046 }
8047 8047
8048 } // namespace WebCore 8048 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestObject.cpp ('k') | Source/bindings/tests/results/V8TestSpecialOperationsAnonymous.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698