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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 v8SetReturnValueString(info, TestImplements::implementsStaticStringAttribute
(), info.GetIsolate()); | 69 v8SetReturnValueString(info, TestImplements::implementsStaticStringAttribute
(), info.GetIsolate()); |
70 } | 70 } |
71 | 71 |
72 static void implementsStaticStringAttributeAttributeGetterCallback(v8::Local<v8:
:String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 72 static void implementsStaticStringAttributeAttributeGetterCallback(v8::Local<v8:
:String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
73 { | 73 { |
74 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 74 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
75 TestInterfaceV8Internal::implementsStaticStringAttributeAttributeGetter(info
); | 75 TestInterfaceV8Internal::implementsStaticStringAttributeAttributeGetter(info
); |
76 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 76 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
77 } | 77 } |
78 | 78 |
79 static void implementsStaticStringAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) | 79 static void implementsStaticStringAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
80 { | 80 { |
81 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 81 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
82 TestImplements::setImplementsStaticStringAttribute(cppValue); | 82 TestImplements::setImplementsStaticStringAttribute(cppValue); |
83 } | 83 } |
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> v8Value, 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(v8Va
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 v8::Handle<v8::Object> holder = info.Holder(); | 94 v8::Handle<v8::Object> holder = info.Holder(); |
95 TestInterface* impl = V8TestInterface::toNative(holder); | 95 TestInterface* impl = V8TestInterface::toNative(holder); |
96 ASSERT(impl); | 96 ASSERT(impl); |
97 v8SetReturnValueString(info, TestImplements::implementsReadonlyStringAttribu
te(*impl), info.GetIsolate()); | 97 v8SetReturnValueString(info, TestImplements::implementsReadonlyStringAttribu
te(*impl), info.GetIsolate()); |
98 } | 98 } |
(...skipping 13 matching lines...) Expand all Loading... |
112 v8SetReturnValueString(info, TestImplements::implementsStringAttribute(*impl
), info.GetIsolate()); | 112 v8SetReturnValueString(info, TestImplements::implementsStringAttribute(*impl
), info.GetIsolate()); |
113 } | 113 } |
114 | 114 |
115 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) |
116 { | 116 { |
117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 117 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
118 TestInterfaceV8Internal::implementsStringAttributeAttributeGetter(info); | 118 TestInterfaceV8Internal::implementsStringAttributeAttributeGetter(info); |
119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 119 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
120 } | 120 } |
121 | 121 |
122 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> jsValu
e, const v8::PropertyCallbackInfo<void>& info) | 122 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
123 { | 123 { |
124 v8::Handle<v8::Object> holder = info.Holder(); | 124 v8::Handle<v8::Object> holder = info.Holder(); |
125 TestInterface* impl = V8TestInterface::toNative(holder); | 125 TestInterface* impl = V8TestInterface::toNative(holder); |
126 ASSERT(impl); | 126 ASSERT(impl); |
127 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 127 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
128 TestImplements::setImplementsStringAttribute(*impl, cppValue); | 128 TestImplements::setImplementsStringAttribute(*impl, cppValue); |
129 } | 129 } |
130 | 130 |
131 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> v8Value, const v8::PropertyCallbackInfo<void>& info) |
132 { | 132 { |
133 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 133 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
134 TestInterfaceV8Internal::implementsStringAttributeAttributeSetter(jsValue, i
nfo); | 134 TestInterfaceV8Internal::implementsStringAttributeAttributeSetter(v8Value, i
nfo); |
135 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 135 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
136 } | 136 } |
137 | 137 |
138 static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 138 static void implementsNodeAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
139 { | 139 { |
140 v8::Handle<v8::Object> holder = info.Holder(); | 140 v8::Handle<v8::Object> holder = info.Holder(); |
141 TestInterface* impl = V8TestInterface::toNative(holder); | 141 TestInterface* impl = V8TestInterface::toNative(holder); |
142 ASSERT(impl); | 142 ASSERT(impl); |
143 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsNodeAttribu
te(*impl)), impl); | 143 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsNodeAttribu
te(*impl)), impl); |
144 } | 144 } |
145 | 145 |
146 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) |
147 { | 147 { |
148 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 148 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
149 TestInterfaceV8Internal::implementsNodeAttributeAttributeGetter(info); | 149 TestInterfaceV8Internal::implementsNodeAttributeAttributeGetter(info); |
150 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 150 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
151 } | 151 } |
152 | 152 |
153 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 153 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
154 { | 154 { |
155 v8::Handle<v8::Object> holder = info.Holder(); | 155 v8::Handle<v8::Object> holder = info.Holder(); |
156 TestInterface* impl = V8TestInterface::toNative(holder); | 156 TestInterface* impl = V8TestInterface::toNative(holder); |
157 ASSERT(impl); | 157 ASSERT(impl); |
158 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); | 158 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); |
159 TestImplements::setImplementsNodeAttribute(*impl, WTF::getPtr(cppValue)); | 159 TestImplements::setImplementsNodeAttribute(*impl, WTF::getPtr(cppValue)); |
160 } | 160 } |
161 | 161 |
162 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> v8Value, const v8::PropertyCallbackInfo<void>& info) |
163 { | 163 { |
164 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 164 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
165 TestInterfaceV8Internal::implementsNodeAttributeAttributeSetter(jsValue, inf
o); | 165 TestInterfaceV8Internal::implementsNodeAttributeAttributeSetter(v8Value, inf
o); |
166 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 166 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
167 } | 167 } |
168 | 168 |
169 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) | 169 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) |
170 { | 170 { |
171 v8::Handle<v8::Object> holder = info.Holder(); | 171 v8::Handle<v8::Object> holder = info.Holder(); |
172 TestInterface* impl = V8TestInterface::toNative(holder); | 172 TestInterface* impl = V8TestInterface::toNative(holder); |
173 ASSERT(impl); | 173 ASSERT(impl); |
174 EventListener* jsValue = TestImplements::implementsEventHandlerAttribute(*im
pl); | 174 EventListener* v8Value = TestImplements::implementsEventHandlerAttribute(*im
pl); |
175 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, v8Value ? v8::Handle<v8::Value>(V8AbstractEventListen
er::cast(v8Value)->getListenerObject(impl->executionContext())) : v8::Handle<v8:
:Value>(v8::Null(info.GetIsolate()))); |
176 } | 176 } |
177 | 177 |
178 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) |
179 { | 179 { |
180 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 180 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
181 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeGetter(info
); | 181 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeGetter(info
); |
182 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 182 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
183 } | 183 } |
184 | 184 |
185 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value>
jsValue, const v8::PropertyCallbackInfo<void>& info) | 185 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
186 { | 186 { |
187 v8::Handle<v8::Object> holder = info.Holder(); | 187 v8::Handle<v8::Object> holder = info.Holder(); |
188 TestInterface* impl = V8TestInterface::toNative(holder); | 188 TestInterface* impl = V8TestInterface::toNative(holder); |
189 ASSERT(impl); | 189 ASSERT(impl); |
190 moveEventListenerToNewWrapper(holder, TestImplements::implementsEventHandler
Attribute(*impl), jsValue, V8TestInterface::eventListenerCacheIndex, info.GetIso
late()); | 190 moveEventListenerToNewWrapper(holder, TestImplements::implementsEventHandler
Attribute(*impl), v8Value, V8TestInterface::eventListenerCacheIndex, info.GetIso
late()); |
191 TestImplements::setImplementsEventHandlerAttribute(*impl, V8EventListenerLis
t::getEventListener(jsValue, true, ListenerFindOrCreate)); | 191 TestImplements::setImplementsEventHandlerAttribute(*impl, V8EventListenerLis
t::getEventListener(v8Value, true, ListenerFindOrCreate)); |
192 } | 192 } |
193 | 193 |
194 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& in
fo) | 194 static void implementsEventHandlerAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
195 { | 195 { |
196 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 196 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
197 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeSetter(jsVa
lue, info); | 197 TestInterfaceV8Internal::implementsEventHandlerAttributeAttributeSetter(v8Va
lue, info); |
198 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 198 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
199 } | 199 } |
200 | 200 |
201 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 201 static void implementsRuntimeEnabledNodeAttributeAttributeGetter(const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
202 { | 202 { |
203 v8::Handle<v8::Object> holder = info.Holder(); | 203 v8::Handle<v8::Object> holder = info.Holder(); |
204 TestInterface* impl = V8TestInterface::toNative(holder); | 204 TestInterface* impl = V8TestInterface::toNative(holder); |
205 ASSERT(impl); | 205 ASSERT(impl); |
206 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsRuntimeEnab
ledNodeAttribute(*impl)), impl); | 206 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsRuntimeEnab
ledNodeAttribute(*impl)), impl); |
207 } | 207 } |
208 | 208 |
209 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 209 static void implementsRuntimeEnabledNodeAttributeAttributeGetterCallback(v8::Loc
al<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
210 { | 210 { |
211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
212 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeGette
r(info); | 212 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeGette
r(info); |
213 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 213 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
214 } | 214 } |
215 | 215 |
216 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V
alue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 216 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V
alue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
217 { | 217 { |
218 v8::Handle<v8::Object> holder = info.Holder(); | 218 v8::Handle<v8::Object> holder = info.Holder(); |
219 TestInterface* impl = V8TestInterface::toNative(holder); | 219 TestInterface* impl = V8TestInterface::toNative(holder); |
220 ASSERT(impl); | 220 ASSERT(impl); |
221 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); | 221 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); |
222 TestImplements::setImplementsRuntimeEnabledNodeAttribute(*impl, WTF::getPtr(
cppValue)); | 222 TestImplements::setImplementsRuntimeEnabledNodeAttribute(*impl, WTF::getPtr(
cppValue)); |
223 } | 223 } |
224 | 224 |
225 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi
d>& info) | 225 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi
d>& info) |
226 { | 226 { |
227 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 227 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
228 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeSette
r(jsValue, info); | 228 TestInterfaceV8Internal::implementsRuntimeEnabledNodeAttributeAttributeSette
r(v8Value, info); |
229 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 229 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
230 } | 230 } |
231 | 231 |
232 static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 232 static void implementsPerContextEnabledNodeAttributeAttributeGetter(const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
233 { | 233 { |
234 v8::Handle<v8::Object> holder = info.Holder(); | 234 v8::Handle<v8::Object> holder = info.Holder(); |
235 TestInterface* impl = V8TestInterface::toNative(holder); | 235 TestInterface* impl = V8TestInterface::toNative(holder); |
236 ASSERT(impl); | 236 ASSERT(impl); |
237 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsPerContextE
nabledNodeAttribute(*impl)), impl); | 237 v8SetReturnValueFast(info, WTF::getPtr(TestImplements::implementsPerContextE
nabledNodeAttribute(*impl)), impl); |
238 } | 238 } |
239 | 239 |
240 static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 240 static void implementsPerContextEnabledNodeAttributeAttributeGetterCallback(v8::
Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
241 { | 241 { |
242 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 242 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
243 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeGe
tter(info); | 243 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeGe
tter(info); |
244 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 244 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
245 } | 245 } |
246 | 246 |
247 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 247 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
248 { | 248 { |
249 v8::Handle<v8::Object> holder = info.Holder(); | 249 v8::Handle<v8::Object> holder = info.Holder(); |
250 TestInterface* impl = V8TestInterface::toNative(holder); | 250 TestInterface* impl = V8TestInterface::toNative(holder); |
251 ASSERT(impl); | 251 ASSERT(impl); |
252 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); | 252 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); |
253 TestImplements::setImplementsPerContextEnabledNodeAttribute(*impl, WTF::getP
tr(cppValue)); | 253 TestImplements::setImplementsPerContextEnabledNodeAttribute(*impl, WTF::getP
tr(cppValue)); |
254 } | 254 } |
255 | 255 |
256 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<
void>& info) | 256 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) |
257 { | 257 { |
258 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 258 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
259 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeSe
tter(jsValue, info); | 259 TestInterfaceV8Internal::implementsPerContextEnabledNodeAttributeAttributeSe
tter(v8Value, info); |
260 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 260 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
261 } | 261 } |
262 | 262 |
263 #if ENABLE(CONDITION_PARTIAL) | 263 #if ENABLE(CONDITION_PARTIAL) |
264 static void supplementalStaticReadOnlyAttrAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) | 264 static void supplementalStaticReadOnlyAttrAttributeGetter(const v8::PropertyCall
backInfo<v8::Value>& info) |
265 { | 265 { |
266 v8SetReturnValueInt(info, TestPartialInterface::supplementalStaticReadOnlyAt
tr()); | 266 v8SetReturnValueInt(info, TestPartialInterface::supplementalStaticReadOnlyAt
tr()); |
267 } | 267 } |
268 #endif // ENABLE(CONDITION_PARTIAL) | 268 #endif // ENABLE(CONDITION_PARTIAL) |
269 | 269 |
(...skipping 16 matching lines...) Expand all Loading... |
286 #if ENABLE(CONDITION_PARTIAL) | 286 #if ENABLE(CONDITION_PARTIAL) |
287 static void supplementalStaticAttrAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 287 static void supplementalStaticAttrAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
288 { | 288 { |
289 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 289 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
290 TestInterfaceV8Internal::supplementalStaticAttrAttributeGetter(info); | 290 TestInterfaceV8Internal::supplementalStaticAttrAttributeGetter(info); |
291 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 291 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
292 } | 292 } |
293 #endif // ENABLE(CONDITION_PARTIAL) | 293 #endif // ENABLE(CONDITION_PARTIAL) |
294 | 294 |
295 #if ENABLE(CONDITION_PARTIAL) | 295 #if ENABLE(CONDITION_PARTIAL) |
296 static void supplementalStaticAttrAttributeSetter(v8::Local<v8::Value> jsValue,
const v8::PropertyCallbackInfo<void>& info) | 296 static void supplementalStaticAttrAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
297 { | 297 { |
298 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 298 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
299 TestPartialInterface::setSupplementalStaticAttr(cppValue); | 299 TestPartialInterface::setSupplementalStaticAttr(cppValue); |
300 } | 300 } |
301 #endif // ENABLE(CONDITION_PARTIAL) | 301 #endif // ENABLE(CONDITION_PARTIAL) |
302 | 302 |
303 #if ENABLE(CONDITION_PARTIAL) | 303 #if ENABLE(CONDITION_PARTIAL) |
304 static void supplementalStaticAttrAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 304 static void supplementalStaticAttrAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
305 { | 305 { |
306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 306 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
307 TestInterfaceV8Internal::supplementalStaticAttrAttributeSetter(jsValue, info
); | 307 TestInterfaceV8Internal::supplementalStaticAttrAttributeSetter(v8Value, info
); |
308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 308 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
309 } | 309 } |
310 #endif // ENABLE(CONDITION_PARTIAL) | 310 #endif // ENABLE(CONDITION_PARTIAL) |
311 | 311 |
312 #if ENABLE(CONDITION_PARTIAL) | 312 #if ENABLE(CONDITION_PARTIAL) |
313 static void supplementalStr1AttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 313 static void supplementalStr1AttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) |
314 { | 314 { |
315 v8::Handle<v8::Object> holder = info.Holder(); | 315 v8::Handle<v8::Object> holder = info.Holder(); |
316 TestInterface* impl = V8TestInterface::toNative(holder); | 316 TestInterface* impl = V8TestInterface::toNative(holder); |
317 ASSERT(impl); | 317 ASSERT(impl); |
(...skipping 23 matching lines...) Expand all Loading... |
341 #if ENABLE(CONDITION_PARTIAL) | 341 #if ENABLE(CONDITION_PARTIAL) |
342 static void supplementalStr2AttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 342 static void supplementalStr2AttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
343 { | 343 { |
344 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 344 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
345 TestInterfaceV8Internal::supplementalStr2AttributeGetter(info); | 345 TestInterfaceV8Internal::supplementalStr2AttributeGetter(info); |
346 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 346 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
347 } | 347 } |
348 #endif // ENABLE(CONDITION_PARTIAL) | 348 #endif // ENABLE(CONDITION_PARTIAL) |
349 | 349 |
350 #if ENABLE(CONDITION_PARTIAL) | 350 #if ENABLE(CONDITION_PARTIAL) |
351 static void supplementalStr2AttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 351 static void supplementalStr2AttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) |
352 { | 352 { |
353 v8::Handle<v8::Object> holder = info.Holder(); | 353 v8::Handle<v8::Object> holder = info.Holder(); |
354 TestInterface* impl = V8TestInterface::toNative(holder); | 354 TestInterface* impl = V8TestInterface::toNative(holder); |
355 ASSERT(impl); | 355 ASSERT(impl); |
356 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, jsValue); | 356 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); |
357 TestPartialInterface::setSupplementalStr2(*impl, cppValue); | 357 TestPartialInterface::setSupplementalStr2(*impl, cppValue); |
358 } | 358 } |
359 #endif // ENABLE(CONDITION_PARTIAL) | 359 #endif // ENABLE(CONDITION_PARTIAL) |
360 | 360 |
361 #if ENABLE(CONDITION_PARTIAL) | 361 #if ENABLE(CONDITION_PARTIAL) |
362 static void supplementalStr2AttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 362 static void supplementalStr2AttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
363 { | 363 { |
364 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 364 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
365 TestInterfaceV8Internal::supplementalStr2AttributeSetter(jsValue, info); | 365 TestInterfaceV8Internal::supplementalStr2AttributeSetter(v8Value, info); |
366 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 366 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
367 } | 367 } |
368 #endif // ENABLE(CONDITION_PARTIAL) | 368 #endif // ENABLE(CONDITION_PARTIAL) |
369 | 369 |
370 #if ENABLE(CONDITION_PARTIAL) | 370 #if ENABLE(CONDITION_PARTIAL) |
371 static void supplementalNodeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) | 371 static void supplementalNodeAttributeGetter(const v8::PropertyCallbackInfo<v8::V
alue>& info) |
372 { | 372 { |
373 v8::Handle<v8::Object> holder = info.Holder(); | 373 v8::Handle<v8::Object> holder = info.Holder(); |
374 TestInterface* impl = V8TestInterface::toNative(holder); | 374 TestInterface* impl = V8TestInterface::toNative(holder); |
375 ASSERT(impl); | 375 ASSERT(impl); |
376 v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::supplementalNod
e(*impl)), impl); | 376 v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::supplementalNod
e(*impl)), impl); |
377 } | 377 } |
378 #endif // ENABLE(CONDITION_PARTIAL) | 378 #endif // ENABLE(CONDITION_PARTIAL) |
379 | 379 |
380 #if ENABLE(CONDITION_PARTIAL) | 380 #if ENABLE(CONDITION_PARTIAL) |
381 static void supplementalNodeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) | 381 static void supplementalNodeAttributeGetterCallback(v8::Local<v8::String>, const
v8::PropertyCallbackInfo<v8::Value>& info) |
382 { | 382 { |
383 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 383 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
384 TestInterfaceV8Internal::supplementalNodeAttributeGetter(info); | 384 TestInterfaceV8Internal::supplementalNodeAttributeGetter(info); |
385 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 385 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
386 } | 386 } |
387 #endif // ENABLE(CONDITION_PARTIAL) | 387 #endif // ENABLE(CONDITION_PARTIAL) |
388 | 388 |
389 #if ENABLE(CONDITION_PARTIAL) | 389 #if ENABLE(CONDITION_PARTIAL) |
390 static void supplementalNodeAttributeSetter(v8::Local<v8::Value> jsValue, const
v8::PropertyCallbackInfo<void>& info) | 390 static void supplementalNodeAttributeSetter(v8::Local<v8::Value> v8Value, const
v8::PropertyCallbackInfo<void>& info) |
391 { | 391 { |
392 v8::Handle<v8::Object> holder = info.Holder(); | 392 v8::Handle<v8::Object> holder = info.Holder(); |
393 TestInterface* impl = V8TestInterface::toNative(holder); | 393 TestInterface* impl = V8TestInterface::toNative(holder); |
394 ASSERT(impl); | 394 ASSERT(impl); |
395 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); | 395 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); |
396 TestPartialInterface::setSupplementalNode(*impl, WTF::getPtr(cppValue)); | 396 TestPartialInterface::setSupplementalNode(*impl, WTF::getPtr(cppValue)); |
397 } | 397 } |
398 #endif // ENABLE(CONDITION_PARTIAL) | 398 #endif // ENABLE(CONDITION_PARTIAL) |
399 | 399 |
400 #if ENABLE(CONDITION_PARTIAL) | 400 #if ENABLE(CONDITION_PARTIAL) |
401 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) | 401 static void supplementalNodeAttributeSetterCallback(v8::Local<v8::String>, v8::L
ocal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
402 { | 402 { |
403 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 403 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
404 TestInterfaceV8Internal::supplementalNodeAttributeSetter(jsValue, info); | 404 TestInterfaceV8Internal::supplementalNodeAttributeSetter(v8Value, info); |
405 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 405 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
406 } | 406 } |
407 #endif // ENABLE(CONDITION_PARTIAL) | 407 #endif // ENABLE(CONDITION_PARTIAL) |
408 | 408 |
409 #if ENABLE(CONDITION_PARTIAL) | 409 #if ENABLE(CONDITION_PARTIAL) |
410 static void Node13AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf
o) | 410 static void Node13AttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& inf
o) |
411 { | 411 { |
412 v8::Handle<v8::Object> holder = info.Holder(); | 412 v8::Handle<v8::Object> holder = info.Holder(); |
413 TestInterface* impl = V8TestInterface::toNative(holder); | 413 TestInterface* impl = V8TestInterface::toNative(holder); |
414 ASSERT(impl); | 414 ASSERT(impl); |
415 v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::node13(*impl)),
impl); | 415 v8SetReturnValueFast(info, WTF::getPtr(TestPartialInterface::node13(*impl)),
impl); |
416 } | 416 } |
417 #endif // ENABLE(CONDITION_PARTIAL) | 417 #endif // ENABLE(CONDITION_PARTIAL) |
418 | 418 |
419 #if ENABLE(CONDITION_PARTIAL) | 419 #if ENABLE(CONDITION_PARTIAL) |
420 static void Node13AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope
rtyCallbackInfo<v8::Value>& info) | 420 static void Node13AttributeGetterCallback(v8::Local<v8::String>, const v8::Prope
rtyCallbackInfo<v8::Value>& info) |
421 { | 421 { |
422 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 422 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
423 TestInterfaceV8Internal::Node13AttributeGetter(info); | 423 TestInterfaceV8Internal::Node13AttributeGetter(info); |
424 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 424 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
425 } | 425 } |
426 #endif // ENABLE(CONDITION_PARTIAL) | 426 #endif // ENABLE(CONDITION_PARTIAL) |
427 | 427 |
428 #if ENABLE(CONDITION_PARTIAL) | 428 #if ENABLE(CONDITION_PARTIAL) |
429 static void Node13AttributeSetter(v8::Local<v8::Value> jsValue, const v8::Proper
tyCallbackInfo<void>& info) | 429 static void Node13AttributeSetter(v8::Local<v8::Value> v8Value, const v8::Proper
tyCallbackInfo<void>& info) |
430 { | 430 { |
431 v8::Handle<v8::Object> holder = info.Holder(); | 431 v8::Handle<v8::Object> holder = info.Holder(); |
432 TestInterface* impl = V8TestInterface::toNative(holder); | 432 TestInterface* impl = V8TestInterface::toNative(holder); |
433 ASSERT(impl); | 433 ASSERT(impl); |
434 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), jsValue)); | 434 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); |
435 TestPartialInterface::setNode13(*impl, WTF::getPtr(cppValue)); | 435 TestPartialInterface::setNode13(*impl, WTF::getPtr(cppValue)); |
436 } | 436 } |
437 #endif // ENABLE(CONDITION_PARTIAL) | 437 #endif // ENABLE(CONDITION_PARTIAL) |
438 | 438 |
439 #if ENABLE(CONDITION_PARTIAL) | 439 #if ENABLE(CONDITION_PARTIAL) |
440 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V
alue> jsValue, const v8::PropertyCallbackInfo<void>& info) | 440 static void Node13AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V
alue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
441 { | 441 { |
442 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 442 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
443 TestInterfaceV8Internal::Node13AttributeSetter(jsValue, info); | 443 TestInterfaceV8Internal::Node13AttributeSetter(v8Value, info); |
444 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 444 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
445 } | 445 } |
446 #endif // ENABLE(CONDITION_PARTIAL) | 446 #endif // ENABLE(CONDITION_PARTIAL) |
447 | 447 |
448 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 448 static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
449 { | 449 { |
450 if (UNLIKELY(info.Length() < 1)) { | 450 if (UNLIKELY(info.Length() < 1)) { |
451 throwTypeError(ExceptionMessages::failedToExecute("namedItem", "TestInte
rface", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolat
e()); | 451 throwTypeError(ExceptionMessages::failedToExecute("namedItem", "TestInte
rface", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolat
e()); |
452 return; | 452 return; |
453 } | 453 } |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 v8SetReturnValueNull(info); | 656 v8SetReturnValueNull(info); |
657 } | 657 } |
658 | 658 |
659 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) | 659 static void namedPropertyGetterCallback(v8::Local<v8::String> name, const v8::Pr
opertyCallbackInfo<v8::Value>& info) |
660 { | 660 { |
661 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); | 661 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); |
662 TestInterfaceV8Internal::namedPropertyGetter(name, info); | 662 TestInterfaceV8Internal::namedPropertyGetter(name, info); |
663 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 663 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
664 } | 664 } |
665 | 665 |
666 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8
::Value> jsValue, const v8::PropertyCallbackInfo<v8::Value>& info) | 666 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |
667 { | 667 { |
668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); | 668 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); |
669 V8TestInterface::namedPropertySetterCustom(name, jsValue, info); | 669 V8TestInterface::namedPropertySetterCustom(name, v8Value, info); |
670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 670 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
671 } | 671 } |
672 | 672 |
673 static void namedPropertyQuery(v8::Local<v8::String> name, const v8::PropertyCal
lbackInfo<v8::Integer>& info) | 673 static void namedPropertyQuery(v8::Local<v8::String> name, const v8::PropertyCal
lbackInfo<v8::Integer>& info) |
674 { | 674 { |
675 TestInterface* impl = V8TestInterface::toNative(info.Holder()); | 675 TestInterface* impl = V8TestInterface::toNative(info.Holder()); |
676 AtomicString propertyName = toCoreAtomicString(name); | 676 AtomicString propertyName = toCoreAtomicString(name); |
677 v8::String::Utf8Value namedProperty(name); | 677 v8::String::Utf8Value namedProperty(name); |
678 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty,
"TestInterface", info.Holder(), info.GetIsolate()); | 678 ExceptionState exceptionState(ExceptionState::GetterContext, *namedProperty,
"TestInterface", info.Holder(), info.GetIsolate()); |
679 bool result = impl->namedPropertyQuery(propertyName, exceptionState); | 679 bool result = impl->namedPropertyQuery(propertyName, exceptionState); |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 if (!result.IsEmpty()) | 839 if (!result.IsEmpty()) |
840 return result; | 840 return result; |
841 | 841 |
842 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | 842 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); |
843 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | 843 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); |
844 configureV8TestInterfaceTemplate(result, isolate); | 844 configureV8TestInterfaceTemplate(result, isolate); |
845 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | 845 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; |
846 return result; | 846 return result; |
847 } | 847 } |
848 | 848 |
849 bool V8TestInterface::hasInstance(v8::Handle<v8::Value> jsValue, v8::Isolate* is
olate) | 849 bool V8TestInterface::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* is
olate) |
850 { | 850 { |
851 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu
e); | 851 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
852 } | 852 } |
853 | 853 |
854 v8::Handle<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Handle<
v8::Value> jsValue, v8::Isolate* isolate) | 854 v8::Handle<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Handle<
v8::Value> v8Value, v8::Isolate* isolate) |
855 { | 855 { |
856 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, jsValue); | 856 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
857 } | 857 } |
858 | 858 |
859 TestInterface* V8TestInterface::toNativeWithTypeCheck(v8::Isolate* isolate, v8::
Handle<v8::Value> value) | 859 TestInterface* V8TestInterface::toNativeWithTypeCheck(v8::Isolate* isolate, v8::
Handle<v8::Value> value) |
860 { | 860 { |
861 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; | 861 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje
ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) :
0; |
862 } | 862 } |
863 | 863 |
864 void V8TestInterface::installPerContextEnabledProperties(v8::Handle<v8::Object>
instanceTemplate, TestInterface* impl, v8::Isolate* isolate) | 864 void V8TestInterface::installPerContextEnabledProperties(v8::Handle<v8::Object>
instanceTemplate, TestInterface* impl, v8::Isolate* isolate) |
865 { | 865 { |
866 v8::Local<v8::Object> prototypeTemplate = v8::Local<v8::Object>::Cast(instan
ceTemplate->GetPrototype()); | 866 v8::Local<v8::Object> prototypeTemplate = v8::Local<v8::Object>::Cast(instan
ceTemplate->GetPrototype()); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 } | 902 } |
903 | 903 |
904 template<> | 904 template<> |
905 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 905 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
906 { | 906 { |
907 return toV8(impl, creationContext, isolate); | 907 return toV8(impl, creationContext, isolate); |
908 } | 908 } |
909 | 909 |
910 } // namespace WebCore | 910 } // namespace WebCore |
911 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 911 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
OLD | NEW |