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

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

Issue 18916003: Performance.onwebkitresourcetimingbufferfull should be a Function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 /* 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 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 return; 794 return;
795 } 795 }
796 796
797 static void typedArrayAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Loc al<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 797 static void typedArrayAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Loc al<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
798 { 798 {
799 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 799 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
800 TestObjV8Internal::typedArrayAttrAttrSetter(name, value, info); 800 TestObjV8Internal::typedArrayAttrAttrSetter(name, value, info);
801 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 801 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
802 } 802 }
803 803
804 static void functionAttrAttrGetter(v8::Local<v8::String> name, const v8::Propert yCallbackInfo<v8::Value>& info)
805 {
806 TestObj* imp = V8TestObject::toNative(info.Holder());
807 v8SetReturnValue(info, imp->functionAttr().v8Value());
808 return;
809 }
810
811 static void functionAttrAttrGetterCallback(v8::Local<v8::String> name, const v8: :PropertyCallbackInfo<v8::Value>& info)
812 {
813 TestObjV8Internal::functionAttrAttrGetter(name, info);
814 }
815
816 static void functionAttrAttrSetter(v8::Local<v8::String> name, v8::Local<v8::Val ue> value, const v8::PropertyCallbackInfo<void>& info)
817 {
818 TestObj* imp = V8TestObject::toNative(info.Holder());
819 V8TRYCATCH_VOID(ScriptValue, v, ScriptValue(value));
820 imp->setFunctionAttr(v);
821 return;
822 }
823
824 static void functionAttrAttrSetterCallback(v8::Local<v8::String> name, v8::Local <v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
825 {
826 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
827 TestObjV8Internal::functionAttrAttrSetter(name, value, info);
828 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
829 }
830
804 static void attrWithGetterExceptionAttrGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 831 static void attrWithGetterExceptionAttrGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
805 { 832 {
806 TestObj* imp = V8TestObject::toNative(info.Holder()); 833 TestObj* imp = V8TestObject::toNative(info.Holder());
807 ExceptionCode ec = 0; 834 ExceptionCode ec = 0;
808 int v = imp->attrWithGetterException(ec); 835 int v = imp->attrWithGetterException(ec);
809 if (UNLIKELY(ec)) { 836 if (UNLIKELY(ec)) {
810 setDOMException(ec, info.GetIsolate()); 837 setDOMException(ec, info.GetIsolate());
811 return; 838 return;
812 }; 839 };
813 v8SetReturnValueInt(info, v); 840 v8SetReturnValueInt(info, v);
(...skipping 4283 matching lines...) Expand 10 before | Expand all | Expand 10 after
5097 // Attribute 'reflectedStringAttr' 5124 // Attribute 'reflectedStringAttr'
5098 {"reflectedStringAttr", TestObjV8Internal::reflectedStringAttrAttrGetterCall back, TestObjV8Internal::reflectedStringAttrAttrSetterCallback, 0, 0, 0 /* no da ta */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), 0 /* on instance */}, 5125 {"reflectedStringAttr", TestObjV8Internal::reflectedStringAttrAttrGetterCall back, TestObjV8Internal::reflectedStringAttrAttrSetterCallback, 0, 0, 0 /* no da ta */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), 0 /* on instance */},
5099 // Attribute 'reflectedCustomIntegralAttr' 5126 // Attribute 'reflectedCustomIntegralAttr'
5100 {"reflectedCustomIntegralAttr", TestObjV8Internal::reflectedCustomIntegralAt trAttrGetterCallback, TestObjV8Internal::reflectedCustomIntegralAttrAttrSetterCa llback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), stat ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5127 {"reflectedCustomIntegralAttr", TestObjV8Internal::reflectedCustomIntegralAt trAttrGetterCallback, TestObjV8Internal::reflectedCustomIntegralAttrAttrSetterCa llback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), stat ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5101 // Attribute 'reflectedCustomBooleanAttr' 5128 // Attribute 'reflectedCustomBooleanAttr'
5102 {"reflectedCustomBooleanAttr", TestObjV8Internal::reflectedCustomBooleanAttr AttrGetterCallback, TestObjV8Internal::reflectedCustomBooleanAttrAttrSetterCallb ack, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5129 {"reflectedCustomBooleanAttr", TestObjV8Internal::reflectedCustomBooleanAttr AttrGetterCallback, TestObjV8Internal::reflectedCustomBooleanAttrAttrSetterCallb ack, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5103 // Attribute 'reflectedCustomURLAttr' 5130 // Attribute 'reflectedCustomURLAttr'
5104 {"reflectedCustomURLAttr", TestObjV8Internal::reflectedCustomURLAttrAttrGett erCallback, TestObjV8Internal::reflectedCustomURLAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), 0 /* on instance */}, 5131 {"reflectedCustomURLAttr", TestObjV8Internal::reflectedCustomURLAttrAttrGett erCallback, TestObjV8Internal::reflectedCustomURLAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), 0 /* on instance */},
5105 // Attribute 'typedArrayAttr' 5132 // Attribute 'typedArrayAttr'
5106 {"typedArrayAttr", TestObjV8Internal::typedArrayAttrAttrGetterCallback, Test ObjV8Internal::typedArrayAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_c ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None ), 0 /* on instance */}, 5133 {"typedArrayAttr", TestObjV8Internal::typedArrayAttrAttrGetterCallback, Test ObjV8Internal::typedArrayAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_c ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None ), 0 /* on instance */},
5134 // Attribute 'functionAttr'
5135 {"functionAttr", TestObjV8Internal::functionAttrAttrGetterCallback, TestObjV 8Internal::functionAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 / * on instance */},
5107 // Attribute 'attrWithGetterException' 5136 // Attribute 'attrWithGetterException'
5108 {"attrWithGetterException", TestObjV8Internal::attrWithGetterExceptionAttrGe tterCallback, TestObjV8Internal::attrWithGetterExceptionAttrSetterCallback, 0, 0 , 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */}, 5137 {"attrWithGetterException", TestObjV8Internal::attrWithGetterExceptionAttrGe tterCallback, TestObjV8Internal::attrWithGetterExceptionAttrSetterCallback, 0, 0 , 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */},
5109 // Attribute 'attrWithSetterException' 5138 // Attribute 'attrWithSetterException'
5110 {"attrWithSetterException", TestObjV8Internal::attrWithSetterExceptionAttrGe tterCallback, TestObjV8Internal::attrWithSetterExceptionAttrSetterCallback, 0, 0 , 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */}, 5139 {"attrWithSetterException", TestObjV8Internal::attrWithSetterExceptionAttrGe tterCallback, TestObjV8Internal::attrWithSetterExceptionAttrSetterCallback, 0, 0 , 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */},
5111 // Attribute 'stringAttrWithGetterException' 5140 // Attribute 'stringAttrWithGetterException'
5112 {"stringAttrWithGetterException", TestObjV8Internal::stringAttrWithGetterExc eptionAttrGetterCallback, TestObjV8Internal::stringAttrWithGetterExceptionAttrSe tterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5141 {"stringAttrWithGetterException", TestObjV8Internal::stringAttrWithGetterExc eptionAttrGetterCallback, TestObjV8Internal::stringAttrWithGetterExceptionAttrSe tterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5113 // Attribute 'stringAttrWithSetterException' 5142 // Attribute 'stringAttrWithSetterException'
5114 {"stringAttrWithSetterException", TestObjV8Internal::stringAttrWithSetterExc eptionAttrGetterCallback, TestObjV8Internal::stringAttrWithSetterExceptionAttrSe tterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5143 {"stringAttrWithSetterException", TestObjV8Internal::stringAttrWithSetterExc eptionAttrGetterCallback, TestObjV8Internal::stringAttrWithSetterExceptionAttrSe tterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5115 // Attribute 'customAttr' 5144 // Attribute 'customAttr'
5116 {"customAttr", TestObjV8Internal::customAttrAttrGetterCallback, TestObjV8Int ernal::customAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, 5145 {"customAttr", TestObjV8Internal::customAttrAttrGetterCallback, TestObjV8Int ernal::customAttrAttrSetterCallback, 0, 0, 0 /* no data */, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */},
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
5542 installPerContextProperties(wrapper, impl.get(), isolate); 5571 installPerContextProperties(wrapper, impl.get(), isolate);
5543 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap perConfiguration::Independent); 5572 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap perConfiguration::Independent);
5544 return wrapper; 5573 return wrapper;
5545 } 5574 }
5546 void V8TestObject::derefObject(void* object) 5575 void V8TestObject::derefObject(void* object)
5547 { 5576 {
5548 static_cast<TestObj*>(object)->deref(); 5577 static_cast<TestObj*>(object)->deref();
5549 } 5578 }
5550 5579
5551 } // namespace WebCore 5580 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698