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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 namespace WebCore { | 58 namespace WebCore { |
59 WrapperTypeInfo V8TestEventConstructor::info = { V8TestEventConstructor::GetTemp
late, V8TestEventConstructor::derefObject, 0, 0, 0, V8TestEventConstructor::inst
allPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype }; | 59 WrapperTypeInfo V8TestEventConstructor::info = { V8TestEventConstructor::GetTemp
late, V8TestEventConstructor::derefObject, 0, 0, 0, V8TestEventConstructor::inst
allPerContextPrototypeProperties, 0, WrapperTypeObjectPrototype }; |
60 | 60 |
61 namespace TestEventConstructorV8Internal { | 61 namespace TestEventConstructorV8Internal { |
62 | 62 |
63 template <typename T> void V8_USE(T) { } | 63 template <typename T> void V8_USE(T) { } |
64 | 64 |
65 static void attr1AttrGetter(v8::Local<v8::String> name, const v8::PropertyCallba
ckInfo<v8::Value>& info) | 65 static void attr1AttrGetter(v8::Local<v8::String> name, const v8::PropertyCallba
ckInfo<v8::Value>& info) |
66 { | 66 { |
67 TestEventConstructor* imp = V8TestEventConstructor::toNative(info.Holder()); | 67 TestEventConstructor* imp = V8TestEventConstructor::toNative(info.Holder()); |
68 v8SetReturnValueString(info, imp->attr1(), info.GetIsolate(), NullStringAsEm
pty); | 68 v8SetReturnValueString(info, imp->attr1(), info.GetIsolate()); |
69 return; | 69 return; |
70 } | 70 } |
71 | 71 |
72 static void attr1AttrGetterCallback(v8::Local<v8::String> name, const v8::Proper
tyCallbackInfo<v8::Value>& info) | 72 static void attr1AttrGetterCallback(v8::Local<v8::String> name, const v8::Proper
tyCallbackInfo<v8::Value>& info) |
73 { | 73 { |
74 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 74 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
75 TestEventConstructorV8Internal::attr1AttrGetter(name, info); | 75 TestEventConstructorV8Internal::attr1AttrGetter(name, info); |
76 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 76 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
77 } | 77 } |
78 | 78 |
79 static void attr2AttrGetter(v8::Local<v8::String> name, const v8::PropertyCallba
ckInfo<v8::Value>& info) | 79 static void attr2AttrGetter(v8::Local<v8::String> name, const v8::PropertyCallba
ckInfo<v8::Value>& info) |
80 { | 80 { |
81 TestEventConstructor* imp = V8TestEventConstructor::toNative(info.Holder()); | 81 TestEventConstructor* imp = V8TestEventConstructor::toNative(info.Holder()); |
82 v8SetReturnValueString(info, imp->attr2(), info.GetIsolate(), NullStringAsEm
pty); | 82 v8SetReturnValueString(info, imp->attr2(), info.GetIsolate()); |
83 return; | 83 return; |
84 } | 84 } |
85 | 85 |
86 static void attr2AttrGetterCallback(v8::Local<v8::String> name, const v8::Proper
tyCallbackInfo<v8::Value>& info) | 86 static void attr2AttrGetterCallback(v8::Local<v8::String> name, const v8::Proper
tyCallbackInfo<v8::Value>& info) |
87 { | 87 { |
88 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 88 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
89 TestEventConstructorV8Internal::attr2AttrGetter(name, info); | 89 TestEventConstructorV8Internal::attr2AttrGetter(name, info); |
90 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 90 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
91 } | 91 } |
92 | 92 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 installPerContextProperties(wrapper, impl.get(), isolate); | 204 installPerContextProperties(wrapper, impl.get(), isolate); |
205 V8DOMWrapper::associateObjectWithWrapper<V8TestEventConstructor>(impl, &info
, wrapper, isolate, WrapperConfiguration::Independent); | 205 V8DOMWrapper::associateObjectWithWrapper<V8TestEventConstructor>(impl, &info
, wrapper, isolate, WrapperConfiguration::Independent); |
206 return wrapper; | 206 return wrapper; |
207 } | 207 } |
208 void V8TestEventConstructor::derefObject(void* object) | 208 void V8TestEventConstructor::derefObject(void* object) |
209 { | 209 { |
210 fromInternalPointer(object)->deref(); | 210 fromInternalPointer(object)->deref(); |
211 } | 211 } |
212 | 212 |
213 } // namespace WebCore | 213 } // namespace WebCore |
OLD | NEW |