OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #if ENABLE(Condition1) || ENABLE(Condition2) | 8 #if ENABLE(Condition1) || ENABLE(Condition2) |
9 #include "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 84 |
85 static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) | 85 static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) |
86 { | 86 { |
87 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 87 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
88 TestInterfaceV8Internal::implementsStaticStringAttributeAttributeSetter(jsVa
lue, info); | 88 TestInterfaceV8Internal::implementsStaticStringAttributeAttributeSetter(jsVa
lue, info); |
89 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 89 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
90 } | 90 } |
91 | 91 |
92 static void implementsReadonlyStringAttributeAttributeGetter(const v8::PropertyC
allbackInfo<v8::Value>& info) | 92 static void implementsReadonlyStringAttributeAttributeGetter(const v8::PropertyC
allbackInfo<v8::Value>& info) |
93 { | 93 { |
94 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 94 v8::Handle<v8::Object> holder = info.Holder(); |
| 95 TestInterface* impl = V8TestInterface::toNative(holder); |
95 ASSERT(impl); | 96 ASSERT(impl); |
96 v8SetReturnValueString(info, TestImplements::implementsReadonlyStringAttribu
te(*impl), info.GetIsolate()); | 97 v8SetReturnValueString(info, TestImplements::implementsReadonlyStringAttribu
te(*impl), info.GetIsolate()); |
97 } | 98 } |
98 | 99 |
99 static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v
8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 100 static void implementsReadonlyStringAttributeAttributeGetterCallback(v8::Local<v
8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
100 { | 101 { |
101 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 102 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
102 TestInterfaceV8Internal::implementsReadonlyStringAttributeAttributeGetter(in
fo); | 103 TestInterfaceV8Internal::implementsReadonlyStringAttributeAttributeGetter(in
fo); |
103 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 104 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
104 } | 105 } |
105 | 106 |
106 static void implementsStringAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) | 107 static void implementsStringAttributeAttributeGetter(const v8::PropertyCallbackI
nfo<v8::Value>& info) |
107 { | 108 { |
108 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 109 v8::Handle<v8::Object> holder = info.Holder(); |
| 110 TestInterface* impl = V8TestInterface::toNative(holder); |
109 ASSERT(impl); | 111 ASSERT(impl); |
110 v8SetReturnValueString(info, TestImplements::implementsStringAttribute(*impl
), info.GetIsolate()); | 112 v8SetReturnValueString(info, TestImplements::implementsStringAttribute(*impl
), info.GetIsolate()); |
111 } | 113 } |
112 | 114 |
113 static void implementsStringAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) | 115 static void implementsStringAttributeAttributeGetterCallback(v8::Local<v8::Strin
g>, const v8::PropertyCallbackInfo<v8::Value>& info) |
114 { | 116 { |
115 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
116 TestInterfaceV8Internal::implementsStringAttributeAttributeGetter(info); | 118 TestInterfaceV8Internal::implementsStringAttributeAttributeGetter(info); |
117 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
118 } | 120 } |
119 | 121 |
120 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 122 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) |
121 { | 123 { |
122 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 124 v8::Handle<v8::Object> holder = info.Holder(); |
| 125 TestInterface* impl = V8TestInterface::toNative(holder); |
123 ASSERT(impl); | 126 ASSERT(impl); |
124 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 127 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
125 TestImplements::setImplementsStringAttribute(*impl, cppValue); | 128 TestImplements::setImplementsStringAttribute(*impl, cppValue); |
126 } | 129 } |
127 | 130 |
128 static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 131 static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
129 { | 132 { |
130 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 133 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
131 TestInterfaceV8Internal::implementsStringAttributeAttributeSetter(jsValue, i
nfo); | 134 TestInterfaceV8Internal::implementsStringAttributeAttributeSetter(jsValue, i
nfo); |
132 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 135 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
133 } | 136 } |
134 | 137 |
135 static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 138 static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
136 { | 139 { |
137 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 140 v8::Handle<v8::Object> holder = info.Holder(); |
| 141 TestInterface* impl = V8TestInterface::toNative(holder); |
138 ASSERT(impl); | 142 ASSERT(impl); |
139 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsNodeAttribu
te(*impl)), impl); | 143 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsNodeAttribu
te(*impl)), impl); |
140 } | 144 } |
141 | 145 |
142 static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) | 146 static void implementsNodeAttributeAttributeGetterCallback(v8::Local<v8::String>
, const v8::PropertyCallbackInfo<v8::Value>& info) |
143 { | 147 { |
144 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 148 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
145 TestInterfaceV8Internal::implementsNodeAttributeAttributeGetter(info); | 149 TestInterfaceV8Internal::implementsNodeAttributeAttributeGetter(info); |
146 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 150 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
147 } | 151 } |
148 | 152 |
149 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 153 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) |
150 { | 154 { |
151 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 155 v8::Handle<v8::Object> holder = info.Holder(); |
| 156 TestInterface* impl = V8TestInterface::toNative(holder); |
152 ASSERT(impl); | 157 ASSERT(impl); |
153 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); | 158 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); |
154 TestImplements::setImplementsNodeAttribute(*impl, WTF::getPtr(cppValue)); | 159 TestImplements::setImplementsNodeAttribute(*impl, WTF::getPtr(cppValue)); |
155 } | 160 } |
156 | 161 |
157 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 162 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
158 { | 163 { |
159 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 164 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
160 TestInterfaceV8Internal::implementsNodeAttributeAttributeSetter(jsValue, inf
o); | 165 TestInterfaceV8Internal::implementsNodeAttributeAttributeSetter(jsValue, inf
o); |
161 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 166 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
162 } | 167 } |
163 | 168 |
164 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) | 169 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) |
165 { | 170 { |
166 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 171 v8::Handle<v8::Object> holder = info.Holder(); |
| 172 TestInterface* impl = V8TestInterface::toNative(holder); |
167 ASSERT(impl); | 173 ASSERT(impl); |
168 EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(*im
pl); | 174 EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(*im
pl); |
169 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen
er::cast(jsValue)->getListenerObject(impl->executionContext())) : v8::Handle<v8:
:Value>(v8::Null(info.GetIsolate()))); | 175 v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListen
er::cast(jsValue)->getListenerObject(impl->executionContext())) : v8::Handle<v8:
:Value>(v8::Null(info.GetIsolate()))); |
170 } | 176 } |
171 | 177 |
172 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8:
:String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 178 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8:
:String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
173 { | 179 { |
174 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 180 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
175 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeGetter(info
); | 181 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeGetter(info
); |
176 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 182 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
177 } | 183 } |
178 | 184 |
179 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) | 185 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) |
180 { | 186 { |
181 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 187 v8::Isolate* isolate = info.GetIsolate(); |
| 188 v8::Handle<v8::Object> holder = info.Holder(); |
| 189 TestInterface* impl = V8TestInterface::toNative(holder); |
182 ASSERT(impl); | 190 ASSERT(impl); |
183 moveEventListenerToNewWrapper(info.Holder(), TestImplements::implementsEvent
HandlerAttribute(*impl), jsValue, V8TestInterface::eventListenerCacheIndex, info
.GetIsolate()); | 191 moveEventListenerToNewWrapper(holder, TestImplements::implementsEventHandler
Attribute(*impl), jsValue, V8TestInterface::eventListenerCacheIndex, isolate); |
184 TestImplements::setImplementsEventHandlerAttribute(*impl, V8EventListenerLis
t::getEventListener(jsValue, true, ListenerFindOrCreate)); | 192 TestImplements::setImplementsEventHandlerAttribute(*impl, V8EventListenerLis
t::getEventListener(jsValue, true, ListenerFindOrCreate)); |
185 } | 193 } |
186 | 194 |
187 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) | 195 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) |
188 { | 196 { |
189 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 197 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
190 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeSetter(jsVa
lue, info); | 198 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeSetter(jsVa
lue, info); |
191 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 199 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
192 } | 200 } |
193 | 201 |
194 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 202 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
195 { | 203 { |
196 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 204 v8::Handle<v8::Object> holder = info.Holder(); |
| 205 TestInterface* impl = V8TestInterface::toNative(holder); |
197 ASSERT(impl); | 206 ASSERT(impl); |
198 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsRuntimeEnab
ledNodeAttribute(*impl)), impl); | 207 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsRuntimeEnab
ledNodeAttribute(*impl)), impl); |
199 } | 208 } |
200 | 209 |
201 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 210 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
202 { | 211 { |
203 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 212 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
204 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeGette
r(info); | 213 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeGette
r(info); |
205 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 214 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
206 } | 215 } |
207 | 216 |
208 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V
alue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 217 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V
alue> jsValue, const v8::PropertyCallbackInfo<void>& info) |
209 { | 218 { |
210 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 219 v8::Handle<v8::Object> holder = info.Holder(); |
| 220 TestInterface* impl = V8TestInterface::toNative(holder); |
211 ASSERT(impl); | 221 ASSERT(impl); |
212 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); | 222 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); |
213 TestImplements::setImplementsRuntimeEnabledNodeAttribute(*impl, WTF::getPtr(
cppValue)); | 223 TestImplements::setImplementsRuntimeEnabledNodeAttribute(*impl, WTF::getPtr(
cppValue)); |
214 } | 224 } |
215 | 225 |
216 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi
d>& info) | 226 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi
d>& info) |
217 { | 227 { |
218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 228 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
219 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeSette
r(jsValue, info); | 229 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeSette
r(jsValue, info); |
220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 230 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
221 } | 231 } |
222 | 232 |
223 static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 233 static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
224 { | 234 { |
225 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 235 v8::Handle<v8::Object> holder = info.Holder(); |
| 236 TestInterface* impl = V8TestInterface::toNative(holder); |
226 ASSERT(impl); | 237 ASSERT(impl); |
227 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsPerContextE
nabledNodeAttribute(*impl)), impl); | 238 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsPerContextE
nabledNodeAttribute(*impl)), impl); |
228 } | 239 } |
229 | 240 |
230 static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 241 static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
231 { | 242 { |
232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 243 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
233 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeGe
tter(info); | 244 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeGe
tter(info); |
234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 245 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
235 } | 246 } |
236 | 247 |
237 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 248 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
238 { | 249 { |
239 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 250 v8::Handle<v8::Object> holder = info.Holder(); |
| 251 TestInterface* impl = V8TestInterface::toNative(holder); |
240 ASSERT(impl); | 252 ASSERT(impl); |
241 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); | 253 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); |
242 TestImplements::setImplementsPerContextEnabledNodeAttribute(*impl, WTF::getP
tr(cppValue)); | 254 TestImplements::setImplementsPerContextEnabledNodeAttribute(*impl, WTF::getP
tr(cppValue)); |
243 } | 255 } |
244 | 256 |
245 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<
void>& info) | 257 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<
void>& info) |
246 { | 258 { |
247 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 259 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
248 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeSe
tter(jsValue, info); | 260 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeSe
tter(jsValue, info); |
249 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 261 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 { | 306 { |
295 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 307 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
296 TestInterfaceV8Internal::supplementalStaticAttrAttributeSetter(jsValue, info
); | 308 TestInterfaceV8Internal::supplementalStaticAttrAttributeSetter(jsValue, info
); |
297 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 309 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
298 } | 310 } |
299 #endif // ENABLE(CONDITION_PARTIAL) | 311 #endif // ENABLE(CONDITION_PARTIAL) |
300 | 312 |
301 #if ENABLE(CONDITION_PARTIAL) | 313 #if ENABLE(CONDITION_PARTIAL) |
302 static void supplementalStr1AttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 314 static void supplementalStr1AttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) |
303 { | 315 { |
304 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 316 v8::Handle<v8::Object> holder = info.Holder(); |
| 317 TestInterface* impl = V8TestInterface::toNative(holder); |
305 ASSERT(impl); | 318 ASSERT(impl); |
306 v8SetReturnValueString(info, TestPartialInterface::supplementalStr1(*impl),
info.GetIsolate()); | 319 v8SetReturnValueString(info, TestPartialInterface::supplementalStr1(*impl),
info.GetIsolate()); |
307 } | 320 } |
308 #endif // ENABLE(CONDITION_PARTIAL) | 321 #endif // ENABLE(CONDITION_PARTIAL) |
309 | 322 |
310 #if ENABLE(CONDITION_PARTIAL) | 323 #if ENABLE(CONDITION_PARTIAL) |
311 static void supplementalStr1AttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 324 static void supplementalStr1AttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
312 { | 325 { |
313 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 326 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
314 TestInterfaceV8Internal::supplementalStr1AttributeGetter(info); | 327 TestInterfaceV8Internal::supplementalStr1AttributeGetter(info); |
315 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 328 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
316 } | 329 } |
317 #endif // ENABLE(CONDITION_PARTIAL) | 330 #endif // ENABLE(CONDITION_PARTIAL) |
318 | 331 |
319 #if ENABLE(CONDITION_PARTIAL) | 332 #if ENABLE(CONDITION_PARTIAL) |
320 static void supplementalStr2AttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 333 static void supplementalStr2AttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) |
321 { | 334 { |
322 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 335 v8::Handle<v8::Object> holder = info.Holder(); |
| 336 TestInterface* impl = V8TestInterface::toNative(holder); |
323 ASSERT(impl); | 337 ASSERT(impl); |
324 v8SetReturnValueString(info, TestPartialInterface::supplementalStr2(*impl),
info.GetIsolate()); | 338 v8SetReturnValueString(info, TestPartialInterface::supplementalStr2(*impl),
info.GetIsolate()); |
325 } | 339 } |
326 #endif // ENABLE(CONDITION_PARTIAL) | 340 #endif // ENABLE(CONDITION_PARTIAL) |
327 | 341 |
328 #if ENABLE(CONDITION_PARTIAL) | 342 #if ENABLE(CONDITION_PARTIAL) |
329 static void supplementalStr2AttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 343 static void supplementalStr2AttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
330 { | 344 { |
331 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 345 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
332 TestInterfaceV8Internal::supplementalStr2AttributeGetter(info); | 346 TestInterfaceV8Internal::supplementalStr2AttributeGetter(info); |
333 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 347 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
334 } | 348 } |
335 #endif // ENABLE(CONDITION_PARTIAL) | 349 #endif // ENABLE(CONDITION_PARTIAL) |
336 | 350 |
337 #if ENABLE(CONDITION_PARTIAL) | 351 #if ENABLE(CONDITION_PARTIAL) |
338 static void supplementalStr2AttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 352 static void supplementalStr2AttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
339 { | 353 { |
340 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 354 v8::Handle<v8::Object> holder = info.Holder(); |
| 355 TestInterface* impl = V8TestInterface::toNative(holder); |
341 ASSERT(impl); | 356 ASSERT(impl); |
342 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 357 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); |
343 TestPartialInterface::setSupplementalStr2(*impl, cppValue); | 358 TestPartialInterface::setSupplementalStr2(*impl, cppValue); |
344 } | 359 } |
345 #endif // ENABLE(CONDITION_PARTIAL) | 360 #endif // ENABLE(CONDITION_PARTIAL) |
346 | 361 |
347 #if ENABLE(CONDITION_PARTIAL) | 362 #if ENABLE(CONDITION_PARTIAL) |
348 static void supplementalStr2AttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 363 static void supplementalStr2AttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
349 { | 364 { |
350 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 365 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
351 TestInterfaceV8Internal::supplementalStr2AttributeSetter(jsValue, info); | 366 TestInterfaceV8Internal::supplementalStr2AttributeSetter(jsValue, info); |
352 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 367 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
353 } | 368 } |
354 #endif // ENABLE(CONDITION_PARTIAL) | 369 #endif // ENABLE(CONDITION_PARTIAL) |
355 | 370 |
356 #if ENABLE(CONDITION_PARTIAL) | 371 #if ENABLE(CONDITION_PARTIAL) |
357 static void supplementalNodeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 372 static void supplementalNodeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) |
358 { | 373 { |
359 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 374 v8::Handle<v8::Object> holder = info.Holder(); |
| 375 TestInterface* impl = V8TestInterface::toNative(holder); |
360 ASSERT(impl); | 376 ASSERT(impl); |
361 v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::supplementalNod
e(*impl)), impl); | 377 v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::supplementalNod
e(*impl)), impl); |
362 } | 378 } |
363 #endif // ENABLE(CONDITION_PARTIAL) | 379 #endif // ENABLE(CONDITION_PARTIAL) |
364 | 380 |
365 #if ENABLE(CONDITION_PARTIAL) | 381 #if ENABLE(CONDITION_PARTIAL) |
366 static void supplementalNodeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 382 static void supplementalNodeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
367 { | 383 { |
368 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 384 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
369 TestInterfaceV8Internal::supplementalNodeAttributeGetter(info); | 385 TestInterfaceV8Internal::supplementalNodeAttributeGetter(info); |
370 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 386 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
371 } | 387 } |
372 #endif // ENABLE(CONDITION_PARTIAL) | 388 #endif // ENABLE(CONDITION_PARTIAL) |
373 | 389 |
374 #if ENABLE(CONDITION_PARTIAL) | 390 #if ENABLE(CONDITION_PARTIAL) |
375 static void supplementalNodeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 391 static void supplementalNodeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) |
376 { | 392 { |
377 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 393 v8::Handle<v8::Object> holder = info.Holder(); |
| 394 TestInterface* impl = V8TestInterface::toNative(holder); |
378 ASSERT(impl); | 395 ASSERT(impl); |
379 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); | 396 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); |
380 TestPartialInterface::setSupplementalNode(*impl, WTF::getPtr(cppValue)); | 397 TestPartialInterface::setSupplementalNode(*impl, WTF::getPtr(cppValue)); |
381 } | 398 } |
382 #endif // ENABLE(CONDITION_PARTIAL) | 399 #endif // ENABLE(CONDITION_PARTIAL) |
383 | 400 |
384 #if ENABLE(CONDITION_PARTIAL) | 401 #if ENABLE(CONDITION_PARTIAL) |
385 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 402 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) |
386 { | 403 { |
387 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 404 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
388 TestInterfaceV8Internal::supplementalNodeAttributeSetter(jsValue, info); | 405 TestInterfaceV8Internal::supplementalNodeAttributeSetter(jsValue, info); |
389 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 406 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
390 } | 407 } |
391 #endif // ENABLE(CONDITION_PARTIAL) | 408 #endif // ENABLE(CONDITION_PARTIAL) |
392 | 409 |
393 #if ENABLE(CONDITION_PARTIAL) | 410 #if ENABLE(CONDITION_PARTIAL) |
394 static void Node13AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf
o) | 411 static void Node13AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf
o) |
395 { | 412 { |
396 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 413 v8::Handle<v8::Object> holder = info.Holder(); |
| 414 TestInterface* impl = V8TestInterface::toNative(holder); |
397 ASSERT(impl); | 415 ASSERT(impl); |
398 v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::node13(*impl)),
impl); | 416 v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::node13(*impl)),
impl); |
399 } | 417 } |
400 #endif // ENABLE(CONDITION_PARTIAL) | 418 #endif // ENABLE(CONDITION_PARTIAL) |
401 | 419 |
402 #if ENABLE(CONDITION_PARTIAL) | 420 #if ENABLE(CONDITION_PARTIAL) |
403 static void Node13AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 421 static void Node13AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
404 { | 422 { |
405 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 423 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
406 TestInterfaceV8Internal::Node13AttributeGetter(info); | 424 TestInterfaceV8Internal::Node13AttributeGetter(info); |
407 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 425 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
408 } | 426 } |
409 #endif // ENABLE(CONDITION_PARTIAL) | 427 #endif // ENABLE(CONDITION_PARTIAL) |
410 | 428 |
411 #if ENABLE(CONDITION_PARTIAL) | 429 #if ENABLE(CONDITION_PARTIAL) |
412 static void Node13AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper
tyCallbackInfo<void>& info) | 430 static void Node13AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper
tyCallbackInfo<void>& info) |
413 { | 431 { |
414 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 432 v8::Handle<v8::Object> holder = info.Holder(); |
| 433 TestInterface* impl = V8TestInterface::toNative(holder); |
415 ASSERT(impl); | 434 ASSERT(impl); |
416 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); | 435 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); |
417 TestPartialInterface::setNode13(*impl, WTF::getPtr(cppValue)); | 436 TestPartialInterface::setNode13(*impl, WTF::getPtr(cppValue)); |
418 } | 437 } |
419 #endif // ENABLE(CONDITION_PARTIAL) | 438 #endif // ENABLE(CONDITION_PARTIAL) |
420 | 439 |
421 #if ENABLE(CONDITION_PARTIAL) | 440 #if ENABLE(CONDITION_PARTIAL) |
422 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V
alue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 441 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V
alue> jsValue, const v8::PropertyCallbackInfo<void>& info) |
423 { | 442 { |
424 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 443 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
884 } | 903 } |
885 | 904 |
886 template<> | 905 template<> |
887 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 906 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
888 { | 907 { |
889 return toV8(impl, creationContext, isolate); | 908 return toV8(impl, creationContext, isolate); |
890 } | 909 } |
891 | 910 |
892 } // namespace WebCore | 911 } // namespace WebCore |
893 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 912 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
OLD | NEW |