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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 V8STRINGRESOURCE_PREPARE_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 V8STRINGRESOURCE_PREPARE_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 V8STRINGRESOURCE_PREPARE_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 V8STRINGRESOURCE_PREPARE_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 V8STRINGRESOURCE_PREPARE_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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 V8STRINGRESOURCE_PREPARE_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 V8STRINGRESOURCE_PREPARE_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 V8STRINGRESOURCE_PREPARE_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 V8STRINGRESOURCE_PREPARE_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 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
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 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
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 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
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 V8STRINGRESOURCE_PREPARE_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 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
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 V8TRYCATCH_VOID_EXCEPTION(int, cppValue, toInt32(v8Value, exceptionState), e
xceptionState); |
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 79 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 V8STRINGRESOURCE_PREPARE_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 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::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; |
(...skipping 102 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 V8TRYCATCH_VOID_EXCEPTION(int, longArg, toInt32(info[0], exceptionState), ex
ceptionState); |
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 84 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 V8STRINGRESOURCE_PREPARE_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 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, propertyName, name); |
1094 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, propertyValue, v8Va
lue); | 1094 V8STRINGRESOURCE_PREPARE_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 |