| OLD | NEW |
| 1 /* | 1 /* |
| 2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
| 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
| 4 | 4 |
| 5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
| 6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
| 7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
| 8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
| 9 | 9 |
| 10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 static void eventHandlerAttrAttributeGetterCallback(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) | 446 static void eventHandlerAttrAttributeGetterCallback(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 447 { | 447 { |
| 448 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 448 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 449 TestObjV8Internal::eventHandlerAttrAttributeGetter(name, info); | 449 TestObjV8Internal::eventHandlerAttrAttributeGetter(name, info); |
| 450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 450 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 451 } | 451 } |
| 452 | 452 |
| 453 static void eventHandlerAttrAttributeSetter(v8::Local<v8::String> name, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 453 static void eventHandlerAttrAttributeSetter(v8::Local<v8::String> name, v8::Loca
l<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 454 { | 454 { |
| 455 TestObj* imp = V8TestObject::toNative(info.Holder()); | 455 TestObj* imp = V8TestObject::toNative(info.Holder()); |
| 456 if (!jsValue->IsNull() && !jsValue->IsFunction()) | |
| 457 jsValue = v8::Null(info.GetIsolate()); | |
| 458 transferHiddenDependency(info.Holder(), imp->eventHandlerAttr(isolatedWorldF
orIsolate(info.GetIsolate())), jsValue, V8TestObject::eventListenerCacheIndex, i
nfo.GetIsolate()); | 456 transferHiddenDependency(info.Holder(), imp->eventHandlerAttr(isolatedWorldF
orIsolate(info.GetIsolate())), jsValue, V8TestObject::eventListenerCacheIndex, i
nfo.GetIsolate()); |
| 459 imp->setEventHandlerAttr(V8EventListenerList::getEventListener(jsValue, true
, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); | 457 imp->setEventHandlerAttr(V8EventListenerList::getEventListener(jsValue, true
, ListenerFindOrCreate), isolatedWorldForIsolate(info.GetIsolate())); |
| 460 } | 458 } |
| 461 | 459 |
| 462 static void eventHandlerAttrAttributeSetterCallback(v8::Local<v8::String> name,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 460 static void eventHandlerAttrAttributeSetterCallback(v8::Local<v8::String> name,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
| 463 { | 461 { |
| 464 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 462 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 465 TestObjV8Internal::eventHandlerAttrAttributeSetter(name, jsValue, info); | 463 TestObjV8Internal::eventHandlerAttrAttributeSetter(name, jsValue, info); |
| 466 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 464 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 467 } | 465 } |
| (...skipping 5066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5534 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper,
isolate, WrapperConfiguration::Independent); | 5532 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper,
isolate, WrapperConfiguration::Independent); |
| 5535 return wrapper; | 5533 return wrapper; |
| 5536 } | 5534 } |
| 5537 | 5535 |
| 5538 void V8TestObject::derefObject(void* object) | 5536 void V8TestObject::derefObject(void* object) |
| 5539 { | 5537 { |
| 5540 fromInternalPointer(object)->deref(); | 5538 fromInternalPointer(object)->deref(); |
| 5541 } | 5539 } |
| 5542 | 5540 |
| 5543 } // namespace WebCore | 5541 } // namespace WebCore |
| OLD | NEW |