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(CONDITION) | 8 #if ENABLE(CONDITION) |
9 #include "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 70 static void testInterfaceAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
71 { | 71 { |
72 v8::Handle<v8::Object> holder = info.Holder(); | 72 v8::Handle<v8::Object> holder = info.Holder(); |
73 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceA
ttribute", "TestInterface", holder, info.GetIsolate()); | 73 ExceptionState exceptionState(ExceptionState::SetterContext, "testInterfaceA
ttribute", "TestInterface", holder, info.GetIsolate()); |
74 if (!V8TestInterface::hasInstance(v8Value, info.GetIsolate())) { | 74 if (!V8TestInterface::hasInstance(v8Value, info.GetIsolate())) { |
75 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); | 75 exceptionState.throwTypeError("The provided value is not of type 'TestIn
terface'."); |
76 exceptionState.throwIfNeeded(); | 76 exceptionState.throwIfNeeded(); |
77 return; | 77 return; |
78 } | 78 } |
79 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 79 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
80 V8TRYCATCH_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toN
ativeWithTypeCheck(info.GetIsolate(), v8Value)); | 80 TONATIVE_VOID(TestInterfaceImplementation*, cppValue, V8TestInterface::toNat
iveWithTypeCheck(info.GetIsolate(), v8Value)); |
81 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); | 81 impl->setTestInterfaceAttribute(WTF::getPtr(cppValue)); |
82 } | 82 } |
83 | 83 |
84 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 84 static void testInterfaceAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
85 { | 85 { |
86 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 86 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
87 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeSetter
(v8Value, info); | 87 TestInterfaceImplementationV8Internal::testInterfaceAttributeAttributeSetter
(v8Value, info); |
88 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 88 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
89 } | 89 } |
90 | 90 |
91 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 91 static void staticStringAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
92 { | 92 { |
93 v8SetReturnValueString(info, TestInterfaceImplementation::staticStringAttrib
ute(), info.GetIsolate()); | 93 v8SetReturnValueString(info, TestInterfaceImplementation::staticStringAttrib
ute(), info.GetIsolate()); |
94 } | 94 } |
95 | 95 |
96 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 96 static void staticStringAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
97 { | 97 { |
98 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 98 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
99 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeGetter(
info); | 99 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeGetter(
info); |
100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
101 } | 101 } |
102 | 102 |
103 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 103 static void staticStringAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
104 { | 104 { |
105 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 105 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
106 TestInterfaceImplementation::setStaticStringAttribute(cppValue); | 106 TestInterfaceImplementation::setStaticStringAttribute(cppValue); |
107 } | 107 } |
108 | 108 |
109 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 109 static void staticStringAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
110 { | 110 { |
111 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 111 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
112 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeSetter(
v8Value, info); | 112 TestInterfaceImplementationV8Internal::staticStringAttributeAttributeSetter(
v8Value, info); |
113 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 113 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
114 } | 114 } |
115 | 115 |
116 static void perWorldBindingsStringAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) | 116 static void perWorldBindingsStringAttributeAttributeGetter(const v8::PropertyCal
lbackInfo<v8::Value>& info) |
117 { | 117 { |
118 v8::Handle<v8::Object> holder = info.Holder(); | 118 v8::Handle<v8::Object> holder = info.Holder(); |
119 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 119 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
120 v8SetReturnValueString(info, impl->perWorldBindingsStringAttribute(), info.G
etIsolate()); | 120 v8SetReturnValueString(info, impl->perWorldBindingsStringAttribute(), info.G
etIsolate()); |
121 } | 121 } |
122 | 122 |
123 static void perWorldBindingsStringAttributeAttributeGetterCallback(v8::Local<v8:
:String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 123 static void perWorldBindingsStringAttributeAttributeGetterCallback(v8::Local<v8:
:String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
124 { | 124 { |
125 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 125 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
126 TestInterfaceImplementationV8Internal::perWorldBindingsStringAttributeAttrib
uteGetter(info); | 126 TestInterfaceImplementationV8Internal::perWorldBindingsStringAttributeAttrib
uteGetter(info); |
127 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 127 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
128 } | 128 } |
129 | 129 |
130 static void perWorldBindingsStringAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 130 static void perWorldBindingsStringAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
131 { | 131 { |
132 v8::Handle<v8::Object> holder = info.Holder(); | 132 v8::Handle<v8::Object> holder = info.Holder(); |
133 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 133 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
134 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 134 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
135 impl->setPerWorldBindingsStringAttribute(cppValue); | 135 impl->setPerWorldBindingsStringAttribute(cppValue); |
136 } | 136 } |
137 | 137 |
138 static void perWorldBindingsStringAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 138 static void perWorldBindingsStringAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
139 { | 139 { |
140 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 140 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
141 TestInterfaceImplementationV8Internal::perWorldBindingsStringAttributeAttrib
uteSetter(v8Value, info); | 141 TestInterfaceImplementationV8Internal::perWorldBindingsStringAttributeAttrib
uteSetter(v8Value, info); |
142 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 142 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
143 } | 143 } |
144 | 144 |
145 static void perWorldBindingsStringAttributeAttributeGetterForMainWorld(const v8:
:PropertyCallbackInfo<v8::Value>& info) | 145 static void perWorldBindingsStringAttributeAttributeGetterForMainWorld(const v8:
:PropertyCallbackInfo<v8::Value>& info) |
146 { | 146 { |
147 v8::Handle<v8::Object> holder = info.Holder(); | 147 v8::Handle<v8::Object> holder = info.Holder(); |
148 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 148 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
149 v8SetReturnValueString(info, impl->perWorldBindingsStringAttribute(), info.G
etIsolate()); | 149 v8SetReturnValueString(info, impl->perWorldBindingsStringAttribute(), info.G
etIsolate()); |
150 } | 150 } |
151 | 151 |
152 static void perWorldBindingsStringAttributeAttributeGetterCallbackForMainWorld(v
8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 152 static void perWorldBindingsStringAttributeAttributeGetterCallbackForMainWorld(v
8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
153 { | 153 { |
154 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 154 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
155 TestInterfaceImplementationV8Internal::perWorldBindingsStringAttributeAttrib
uteGetterForMainWorld(info); | 155 TestInterfaceImplementationV8Internal::perWorldBindingsStringAttributeAttrib
uteGetterForMainWorld(info); |
156 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 156 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
157 } | 157 } |
158 | 158 |
159 static void perWorldBindingsStringAttributeAttributeSetterForMainWorld(v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 159 static void perWorldBindingsStringAttributeAttributeSetterForMainWorld(v8::Local
<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
160 { | 160 { |
161 v8::Handle<v8::Object> holder = info.Holder(); | 161 v8::Handle<v8::Object> holder = info.Holder(); |
162 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 162 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
163 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 163 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
164 impl->setPerWorldBindingsStringAttribute(cppValue); | 164 impl->setPerWorldBindingsStringAttribute(cppValue); |
165 } | 165 } |
166 | 166 |
167 static void perWorldBindingsStringAttributeAttributeSetterCallbackForMainWorld(v
8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn
fo<void>& info) | 167 static void perWorldBindingsStringAttributeAttributeSetterCallbackForMainWorld(v
8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackIn
fo<void>& info) |
168 { | 168 { |
169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 169 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
170 TestInterfaceImplementationV8Internal::perWorldBindingsStringAttributeAttrib
uteSetterForMainWorld(v8Value, info); | 170 TestInterfaceImplementationV8Internal::perWorldBindingsStringAttributeAttrib
uteSetterForMainWorld(v8Value, info); |
171 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 171 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
172 } | 172 } |
173 | 173 |
(...skipping 16 matching lines...) Expand all Loading... |
190 | 190 |
191 static void implementsStaticStringAttributeAttributeGetterCallback(v8::Local<v8:
:String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 191 static void implementsStaticStringAttributeAttributeGetterCallback(v8::Local<v8:
:String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
192 { | 192 { |
193 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 193 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
194 TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttrib
uteGetter(info); | 194 TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttrib
uteGetter(info); |
195 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 195 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
196 } | 196 } |
197 | 197 |
198 static void implementsStaticStringAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 198 static void implementsStaticStringAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
199 { | 199 { |
200 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 200 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
201 TestInterfaceImplementation::setImplementsStaticStringAttribute(cppValue); | 201 TestInterfaceImplementation::setImplementsStaticStringAttribute(cppValue); |
202 } | 202 } |
203 | 203 |
204 static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 204 static void implementsStaticStringAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
205 { | 205 { |
206 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 206 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
207 TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttrib
uteSetter(v8Value, info); | 207 TestInterfaceImplementationV8Internal::implementsStaticStringAttributeAttrib
uteSetter(v8Value, info); |
208 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 208 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
209 } | 209 } |
210 | 210 |
(...skipping 22 matching lines...) Expand all Loading... |
233 { | 233 { |
234 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 234 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
235 TestInterfaceImplementationV8Internal::implementsStringAttributeAttributeGet
ter(info); | 235 TestInterfaceImplementationV8Internal::implementsStringAttributeAttributeGet
ter(info); |
236 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 236 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
237 } | 237 } |
238 | 238 |
239 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) | 239 static void implementsStringAttributeAttributeSetter(v8::Local<v8::Value> v8Valu
e, const v8::PropertyCallbackInfo<void>& info) |
240 { | 240 { |
241 v8::Handle<v8::Object> holder = info.Holder(); | 241 v8::Handle<v8::Object> holder = info.Holder(); |
242 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 242 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
243 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 243 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
244 impl->setImplementsStringAttribute(cppValue); | 244 impl->setImplementsStringAttribute(cppValue); |
245 } | 245 } |
246 | 246 |
247 static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 247 static void implementsStringAttributeAttributeSetterCallback(v8::Local<v8::Strin
g>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
248 { | 248 { |
249 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 249 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
250 TestInterfaceImplementationV8Internal::implementsStringAttributeAttributeSet
ter(v8Value, info); | 250 TestInterfaceImplementationV8Internal::implementsStringAttributeAttributeSet
ter(v8Value, info); |
251 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 251 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
252 } | 252 } |
253 | 253 |
(...skipping 14 matching lines...) Expand all Loading... |
268 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 268 static void implementsNodeAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
269 { | 269 { |
270 v8::Handle<v8::Object> holder = info.Holder(); | 270 v8::Handle<v8::Object> holder = info.Holder(); |
271 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsNode
Attribute", "TestInterface", holder, info.GetIsolate()); | 271 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsNode
Attribute", "TestInterface", holder, info.GetIsolate()); |
272 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) { | 272 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) { |
273 exceptionState.throwTypeError("The provided value is not of type 'Node'.
"); | 273 exceptionState.throwTypeError("The provided value is not of type 'Node'.
"); |
274 exceptionState.throwIfNeeded(); | 274 exceptionState.throwIfNeeded(); |
275 return; | 275 return; |
276 } | 276 } |
277 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 277 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
278 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); | 278 TONATIVE_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsolate
(), v8Value)); |
279 impl->setImplementsNodeAttribute(WTF::getPtr(cppValue)); | 279 impl->setImplementsNodeAttribute(WTF::getPtr(cppValue)); |
280 } | 280 } |
281 | 281 |
282 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 282 static void implementsNodeAttributeAttributeSetterCallback(v8::Local<v8::String>
, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
283 { | 283 { |
284 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 284 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
285 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeSette
r(v8Value, info); | 285 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeSette
r(v8Value, info); |
286 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 286 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
287 } | 287 } |
288 | 288 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V
alue> v8Value, const v8::PropertyCallbackInfo<void>& info) | 333 static void implementsRuntimeEnabledNodeAttributeAttributeSetter(v8::Local<v8::V
alue> v8Value, const v8::PropertyCallbackInfo<void>& info) |
334 { | 334 { |
335 v8::Handle<v8::Object> holder = info.Holder(); | 335 v8::Handle<v8::Object> holder = info.Holder(); |
336 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsRunt
imeEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate()); | 336 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsRunt
imeEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate()); |
337 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) { | 337 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) { |
338 exceptionState.throwTypeError("The provided value is not of type 'Node'.
"); | 338 exceptionState.throwTypeError("The provided value is not of type 'Node'.
"); |
339 exceptionState.throwIfNeeded(); | 339 exceptionState.throwIfNeeded(); |
340 return; | 340 return; |
341 } | 341 } |
342 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 342 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
343 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); | 343 TONATIVE_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsolate
(), v8Value)); |
344 impl->setImplementsRuntimeEnabledNodeAttribute(WTF::getPtr(cppValue)); | 344 impl->setImplementsRuntimeEnabledNodeAttribute(WTF::getPtr(cppValue)); |
345 } | 345 } |
346 | 346 |
347 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi
d>& info) | 347 static void implementsRuntimeEnabledNodeAttributeAttributeSetterCallback(v8::Loc
al<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi
d>& info) |
348 { | 348 { |
349 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 349 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
350 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute
AttributeSetter(v8Value, info); | 350 TestInterfaceImplementationV8Internal::implementsRuntimeEnabledNodeAttribute
AttributeSetter(v8Value, info); |
351 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 351 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
352 } | 352 } |
353 | 353 |
(...skipping 14 matching lines...) Expand all Loading... |
368 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 368 static void implementsPerContextEnabledNodeAttributeAttributeSetter(v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
369 { | 369 { |
370 v8::Handle<v8::Object> holder = info.Holder(); | 370 v8::Handle<v8::Object> holder = info.Holder(); |
371 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsPerC
ontextEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate()); | 371 ExceptionState exceptionState(ExceptionState::SetterContext, "implementsPerC
ontextEnabledNodeAttribute", "TestInterface", holder, info.GetIsolate()); |
372 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) { | 372 if (!V8Node::hasInstance(v8Value, info.GetIsolate())) { |
373 exceptionState.throwTypeError("The provided value is not of type 'Node'.
"); | 373 exceptionState.throwTypeError("The provided value is not of type 'Node'.
"); |
374 exceptionState.throwIfNeeded(); | 374 exceptionState.throwIfNeeded(); |
375 return; | 375 return; |
376 } | 376 } |
377 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 377 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
378 V8TRYCATCH_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsola
te(), v8Value)); | 378 TONATIVE_VOID(Node*, cppValue, V8Node::toNativeWithTypeCheck(info.GetIsolate
(), v8Value)); |
379 impl->setImplementsPerContextEnabledNodeAttribute(WTF::getPtr(cppValue)); | 379 impl->setImplementsPerContextEnabledNodeAttribute(WTF::getPtr(cppValue)); |
380 } | 380 } |
381 | 381 |
382 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) | 382 static void implementsPerContextEnabledNodeAttributeAttributeSetterCallback(v8::
Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) |
383 { | 383 { |
384 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 384 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
385 TestInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttrib
uteAttributeSetter(v8Value, info); | 385 TestInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttrib
uteAttributeSetter(v8Value, info); |
386 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 386 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
387 } | 387 } |
388 | 388 |
389 static void implements2StaticStringAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) | 389 static void implements2StaticStringAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) |
390 { | 390 { |
391 v8SetReturnValueString(info, TestImplements2::implements2StaticStringAttribu
te(), info.GetIsolate()); | 391 v8SetReturnValueString(info, TestImplements2::implements2StaticStringAttribu
te(), info.GetIsolate()); |
392 } | 392 } |
393 | 393 |
394 static void implements2StaticStringAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 394 static void implements2StaticStringAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
395 { | 395 { |
396 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 396 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
397 TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttri
buteGetter(info); | 397 TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttri
buteGetter(info); |
398 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 398 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
399 } | 399 } |
400 | 400 |
401 static void implements2StaticStringAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 401 static void implements2StaticStringAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
402 { | 402 { |
403 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 403 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
404 TestImplements2::setImplements2StaticStringAttribute(cppValue); | 404 TestImplements2::setImplements2StaticStringAttribute(cppValue); |
405 } | 405 } |
406 | 406 |
407 static void implements2StaticStringAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) | 407 static void implements2StaticStringAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) |
408 { | 408 { |
409 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 409 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
410 TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttri
buteSetter(v8Value, info); | 410 TestInterfaceImplementationV8Internal::implements2StaticStringAttributeAttri
buteSetter(v8Value, info); |
411 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 411 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
412 } | 412 } |
413 | 413 |
(...skipping 10 matching lines...) Expand all Loading... |
424 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 424 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
425 TestInterfaceImplementationV8Internal::implements2StringAttributeAttributeGe
tter(info); | 425 TestInterfaceImplementationV8Internal::implements2StringAttributeAttributeGe
tter(info); |
426 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 426 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
427 } | 427 } |
428 | 428 |
429 static void implements2StringAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 429 static void implements2StringAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
430 { | 430 { |
431 v8::Handle<v8::Object> holder = info.Holder(); | 431 v8::Handle<v8::Object> holder = info.Holder(); |
432 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 432 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
433 ASSERT(impl); | 433 ASSERT(impl); |
434 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 434 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
435 TestImplements2::setImplements2StringAttribute(*impl, cppValue); | 435 TestImplements2::setImplements2StringAttribute(*impl, cppValue); |
436 } | 436 } |
437 | 437 |
438 static void implements2StringAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 438 static void implements2StringAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
439 { | 439 { |
440 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 440 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
441 TestInterfaceImplementationV8Internal::implements2StringAttributeAttributeSe
tter(v8Value, info); | 441 TestInterfaceImplementationV8Internal::implements2StringAttributeAttributeSe
tter(v8Value, info); |
442 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 442 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
443 } | 443 } |
444 | 444 |
(...skipping 10 matching lines...) Expand all Loading... |
455 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 455 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
456 TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeGe
tter(info); | 456 TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeGe
tter(info); |
457 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 457 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
458 } | 458 } |
459 | 459 |
460 static void implements3StringAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 460 static void implements3StringAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
461 { | 461 { |
462 v8::Handle<v8::Object> holder = info.Holder(); | 462 v8::Handle<v8::Object> holder = info.Holder(); |
463 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 463 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
464 ASSERT(impl); | 464 ASSERT(impl); |
465 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 465 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
466 TestImplements3Implementation::setImplements3StringAttribute(*impl, cppValue
); | 466 TestImplements3Implementation::setImplements3StringAttribute(*impl, cppValue
); |
467 } | 467 } |
468 | 468 |
469 static void implements3StringAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 469 static void implements3StringAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
470 { | 470 { |
471 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 471 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
472 TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeSe
tter(v8Value, info); | 472 TestInterfaceImplementationV8Internal::implements3StringAttributeAttributeSe
tter(v8Value, info); |
473 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 473 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
474 } | 474 } |
475 | 475 |
476 static void implements3StaticStringAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) | 476 static void implements3StaticStringAttributeAttributeGetter(const v8::PropertyCa
llbackInfo<v8::Value>& info) |
477 { | 477 { |
478 v8SetReturnValueString(info, TestImplements3Implementation::implements3Stati
cStringAttribute(), info.GetIsolate()); | 478 v8SetReturnValueString(info, TestImplements3Implementation::implements3Stati
cStringAttribute(), info.GetIsolate()); |
479 } | 479 } |
480 | 480 |
481 static void implements3StaticStringAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) | 481 static void implements3StaticStringAttributeAttributeGetterCallback(v8::Local<v8
::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |
482 { | 482 { |
483 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 483 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
484 TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttri
buteGetter(info); | 484 TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttri
buteGetter(info); |
485 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 485 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
486 } | 486 } |
487 | 487 |
488 static void implements3StaticStringAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 488 static void implements3StaticStringAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
489 { | 489 { |
490 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 490 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
491 TestImplements3Implementation::setImplements3StaticStringAttribute(cppValue)
; | 491 TestImplements3Implementation::setImplements3StaticStringAttribute(cppValue)
; |
492 } | 492 } |
493 | 493 |
494 static void implements3StaticStringAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) | 494 static void implements3StaticStringAttributeAttributeSetterCallback(v8::Local<v8
::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) |
495 { | 495 { |
496 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 496 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
497 TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttri
buteSetter(v8Value, info); | 497 TestInterfaceImplementationV8Internal::implements3StaticStringAttributeAttri
buteSetter(v8Value, info); |
498 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 498 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
499 } | 499 } |
500 | 500 |
(...skipping 16 matching lines...) Expand all Loading... |
517 } | 517 } |
518 #endif // ENABLE(PARTIAL_CONDITION) | 518 #endif // ENABLE(PARTIAL_CONDITION) |
519 | 519 |
520 #if ENABLE(PARTIAL_CONDITION) | 520 #if ENABLE(PARTIAL_CONDITION) |
521 static void partialLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 521 static void partialLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
522 { | 522 { |
523 v8::Handle<v8::Object> holder = info.Holder(); | 523 v8::Handle<v8::Object> holder = info.Holder(); |
524 ExceptionState exceptionState(ExceptionState::SetterContext, "partialLongAtt
ribute", "TestInterface", holder, info.GetIsolate()); | 524 ExceptionState exceptionState(ExceptionState::SetterContext, "partialLongAtt
ribute", "TestInterface", holder, info.GetIsolate()); |
525 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 525 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
526 ASSERT(impl); | 526 ASSERT(impl); |
527 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 527 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
528 TestPartialInterface::setPartialLongAttribute(*impl, cppValue); | 528 TestPartialInterface::setPartialLongAttribute(*impl, cppValue); |
529 } | 529 } |
530 #endif // ENABLE(PARTIAL_CONDITION) | 530 #endif // ENABLE(PARTIAL_CONDITION) |
531 | 531 |
532 #if ENABLE(PARTIAL_CONDITION) | 532 #if ENABLE(PARTIAL_CONDITION) |
533 static void partialLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 533 static void partialLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
534 { | 534 { |
535 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 535 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
536 TestInterfaceImplementationV8Internal::partialLongAttributeAttributeSetter(v
8Value, info); | 536 TestInterfaceImplementationV8Internal::partialLongAttributeAttributeSetter(v
8Value, info); |
537 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 537 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 13 matching lines...) Expand all Loading... |
551 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 551 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
552 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeGe
tter(info); | 552 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeGe
tter(info); |
553 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 553 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
554 } | 554 } |
555 #endif // ENABLE(PARTIAL_CONDITION) | 555 #endif // ENABLE(PARTIAL_CONDITION) |
556 | 556 |
557 #if ENABLE(PARTIAL_CONDITION) | 557 #if ENABLE(PARTIAL_CONDITION) |
558 static void partialStaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 558 static void partialStaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
559 { | 559 { |
560 ExceptionState exceptionState(ExceptionState::SetterContext, "partialStaticL
ongAttribute", "TestInterface", holder, info.GetIsolate()); | 560 ExceptionState exceptionState(ExceptionState::SetterContext, "partialStaticL
ongAttribute", "TestInterface", holder, info.GetIsolate()); |
561 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 561 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
562 TestPartialInterface::setPartialStaticLongAttribute(cppValue); | 562 TestPartialInterface::setPartialStaticLongAttribute(cppValue); |
563 } | 563 } |
564 #endif // ENABLE(PARTIAL_CONDITION) | 564 #endif // ENABLE(PARTIAL_CONDITION) |
565 | 565 |
566 #if ENABLE(PARTIAL_CONDITION) | 566 #if ENABLE(PARTIAL_CONDITION) |
567 static void partialStaticLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 567 static void partialStaticLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
568 { | 568 { |
569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 569 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
570 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeSe
tter(v8Value, info); | 570 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeSe
tter(v8Value, info); |
571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 571 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
(...skipping 20 matching lines...) Expand all Loading... |
592 } | 592 } |
593 #endif // ENABLE(PARTIAL_CONDITION) | 593 #endif // ENABLE(PARTIAL_CONDITION) |
594 | 594 |
595 #if ENABLE(PARTIAL_CONDITION) | 595 #if ENABLE(PARTIAL_CONDITION) |
596 static void partialCallWithExecutionContextLongAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 596 static void partialCallWithExecutionContextLongAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
597 { | 597 { |
598 v8::Handle<v8::Object> holder = info.Holder(); | 598 v8::Handle<v8::Object> holder = info.Holder(); |
599 ExceptionState exceptionState(ExceptionState::SetterContext, "partialCallWit
hExecutionContextLongAttribute", "TestInterface", holder, info.GetIsolate()); | 599 ExceptionState exceptionState(ExceptionState::SetterContext, "partialCallWit
hExecutionContextLongAttribute", "TestInterface", holder, info.GetIsolate()); |
600 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 600 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
601 ASSERT(impl); | 601 ASSERT(impl); |
602 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 602 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
603 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 603 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
604 TestPartialInterface::setPartialCallWithExecutionContextLongAttribute(script
Context, *impl, cppValue); | 604 TestPartialInterface::setPartialCallWithExecutionContextLongAttribute(script
Context, *impl, cppValue); |
605 } | 605 } |
606 #endif // ENABLE(PARTIAL_CONDITION) | 606 #endif // ENABLE(PARTIAL_CONDITION) |
607 | 607 |
608 #if ENABLE(PARTIAL_CONDITION) | 608 #if ENABLE(PARTIAL_CONDITION) |
609 static void partialCallWithExecutionContextLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 609 static void partialCallWithExecutionContextLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) |
610 { | 610 { |
611 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 611 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
612 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongAt
tributeAttributeSetter(v8Value, info); | 612 TestInterfaceImplementationV8Internal::partialCallWithExecutionContextLongAt
tributeAttributeSetter(v8Value, info); |
(...skipping 19 matching lines...) Expand all Loading... |
632 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 632 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
633 } | 633 } |
634 #endif // ENABLE(PARTIAL_CONDITION) | 634 #endif // ENABLE(PARTIAL_CONDITION) |
635 | 635 |
636 #if ENABLE(PARTIAL_CONDITION) | 636 #if ENABLE(PARTIAL_CONDITION) |
637 static void partialPartialEnumTypeAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) | 637 static void partialPartialEnumTypeAttributeAttributeSetter(v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<void>& info) |
638 { | 638 { |
639 v8::Handle<v8::Object> holder = info.Holder(); | 639 v8::Handle<v8::Object> holder = info.Holder(); |
640 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 640 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
641 ASSERT(impl); | 641 ASSERT(impl); |
642 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, cppValue, v8Value); | 642 TOSTRING_VOID(V8StringResource<>, cppValue, v8Value); |
643 String string = cppValue; | 643 String string = cppValue; |
644 if (!(string == "foo" || string == "bar")) | 644 if (!(string == "foo" || string == "bar")) |
645 return; | 645 return; |
646 TestPartialInterface::setPartialPartialEnumTypeAttribute(*impl, cppValue); | 646 TestPartialInterface::setPartialPartialEnumTypeAttribute(*impl, cppValue); |
647 } | 647 } |
648 #endif // ENABLE(PARTIAL_CONDITION) | 648 #endif // ENABLE(PARTIAL_CONDITION) |
649 | 649 |
650 #if ENABLE(PARTIAL_CONDITION) | 650 #if ENABLE(PARTIAL_CONDITION) |
651 static void partialPartialEnumTypeAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) | 651 static void partialPartialEnumTypeAttributeAttributeSetterCallback(v8::Local<v8:
:String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& in
fo) |
652 { | 652 { |
(...skipping 17 matching lines...) Expand all Loading... |
670 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeGetter(
info); | 670 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeGetter(
info); |
671 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 671 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
672 } | 672 } |
673 | 673 |
674 static void partial2LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 674 static void partial2LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
675 { | 675 { |
676 v8::Handle<v8::Object> holder = info.Holder(); | 676 v8::Handle<v8::Object> holder = info.Holder(); |
677 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2LongAt
tribute", "TestInterface", holder, info.GetIsolate()); | 677 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2LongAt
tribute", "TestInterface", holder, info.GetIsolate()); |
678 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); | 678 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); |
679 ASSERT(impl); | 679 ASSERT(impl); |
680 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 680 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
681 TestPartialInterfaceImplementation::setPartial2LongAttribute(*impl, cppValue
); | 681 TestPartialInterfaceImplementation::setPartial2LongAttribute(*impl, cppValue
); |
682 } | 682 } |
683 | 683 |
684 static void partial2LongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 684 static void partial2LongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
685 { | 685 { |
686 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 686 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
687 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeSetter(
v8Value, info); | 687 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeSetter(
v8Value, info); |
688 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 688 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
689 } | 689 } |
690 | 690 |
691 static void partial2StaticLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 691 static void partial2StaticLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
692 { | 692 { |
693 v8SetReturnValueInt(info, TestPartialInterfaceImplementation::partial2Static
LongAttribute()); | 693 v8SetReturnValueInt(info, TestPartialInterfaceImplementation::partial2Static
LongAttribute()); |
694 } | 694 } |
695 | 695 |
696 static void partial2StaticLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 696 static void partial2StaticLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
697 { | 697 { |
698 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 698 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
699 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeG
etter(info); | 699 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeG
etter(info); |
700 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 700 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
701 } | 701 } |
702 | 702 |
703 static void partial2StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 703 static void partial2StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
704 { | 704 { |
705 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2Static
LongAttribute", "TestInterface", holder, info.GetIsolate()); | 705 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2Static
LongAttribute", "TestInterface", holder, info.GetIsolate()); |
706 V8TRYCATCH_EXCEPTION_VOID(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); | 706 TONATIVE_VOID_EXCEPTIONSTATE(int, cppValue, toInt32(v8Value, exceptionState)
, exceptionState); |
707 TestPartialInterfaceImplementation::setPartial2StaticLongAttribute(cppValue)
; | 707 TestPartialInterfaceImplementation::setPartial2StaticLongAttribute(cppValue)
; |
708 } | 708 } |
709 | 709 |
710 static void partial2StaticLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 710 static void partial2StaticLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
711 { | 711 { |
712 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 712 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
713 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeS
etter(v8Value, info); | 713 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeS
etter(v8Value, info); |
714 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 714 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
715 } | 715 } |
716 | 716 |
(...skipping 21 matching lines...) Expand all Loading... |
738 { | 738 { |
739 if (UNLIKELY(info.Length() < 1)) { | 739 if (UNLIKELY(info.Length() < 1)) { |
740 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArg", "TestInt
erface", 1, info.Length(), info.GetIsolate()); | 740 throwArityTypeErrorForMethod("voidMethodTestInterfaceEmptyArg", "TestInt
erface", 1, info.Length(), info.GetIsolate()); |
741 return; | 741 return; |
742 } | 742 } |
743 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; | 743 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
744 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], info.Ge
tIsolate())) { | 744 if (info.Length() > 0 && !V8TestInterfaceEmpty::hasInstance(info[0], info.Ge
tIsolate())) { |
745 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArg", "TestInterface", "parameter 1 is not of type 'TestInterfaceEmpty'."
), info.GetIsolate()); | 745 throwTypeError(ExceptionMessages::failedToExecute("voidMethodTestInterfa
ceEmptyArg", "TestInterface", "parameter 1 is not of type 'TestInterfaceEmpty'."
), info.GetIsolate()); |
746 return; | 746 return; |
747 } | 747 } |
748 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 748 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[0])); |
749 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); | 749 impl->voidMethodTestInterfaceEmptyArg(testInterfaceEmptyArg); |
750 } | 750 } |
751 | 751 |
752 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 752 static void voidMethodTestInterfaceEmptyArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
753 { | 753 { |
754 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 754 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
755 TestInterfaceImplementationV8Internal::voidMethodTestInterfaceEmptyArgMethod
(info); | 755 TestInterfaceImplementationV8Internal::voidMethodTestInterfaceEmptyArgMethod
(info); |
756 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 756 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
757 } | 757 } |
758 | 758 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 } | 796 } |
797 | 797 |
798 static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) | 798 static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
799 { | 799 { |
800 ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsC
omplexMethod", "TestInterface", info.Holder(), info.GetIsolate()); | 800 ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsC
omplexMethod", "TestInterface", info.Holder(), info.GetIsolate()); |
801 if (UNLIKELY(info.Length() < 2)) { | 801 if (UNLIKELY(info.Length() < 2)) { |
802 throwArityTypeError(exceptionState, 2, info.Length()); | 802 throwArityTypeError(exceptionState, 2, info.Length()); |
803 return; | 803 return; |
804 } | 804 } |
805 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; | 805 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
806 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]); | 806 TOSTRING_VOID(V8StringResource<>, strArg, info[0]); |
807 if (info.Length() > 1 && !V8TestInterfaceEmpty::hasInstance(info[1], info.Ge
tIsolate())) { | 807 if (info.Length() > 1 && !V8TestInterfaceEmpty::hasInstance(info[1], info.Ge
tIsolate())) { |
808 exceptionState.throwTypeError("parameter 2 is not of type 'TestInterface
Empty'."); | 808 exceptionState.throwTypeError("parameter 2 is not of type 'TestInterface
Empty'."); |
809 exceptionState.throwIfNeeded(); | 809 exceptionState.throwIfNeeded(); |
810 return; | 810 return; |
811 } | 811 } |
812 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); | 812 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); |
813 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; | 813 ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate())
; |
814 RefPtr<TestInterfaceEmpty> result = impl->implementsComplexMethod(scriptCont
ext, strArg, testInterfaceEmptyArg, exceptionState); | 814 RefPtr<TestInterfaceEmpty> result = impl->implementsComplexMethod(scriptCont
ext, strArg, testInterfaceEmptyArg, exceptionState); |
815 if (exceptionState.throwIfNeeded()) | 815 if (exceptionState.throwIfNeeded()) |
816 return; | 816 return; |
817 v8SetReturnValue(info, result.release()); | 817 v8SetReturnValue(info, result.release()); |
818 } | 818 } |
819 | 819 |
820 static void implementsComplexMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 820 static void implementsComplexMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
821 { | 821 { |
822 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 822 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
919 | 919 |
920 #if ENABLE(PARTIAL_CONDITION) | 920 #if ENABLE(PARTIAL_CONDITION) |
921 static void partialVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 921 static void partialVoidMethodLongArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
922 { | 922 { |
923 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialVoid
MethodLongArg", "TestInterface", info.Holder(), info.GetIsolate()); | 923 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialVoid
MethodLongArg", "TestInterface", info.Holder(), info.GetIsolate()); |
924 if (UNLIKELY(info.Length() < 1)) { | 924 if (UNLIKELY(info.Length() < 1)) { |
925 throwArityTypeError(exceptionState, 1, info.Length()); | 925 throwArityTypeError(exceptionState, 1, info.Length()); |
926 return; | 926 return; |
927 } | 927 } |
928 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; | 928 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
929 V8TRYCATCH_EXCEPTION_VOID(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); | 929 TONATIVE_VOID_EXCEPTIONSTATE(int, longArg, toInt32(info[0], exceptionState),
exceptionState); |
930 ASSERT(impl); | 930 ASSERT(impl); |
931 TestPartialInterface::partialVoidMethodLongArg(*impl, longArg); | 931 TestPartialInterface::partialVoidMethodLongArg(*impl, longArg); |
932 } | 932 } |
933 #endif // ENABLE(PARTIAL_CONDITION) | 933 #endif // ENABLE(PARTIAL_CONDITION) |
934 | 934 |
935 #if ENABLE(PARTIAL_CONDITION) | 935 #if ENABLE(PARTIAL_CONDITION) |
936 static void partialVoidMethodLongArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 936 static void partialVoidMethodLongArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
937 { | 937 { |
938 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 938 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
939 TestInterfaceImplementationV8Internal::partialVoidMethodLongArgMethod(info); | 939 TestInterfaceImplementationV8Internal::partialVoidMethodLongArgMethod(info); |
(...skipping 24 matching lines...) Expand all Loading... |
964 #endif // ENABLE(PARTIAL_CONDITION) | 964 #endif // ENABLE(PARTIAL_CONDITION) |
965 | 965 |
966 #if ENABLE(PARTIAL_CONDITION) | 966 #if ENABLE(PARTIAL_CONDITION) |
967 static void partialVoidMethodPartialCallbackTypeArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) | 967 static void partialVoidMethodPartialCallbackTypeArgMethod(const v8::FunctionCall
backInfo<v8::Value>& info) |
968 { | 968 { |
969 if (UNLIKELY(info.Length() < 1)) { | 969 if (UNLIKELY(info.Length() < 1)) { |
970 throwArityTypeErrorForMethod("partialVoidMethodPartialCallbackTypeArg",
"TestInterface", 1, info.Length(), info.GetIsolate()); | 970 throwArityTypeErrorForMethod("partialVoidMethodPartialCallbackTypeArg",
"TestInterface", 1, info.Length(), info.GetIsolate()); |
971 return; | 971 return; |
972 } | 972 } |
973 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; | 973 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
974 V8TRYCATCH_VOID(ScriptValue, partialCallbackTypeArg, ScriptValue(info[0], in
fo.GetIsolate())); | 974 TONATIVE_VOID(ScriptValue, partialCallbackTypeArg, ScriptValue(info[0], info
.GetIsolate())); |
975 ASSERT(impl); | 975 ASSERT(impl); |
976 TestPartialInterface::partialVoidMethodPartialCallbackTypeArg(*impl, partial
CallbackTypeArg); | 976 TestPartialInterface::partialVoidMethodPartialCallbackTypeArg(*impl, partial
CallbackTypeArg); |
977 } | 977 } |
978 #endif // ENABLE(PARTIAL_CONDITION) | 978 #endif // ENABLE(PARTIAL_CONDITION) |
979 | 979 |
980 #if ENABLE(PARTIAL_CONDITION) | 980 #if ENABLE(PARTIAL_CONDITION) |
981 static void partialVoidMethodPartialCallbackTypeArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) | 981 static void partialVoidMethodPartialCallbackTypeArgMethodCallback(const v8::Func
tionCallbackInfo<v8::Value>& info) |
982 { | 982 { |
983 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 983 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
984 TestInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeA
rgMethod(info); | 984 TestInterfaceImplementationV8Internal::partialVoidMethodPartialCallbackTypeA
rgMethod(info); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1024 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) | 1024 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) |
1025 { | 1025 { |
1026 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMIndexedProperty"); | 1026 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMIndexedProperty"); |
1027 TestInterfaceImplementationV8Internal::indexedPropertyGetter(index, info); | 1027 TestInterfaceImplementationV8Internal::indexedPropertyGetter(index, info); |
1028 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 1028 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
1029 } | 1029 } |
1030 | 1030 |
1031 static void indexedPropertySetter(uint32_t index, v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1031 static void indexedPropertySetter(uint32_t index, v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<v8::Value>& info) |
1032 { | 1032 { |
1033 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; | 1033 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
1034 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, propertyValue, v8Va
lue); | 1034 TOSTRING_VOID(V8StringResource<>, propertyValue, v8Value); |
1035 bool result = impl->anonymousIndexedSetter(index, propertyValue); | 1035 bool result = impl->anonymousIndexedSetter(index, propertyValue); |
1036 if (!result) | 1036 if (!result) |
1037 return; | 1037 return; |
1038 v8SetReturnValue(info, v8Value); | 1038 v8SetReturnValue(info, v8Value); |
1039 } | 1039 } |
1040 | 1040 |
1041 static void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<v8::Value>& info) | 1041 static void indexedPropertySetterCallback(uint32_t index, v8::Local<v8::Value> v
8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |
1042 { | 1042 { |
1043 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMIndexedProperty"); | 1043 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMIndexedProperty"); |
1044 TestInterfaceImplementationV8Internal::indexedPropertySetter(index, v8Value,
info); | 1044 TestInterfaceImplementationV8Internal::indexedPropertySetter(index, v8Value,
info); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1083 } | 1083 } |
1084 | 1084 |
1085 static void namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) | 1085 static void namedPropertySetter(v8::Local<v8::String> name, v8::Local<v8::Value>
v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |
1086 { | 1086 { |
1087 if (info.Holder()->HasRealNamedProperty(name)) | 1087 if (info.Holder()->HasRealNamedProperty(name)) |
1088 return; | 1088 return; |
1089 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) | 1089 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) |
1090 return; | 1090 return; |
1091 | 1091 |
1092 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; | 1092 TestInterfaceImplementation* impl = V8TestInterface::toNative(info.Holder())
; |
1093 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, propertyName, name)
; | 1093 TOSTRING_VOID(V8StringResource<>, propertyName, name); |
1094 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, propertyValue, v8Va
lue); | 1094 TOSTRING_VOID(V8StringResource<>, propertyValue, v8Value); |
1095 bool result = impl->anonymousNamedSetter(propertyName, propertyValue); | 1095 bool result = impl->anonymousNamedSetter(propertyName, propertyValue); |
1096 if (!result) | 1096 if (!result) |
1097 return; | 1097 return; |
1098 v8SetReturnValue(info, v8Value); | 1098 v8SetReturnValue(info, v8Value); |
1099 } | 1099 } |
1100 | 1100 |
1101 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) | 1101 static void namedPropertySetterCallback(v8::Local<v8::String> name, v8::Local<v8
::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) |
1102 { | 1102 { |
1103 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); | 1103 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMNamedProperty"); |
1104 TestInterfaceImplementationV8Internal::namedPropertySetter(name, v8Value, in
fo); | 1104 TestInterfaceImplementationV8Internal::namedPropertySetter(name, v8Value, in
fo); |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1371 } | 1371 } |
1372 | 1372 |
1373 template<> | 1373 template<> |
1374 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) | 1374 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle
<v8::Object> creationContext, v8::Isolate* isolate) |
1375 { | 1375 { |
1376 return toV8(impl, creationContext, isolate); | 1376 return toV8(impl, creationContext, isolate); |
1377 } | 1377 } |
1378 | 1378 |
1379 } // namespace WebCore | 1379 } // namespace WebCore |
1380 #endif // ENABLE(CONDITION) | 1380 #endif // ENABLE(CONDITION) |
OLD | NEW |