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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 125 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
126 TestInterfaceImplementationV8Internal::doubleAttributeAttributeGetter(info); | 126 TestInterfaceImplementationV8Internal::doubleAttributeAttributeGetter(info); |
127 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 127 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
128 } | 128 } |
129 | 129 |
130 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) | 130 static void doubleAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v
8::PropertyCallbackInfo<void>& info) |
131 { | 131 { |
132 v8::Local<v8::Object> holder = info.Holder(); | 132 v8::Local<v8::Object> holder = info.Holder(); |
133 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut
e", "TestInterface", holder, info.GetIsolate()); | 133 ExceptionState exceptionState(ExceptionState::SetterContext, "doubleAttribut
e", "TestInterface", holder, info.GetIsolate()); |
134 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 134 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
135 double cppValue = toRestrictedDouble(v8Value, exceptionState); | 135 double cppValue = toRestrictedDouble(info.GetIsolate(), v8Value, exceptionSt
ate); |
136 if (exceptionState.throwIfNeeded()) | 136 if (exceptionState.throwIfNeeded()) |
137 return; | 137 return; |
138 impl->setDoubleAttribute(cppValue); | 138 impl->setDoubleAttribute(cppValue); |
139 } | 139 } |
140 | 140 |
141 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 141 static void doubleAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Lo
cal<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
142 { | 142 { |
143 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 143 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
144 TestInterfaceImplementationV8Internal::doubleAttributeAttributeSetter(v8Valu
e, info); | 144 TestInterfaceImplementationV8Internal::doubleAttributeAttributeSetter(v8Valu
e, info); |
145 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 145 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
157 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 157 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
158 TestInterfaceImplementationV8Internal::floatAttributeAttributeGetter(info); | 158 TestInterfaceImplementationV8Internal::floatAttributeAttributeGetter(info); |
159 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 159 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
160 } | 160 } |
161 | 161 |
162 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) | 162 static void floatAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8
::PropertyCallbackInfo<void>& info) |
163 { | 163 { |
164 v8::Local<v8::Object> holder = info.Holder(); | 164 v8::Local<v8::Object> holder = info.Holder(); |
165 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute
", "TestInterface", holder, info.GetIsolate()); | 165 ExceptionState exceptionState(ExceptionState::SetterContext, "floatAttribute
", "TestInterface", holder, info.GetIsolate()); |
166 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 166 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
167 float cppValue = toRestrictedFloat(v8Value, exceptionState); | 167 float cppValue = toRestrictedFloat(info.GetIsolate(), v8Value, exceptionStat
e); |
168 if (exceptionState.throwIfNeeded()) | 168 if (exceptionState.throwIfNeeded()) |
169 return; | 169 return; |
170 impl->setFloatAttribute(cppValue); | 170 impl->setFloatAttribute(cppValue); |
171 } | 171 } |
172 | 172 |
173 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 173 static void floatAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc
al<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
174 { | 174 { |
175 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 175 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
176 TestInterfaceImplementationV8Internal::floatAttributeAttributeSetter(v8Value
, info); | 176 TestInterfaceImplementationV8Internal::floatAttributeAttributeSetter(v8Value
, info); |
177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 177 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
189 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 189 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
190 TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeG
etter(info); | 190 TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeG
etter(info); |
191 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 191 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
192 } | 192 } |
193 | 193 |
194 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 194 static void unrestrictedDoubleAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
195 { | 195 { |
196 v8::Local<v8::Object> holder = info.Holder(); | 196 v8::Local<v8::Object> holder = info.Holder(); |
197 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleAttribute", "TestInterface", holder, info.GetIsolate()); | 197 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedDo
ubleAttribute", "TestInterface", holder, info.GetIsolate()); |
198 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 198 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
199 double cppValue = toDouble(v8Value, exceptionState); | 199 double cppValue = toDouble(info.GetIsolate(), v8Value, exceptionState); |
200 if (exceptionState.throwIfNeeded()) | 200 if (exceptionState.throwIfNeeded()) |
201 return; | 201 return; |
202 impl->setUnrestrictedDoubleAttribute(cppValue); | 202 impl->setUnrestrictedDoubleAttribute(cppValue); |
203 } | 203 } |
204 | 204 |
205 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 205 static void unrestrictedDoubleAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
206 { | 206 { |
207 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 207 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
208 TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeS
etter(v8Value, info); | 208 TestInterfaceImplementationV8Internal::unrestrictedDoubleAttributeAttributeS
etter(v8Value, info); |
209 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 209 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
221 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 221 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
222 TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeGe
tter(info); | 222 TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeGe
tter(info); |
223 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 223 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
224 } | 224 } |
225 | 225 |
226 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 226 static void unrestrictedFloatAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
227 { | 227 { |
228 v8::Local<v8::Object> holder = info.Holder(); | 228 v8::Local<v8::Object> holder = info.Holder(); |
229 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl
oatAttribute", "TestInterface", holder, info.GetIsolate()); | 229 ExceptionState exceptionState(ExceptionState::SetterContext, "unrestrictedFl
oatAttribute", "TestInterface", holder, info.GetIsolate()); |
230 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 230 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
231 float cppValue = toFloat(v8Value, exceptionState); | 231 float cppValue = toFloat(info.GetIsolate(), v8Value, exceptionState); |
232 if (exceptionState.throwIfNeeded()) | 232 if (exceptionState.throwIfNeeded()) |
233 return; | 233 return; |
234 impl->setUnrestrictedFloatAttribute(cppValue); | 234 impl->setUnrestrictedFloatAttribute(cppValue); |
235 } | 235 } |
236 | 236 |
237 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 237 static void unrestrictedFloatAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
238 { | 238 { |
239 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 239 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
240 TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeSe
tter(v8Value, info); | 240 TestInterfaceImplementationV8Internal::unrestrictedFloatAttributeAttributeSe
tter(v8Value, info); |
241 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 241 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 378 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
379 TestInterfaceImplementationV8Internal::alwaysExposedAttributeAttributeGetter
(info); | 379 TestInterfaceImplementationV8Internal::alwaysExposedAttributeAttributeGetter
(info); |
380 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 380 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
381 } | 381 } |
382 | 382 |
383 static void alwaysExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 383 static void alwaysExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
384 { | 384 { |
385 v8::Local<v8::Object> holder = info.Holder(); | 385 v8::Local<v8::Object> holder = info.Holder(); |
386 ExceptionState exceptionState(ExceptionState::SetterContext, "alwaysExposedA
ttribute", "TestInterface", holder, info.GetIsolate()); | 386 ExceptionState exceptionState(ExceptionState::SetterContext, "alwaysExposedA
ttribute", "TestInterface", holder, info.GetIsolate()); |
387 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 387 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
388 int cppValue = toInt32(v8Value, exceptionState); | 388 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); |
389 if (exceptionState.throwIfNeeded()) | 389 if (exceptionState.throwIfNeeded()) |
390 return; | 390 return; |
391 impl->setAlwaysExposedAttribute(cppValue); | 391 impl->setAlwaysExposedAttribute(cppValue); |
392 } | 392 } |
393 | 393 |
394 static void alwaysExposedAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 394 static void alwaysExposedAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
395 { | 395 { |
396 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 396 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
397 TestInterfaceImplementationV8Internal::alwaysExposedAttributeAttributeSetter
(v8Value, info); | 397 TestInterfaceImplementationV8Internal::alwaysExposedAttributeAttributeSetter
(v8Value, info); |
398 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 398 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
410 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 410 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
411 TestInterfaceImplementationV8Internal::workerExposedAttributeAttributeGetter
(info); | 411 TestInterfaceImplementationV8Internal::workerExposedAttributeAttributeGetter
(info); |
412 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 412 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
413 } | 413 } |
414 | 414 |
415 static void workerExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 415 static void workerExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
416 { | 416 { |
417 v8::Local<v8::Object> holder = info.Holder(); | 417 v8::Local<v8::Object> holder = info.Holder(); |
418 ExceptionState exceptionState(ExceptionState::SetterContext, "workerExposedA
ttribute", "TestInterface", holder, info.GetIsolate()); | 418 ExceptionState exceptionState(ExceptionState::SetterContext, "workerExposedA
ttribute", "TestInterface", holder, info.GetIsolate()); |
419 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 419 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
420 int cppValue = toInt32(v8Value, exceptionState); | 420 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); |
421 if (exceptionState.throwIfNeeded()) | 421 if (exceptionState.throwIfNeeded()) |
422 return; | 422 return; |
423 impl->setWorkerExposedAttribute(cppValue); | 423 impl->setWorkerExposedAttribute(cppValue); |
424 } | 424 } |
425 | 425 |
426 static void workerExposedAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 426 static void workerExposedAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
427 { | 427 { |
428 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 428 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
429 TestInterfaceImplementationV8Internal::workerExposedAttributeAttributeSetter
(v8Value, info); | 429 TestInterfaceImplementationV8Internal::workerExposedAttributeAttributeSetter
(v8Value, info); |
430 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 430 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 11 matching lines...) Expand all Loading... |
442 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 442 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
443 TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeGetter
(info); | 443 TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeGetter
(info); |
444 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 444 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
445 } | 445 } |
446 | 446 |
447 static void windowExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) | 447 static void windowExposedAttributeAttributeSetter(v8::Local<v8::Value> v8Value,
const v8::PropertyCallbackInfo<void>& info) |
448 { | 448 { |
449 v8::Local<v8::Object> holder = info.Holder(); | 449 v8::Local<v8::Object> holder = info.Holder(); |
450 ExceptionState exceptionState(ExceptionState::SetterContext, "windowExposedA
ttribute", "TestInterface", holder, info.GetIsolate()); | 450 ExceptionState exceptionState(ExceptionState::SetterContext, "windowExposedA
ttribute", "TestInterface", holder, info.GetIsolate()); |
451 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 451 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
452 int cppValue = toInt32(v8Value, exceptionState); | 452 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); |
453 if (exceptionState.throwIfNeeded()) | 453 if (exceptionState.throwIfNeeded()) |
454 return; | 454 return; |
455 impl->setWindowExposedAttribute(cppValue); | 455 impl->setWindowExposedAttribute(cppValue); |
456 } | 456 } |
457 | 457 |
458 static void windowExposedAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 458 static void windowExposedAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
459 { | 459 { |
460 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 460 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
461 TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeSetter
(v8Value, info); | 461 TestInterfaceImplementationV8Internal::windowExposedAttributeAttributeSetter
(v8Value, info); |
462 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 462 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 814 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
815 } | 815 } |
816 #endif // ENABLE(PARTIAL_CONDITION) | 816 #endif // ENABLE(PARTIAL_CONDITION) |
817 | 817 |
818 #if ENABLE(PARTIAL_CONDITION) | 818 #if ENABLE(PARTIAL_CONDITION) |
819 static void partialLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) | 819 static void partialLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::PropertyCallbackInfo<void>& info) |
820 { | 820 { |
821 v8::Local<v8::Object> holder = info.Holder(); | 821 v8::Local<v8::Object> holder = info.Holder(); |
822 ExceptionState exceptionState(ExceptionState::SetterContext, "partialLongAtt
ribute", "TestInterface", holder, info.GetIsolate()); | 822 ExceptionState exceptionState(ExceptionState::SetterContext, "partialLongAtt
ribute", "TestInterface", holder, info.GetIsolate()); |
823 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 823 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
824 int cppValue = toInt32(v8Value, exceptionState); | 824 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); |
825 if (exceptionState.throwIfNeeded()) | 825 if (exceptionState.throwIfNeeded()) |
826 return; | 826 return; |
827 TestPartialInterface::setPartialLongAttribute(*impl, cppValue); | 827 TestPartialInterface::setPartialLongAttribute(*impl, cppValue); |
828 } | 828 } |
829 #endif // ENABLE(PARTIAL_CONDITION) | 829 #endif // ENABLE(PARTIAL_CONDITION) |
830 | 830 |
831 #if ENABLE(PARTIAL_CONDITION) | 831 #if ENABLE(PARTIAL_CONDITION) |
832 static void partialLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 832 static void partialLongAttributeAttributeSetterCallback(v8::Local<v8::String>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
833 { | 833 { |
834 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 834 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
(...skipping 15 matching lines...) Expand all Loading... |
850 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 850 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
851 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeGe
tter(info); | 851 TestInterfaceImplementationV8Internal::partialStaticLongAttributeAttributeGe
tter(info); |
852 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 852 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
853 } | 853 } |
854 #endif // ENABLE(PARTIAL_CONDITION) | 854 #endif // ENABLE(PARTIAL_CONDITION) |
855 | 855 |
856 #if ENABLE(PARTIAL_CONDITION) | 856 #if ENABLE(PARTIAL_CONDITION) |
857 static void partialStaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) | 857 static void partialStaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
858 { | 858 { |
859 ExceptionState exceptionState(ExceptionState::SetterContext, "partialStaticL
ongAttribute", "TestInterface", holder, info.GetIsolate()); | 859 ExceptionState exceptionState(ExceptionState::SetterContext, "partialStaticL
ongAttribute", "TestInterface", holder, info.GetIsolate()); |
860 int cppValue = toInt32(v8Value, exceptionState); | 860 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); |
861 if (exceptionState.throwIfNeeded()) | 861 if (exceptionState.throwIfNeeded()) |
862 return; | 862 return; |
863 TestPartialInterface::setPartialStaticLongAttribute(cppValue); | 863 TestPartialInterface::setPartialStaticLongAttribute(cppValue); |
864 } | 864 } |
865 #endif // ENABLE(PARTIAL_CONDITION) | 865 #endif // ENABLE(PARTIAL_CONDITION) |
866 | 866 |
867 #if ENABLE(PARTIAL_CONDITION) | 867 #if ENABLE(PARTIAL_CONDITION) |
868 static void partialStaticLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 868 static void partialStaticLongAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
869 { | 869 { |
870 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 870 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
(...skipping 20 matching lines...) Expand all Loading... |
891 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 891 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
892 } | 892 } |
893 #endif // ENABLE(PARTIAL_CONDITION) | 893 #endif // ENABLE(PARTIAL_CONDITION) |
894 | 894 |
895 #if ENABLE(PARTIAL_CONDITION) | 895 #if ENABLE(PARTIAL_CONDITION) |
896 static void partialCallWithExecutionContextLongAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 896 static void partialCallWithExecutionContextLongAttributeAttributeSetter(v8::Loca
l<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
897 { | 897 { |
898 v8::Local<v8::Object> holder = info.Holder(); | 898 v8::Local<v8::Object> holder = info.Holder(); |
899 ExceptionState exceptionState(ExceptionState::SetterContext, "partialCallWit
hExecutionContextLongAttribute", "TestInterface", holder, info.GetIsolate()); | 899 ExceptionState exceptionState(ExceptionState::SetterContext, "partialCallWit
hExecutionContextLongAttribute", "TestInterface", holder, info.GetIsolate()); |
900 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 900 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
901 int cppValue = toInt32(v8Value, exceptionState); | 901 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); |
902 if (exceptionState.throwIfNeeded()) | 902 if (exceptionState.throwIfNeeded()) |
903 return; | 903 return; |
904 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 904 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
905 TestPartialInterface::setPartialCallWithExecutionContextLongAttribute(execut
ionContext, *impl, cppValue); | 905 TestPartialInterface::setPartialCallWithExecutionContextLongAttribute(execut
ionContext, *impl, cppValue); |
906 } | 906 } |
907 #endif // ENABLE(PARTIAL_CONDITION) | 907 #endif // ENABLE(PARTIAL_CONDITION) |
908 | 908 |
909 #if ENABLE(PARTIAL_CONDITION) | 909 #if ENABLE(PARTIAL_CONDITION) |
910 static void partialCallWithExecutionContextLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) | 910 static void partialCallWithExecutionContextLongAttributeAttributeSetterCallback(
v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackI
nfo<void>& info) |
911 { | 911 { |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1011 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1012 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeGetter(
info); | 1012 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeGetter(
info); |
1013 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1013 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1014 } | 1014 } |
1015 | 1015 |
1016 static void partial2LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) | 1016 static void partial2LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::PropertyCallbackInfo<void>& info) |
1017 { | 1017 { |
1018 v8::Local<v8::Object> holder = info.Holder(); | 1018 v8::Local<v8::Object> holder = info.Holder(); |
1019 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2LongAt
tribute", "TestInterface", holder, info.GetIsolate()); | 1019 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2LongAt
tribute", "TestInterface", holder, info.GetIsolate()); |
1020 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 1020 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
1021 int cppValue = toInt32(v8Value, exceptionState); | 1021 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); |
1022 if (exceptionState.throwIfNeeded()) | 1022 if (exceptionState.throwIfNeeded()) |
1023 return; | 1023 return; |
1024 TestPartialInterfaceImplementation::setPartial2LongAttribute(*impl, cppValue
); | 1024 TestPartialInterfaceImplementation::setPartial2LongAttribute(*impl, cppValue
); |
1025 } | 1025 } |
1026 | 1026 |
1027 static void partial2LongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1027 static void partial2LongAttributeAttributeSetterCallback(v8::Local<v8::String>,
v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1028 { | 1028 { |
1029 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1029 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1030 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeSetter(
v8Value, info); | 1030 TestInterfaceImplementationV8Internal::partial2LongAttributeAttributeSetter(
v8Value, info); |
1031 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1031 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1032 } | 1032 } |
1033 | 1033 |
1034 static void partial2StaticLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) | 1034 static void partial2StaticLongAttributeAttributeGetter(const v8::PropertyCallbac
kInfo<v8::Value>& info) |
1035 { | 1035 { |
1036 v8SetReturnValueInt(info, TestPartialInterfaceImplementation::partial2Static
LongAttribute()); | 1036 v8SetReturnValueInt(info, TestPartialInterfaceImplementation::partial2Static
LongAttribute()); |
1037 } | 1037 } |
1038 | 1038 |
1039 static void partial2StaticLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1039 static void partial2StaticLongAttributeAttributeGetterCallback(v8::Local<v8::Str
ing>, const v8::PropertyCallbackInfo<v8::Value>& info) |
1040 { | 1040 { |
1041 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1041 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
1042 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeG
etter(info); | 1042 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeG
etter(info); |
1043 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1043 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1044 } | 1044 } |
1045 | 1045 |
1046 static void partial2StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) | 1046 static void partial2StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::PropertyCallbackInfo<void>& info) |
1047 { | 1047 { |
1048 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2Static
LongAttribute", "TestInterface", holder, info.GetIsolate()); | 1048 ExceptionState exceptionState(ExceptionState::SetterContext, "partial2Static
LongAttribute", "TestInterface", holder, info.GetIsolate()); |
1049 int cppValue = toInt32(v8Value, exceptionState); | 1049 int cppValue = toInt32(info.GetIsolate(), v8Value, exceptionState); |
1050 if (exceptionState.throwIfNeeded()) | 1050 if (exceptionState.throwIfNeeded()) |
1051 return; | 1051 return; |
1052 TestPartialInterfaceImplementation::setPartial2StaticLongAttribute(cppValue)
; | 1052 TestPartialInterfaceImplementation::setPartial2StaticLongAttribute(cppValue)
; |
1053 } | 1053 } |
1054 | 1054 |
1055 static void partial2StaticLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1055 static void partial2StaticLongAttributeAttributeSetterCallback(v8::Local<v8::Str
ing>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
1056 { | 1056 { |
1057 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1057 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
1058 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeS
etter(v8Value, info); | 1058 TestInterfaceImplementationV8Internal::partial2StaticLongAttributeAttributeS
etter(v8Value, info); |
1059 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1059 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 29 matching lines...) Expand all Loading... |
1089 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleArgFloatArg", "TestInterface", info.Holder(), info.GetIsolate()); | 1089 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
oubleArgFloatArg", "TestInterface", info.Holder(), info.GetIsolate()); |
1090 if (UNLIKELY(info.Length() < 2)) { | 1090 if (UNLIKELY(info.Length() < 2)) { |
1091 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 1091 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
1092 exceptionState.throwIfNeeded(); | 1092 exceptionState.throwIfNeeded(); |
1093 return; | 1093 return; |
1094 } | 1094 } |
1095 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1095 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
1096 double doubleArg; | 1096 double doubleArg; |
1097 float floatArg; | 1097 float floatArg; |
1098 { | 1098 { |
1099 doubleArg = toRestrictedDouble(info[0], exceptionState); | 1099 doubleArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionStat
e); |
1100 if (exceptionState.throwIfNeeded()) | 1100 if (exceptionState.throwIfNeeded()) |
1101 return; | 1101 return; |
1102 floatArg = toRestrictedFloat(info[1], exceptionState); | 1102 floatArg = toRestrictedFloat(info.GetIsolate(), info[1], exceptionState)
; |
1103 if (exceptionState.throwIfNeeded()) | 1103 if (exceptionState.throwIfNeeded()) |
1104 return; | 1104 return; |
1105 } | 1105 } |
1106 impl->voidMethodDoubleArgFloatArg(doubleArg, floatArg); | 1106 impl->voidMethodDoubleArgFloatArg(doubleArg, floatArg); |
1107 } | 1107 } |
1108 | 1108 |
1109 static void voidMethodDoubleArgFloatArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 1109 static void voidMethodDoubleArgFloatArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
1110 { | 1110 { |
1111 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 1111 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
1112 TestInterfaceImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(inf
o); | 1112 TestInterfaceImplementationV8Internal::voidMethodDoubleArgFloatArgMethod(inf
o); |
1113 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1113 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1114 } | 1114 } |
1115 | 1115 |
1116 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& info) | 1116 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethod(const v8::
FunctionCallbackInfo<v8::Value>& info) |
1117 { | 1117 { |
1118 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nrestrictedDoubleArgUnrestrictedFloatArg", "TestInterface", info.Holder(), info.
GetIsolate()); | 1118 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodU
nrestrictedDoubleArgUnrestrictedFloatArg", "TestInterface", info.Holder(), info.
GetIsolate()); |
1119 if (UNLIKELY(info.Length() < 2)) { | 1119 if (UNLIKELY(info.Length() < 2)) { |
1120 setMinimumArityTypeError(exceptionState, 2, info.Length()); | 1120 setMinimumArityTypeError(exceptionState, 2, info.Length()); |
1121 exceptionState.throwIfNeeded(); | 1121 exceptionState.throwIfNeeded(); |
1122 return; | 1122 return; |
1123 } | 1123 } |
1124 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1124 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
1125 double unrestrictedDoubleArg; | 1125 double unrestrictedDoubleArg; |
1126 float unrestrictedFloatArg; | 1126 float unrestrictedFloatArg; |
1127 { | 1127 { |
1128 unrestrictedDoubleArg = toDouble(info[0], exceptionState); | 1128 unrestrictedDoubleArg = toDouble(info.GetIsolate(), info[0], exceptionSt
ate); |
1129 if (exceptionState.throwIfNeeded()) | 1129 if (exceptionState.throwIfNeeded()) |
1130 return; | 1130 return; |
1131 unrestrictedFloatArg = toFloat(info[1], exceptionState); | 1131 unrestrictedFloatArg = toFloat(info.GetIsolate(), info[1], exceptionStat
e); |
1132 if (exceptionState.throwIfNeeded()) | 1132 if (exceptionState.throwIfNeeded()) |
1133 return; | 1133 return; |
1134 } | 1134 } |
1135 impl->voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestrictedDouble
Arg, unrestrictedFloatArg); | 1135 impl->voidMethodUnrestrictedDoubleArgUnrestrictedFloatArg(unrestrictedDouble
Arg, unrestrictedFloatArg); |
1136 } | 1136 } |
1137 | 1137 |
1138 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) | 1138 static void voidMethodUnrestrictedDoubleArgUnrestrictedFloatArgMethodCallback(co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
1139 { | 1139 { |
1140 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 1140 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
1141 TestInterfaceImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnrest
rictedFloatArgMethod(info); | 1141 TestInterfaceImplementationV8Internal::voidMethodUnrestrictedDoubleArgUnrest
rictedFloatArgMethod(info); |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1283 TestInterfaceImplementationV8Internal::methodWithExposedAndRuntimeEnabledFla
gMethod(info); | 1283 TestInterfaceImplementationV8Internal::methodWithExposedAndRuntimeEnabledFla
gMethod(info); |
1284 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1284 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
1285 } | 1285 } |
1286 | 1286 |
1287 static void overloadMethodWithExposedAndRuntimeEnabledFlag1Method(const v8::Func
tionCallbackInfo<v8::Value>& info) | 1287 static void overloadMethodWithExposedAndRuntimeEnabledFlag1Method(const v8::Func
tionCallbackInfo<v8::Value>& info) |
1288 { | 1288 { |
1289 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadMet
hodWithExposedAndRuntimeEnabledFlag", "TestInterface", info.Holder(), info.GetIs
olate()); | 1289 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadMet
hodWithExposedAndRuntimeEnabledFlag", "TestInterface", info.Holder(), info.GetIs
olate()); |
1290 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1290 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
1291 int longArg; | 1291 int longArg; |
1292 { | 1292 { |
1293 longArg = toInt32(info[0], exceptionState); | 1293 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); |
1294 if (exceptionState.throwIfNeeded()) | 1294 if (exceptionState.throwIfNeeded()) |
1295 return; | 1295 return; |
1296 } | 1296 } |
1297 impl->overloadMethodWithExposedAndRuntimeEnabledFlag(longArg); | 1297 impl->overloadMethodWithExposedAndRuntimeEnabledFlag(longArg); |
1298 } | 1298 } |
1299 | 1299 |
1300 static void overloadMethodWithExposedAndRuntimeEnabledFlag2Method(const v8::Func
tionCallbackInfo<v8::Value>& info) | 1300 static void overloadMethodWithExposedAndRuntimeEnabledFlag2Method(const v8::Func
tionCallbackInfo<v8::Value>& info) |
1301 { | 1301 { |
1302 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1302 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
1303 V8StringResource<> string; | 1303 V8StringResource<> string; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1400 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1400 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
1401 impl->voidMethodPartialOverload(); | 1401 impl->voidMethodPartialOverload(); |
1402 } | 1402 } |
1403 | 1403 |
1404 static void voidMethodPartialOverload2Method(const v8::FunctionCallbackInfo<v8::
Value>& info) | 1404 static void voidMethodPartialOverload2Method(const v8::FunctionCallbackInfo<v8::
Value>& info) |
1405 { | 1405 { |
1406 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodP
artialOverload", "TestInterface", info.Holder(), info.GetIsolate()); | 1406 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodP
artialOverload", "TestInterface", info.Holder(), info.GetIsolate()); |
1407 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1407 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
1408 double doubleArg; | 1408 double doubleArg; |
1409 { | 1409 { |
1410 doubleArg = toRestrictedDouble(info[0], exceptionState); | 1410 doubleArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionStat
e); |
1411 if (exceptionState.throwIfNeeded()) | 1411 if (exceptionState.throwIfNeeded()) |
1412 return; | 1412 return; |
1413 } | 1413 } |
1414 impl->voidMethodPartialOverload(doubleArg); | 1414 impl->voidMethodPartialOverload(doubleArg); |
1415 } | 1415 } |
1416 | 1416 |
1417 static void staticVoidMethodPartialOverload1Method(const v8::FunctionCallbackInf
o<v8::Value>& info) | 1417 static void staticVoidMethodPartialOverload1Method(const v8::FunctionCallbackInf
o<v8::Value>& info) |
1418 { | 1418 { |
1419 TestInterfaceImplementation::staticVoidMethodPartialOverload(); | 1419 TestInterfaceImplementation::staticVoidMethodPartialOverload(); |
1420 } | 1420 } |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1611 { | 1611 { |
1612 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialVoid
MethodLongArg", "TestInterface", info.Holder(), info.GetIsolate()); | 1612 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialVoid
MethodLongArg", "TestInterface", info.Holder(), info.GetIsolate()); |
1613 if (UNLIKELY(info.Length() < 1)) { | 1613 if (UNLIKELY(info.Length() < 1)) { |
1614 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 1614 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
1615 exceptionState.throwIfNeeded(); | 1615 exceptionState.throwIfNeeded(); |
1616 return; | 1616 return; |
1617 } | 1617 } |
1618 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1618 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
1619 int longArg; | 1619 int longArg; |
1620 { | 1620 { |
1621 longArg = toInt32(info[0], exceptionState); | 1621 longArg = toInt32(info.GetIsolate(), info[0], exceptionState); |
1622 if (exceptionState.throwIfNeeded()) | 1622 if (exceptionState.throwIfNeeded()) |
1623 return; | 1623 return; |
1624 } | 1624 } |
1625 TestPartialInterface::partialVoidMethodLongArg(*impl, longArg); | 1625 TestPartialInterface::partialVoidMethodLongArg(*impl, longArg); |
1626 } | 1626 } |
1627 #endif // ENABLE(PARTIAL_CONDITION) | 1627 #endif // ENABLE(PARTIAL_CONDITION) |
1628 | 1628 |
1629 #if ENABLE(PARTIAL_CONDITION) | 1629 #if ENABLE(PARTIAL_CONDITION) |
1630 static void partialVoidMethodLongArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 1630 static void partialVoidMethodLongArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
1631 { | 1631 { |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1692 { | 1692 { |
1693 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestInterface", info.Holder(), in
fo.GetIsolate()); | 1693 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestInterface", info.Holder(), in
fo.GetIsolate()); |
1694 if (UNLIKELY(info.Length() < 1)) { | 1694 if (UNLIKELY(info.Length() < 1)) { |
1695 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 1695 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
1696 exceptionState.throwIfNeeded(); | 1696 exceptionState.throwIfNeeded(); |
1697 return; | 1697 return; |
1698 } | 1698 } |
1699 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1699 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
1700 int value; | 1700 int value; |
1701 { | 1701 { |
1702 value = toInt16(info[0], exceptionState); | 1702 value = toInt16(info.GetIsolate(), info[0], exceptionState); |
1703 if (exceptionState.throwIfNeeded()) | 1703 if (exceptionState.throwIfNeeded()) |
1704 return; | 1704 return; |
1705 } | 1705 } |
1706 int result = 0; | 1706 int result = 0; |
1707 if (!V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplemented
InPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCu
rrentContext())), impl, value, &result)) | 1707 if (!V8TestInterface::PrivateScript::shortMethodWithShortArgumentImplemented
InPrivateScriptMethod(toLocalFrame(toFrameIfNotDetached(info.GetIsolate()->GetCu
rrentContext())), impl, value, &result)) |
1708 return; | 1708 return; |
1709 v8SetReturnValueInt(info, result); | 1709 v8SetReturnValueInt(info, result); |
1710 } | 1710 } |
1711 #endif // ENABLE(PARTIAL_CONDITION) | 1711 #endif // ENABLE(PARTIAL_CONDITION) |
1712 | 1712 |
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2431 | 2431 |
2432 ScriptState::Scope scope(scriptState); | 2432 ScriptState::Scope scope(scriptState); |
2433 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 2433 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
2434 | 2434 |
2435 v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(),
value); | 2435 v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(),
value); |
2436 v8::Local<v8::Value> argv[] = { valueHandle }; | 2436 v8::Local<v8::Value> argv[] = { valueHandle }; |
2437 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestInterfaceImplementation", scr
iptState->context()->Global(), scriptState->isolate()); | 2437 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestInterfaceImplementation", scr
iptState->context()->Global(), scriptState->isolate()); |
2438 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestInterfaceImplementation", "shortMethodWithShortA
rgumentImplementedInPrivateScript", holder, 1, argv); | 2438 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestInterfaceImplementation", "shortMethodWithShortA
rgumentImplementedInPrivateScript", holder, 1, argv); |
2439 if (v8Value.IsEmpty()) | 2439 if (v8Value.IsEmpty()) |
2440 return false; | 2440 return false; |
2441 int cppValue = toInt16(v8Value, exceptionState); | 2441 int cppValue = toInt16(scriptState->isolate(), v8Value, exceptionState); |
2442 if (exceptionState.throwIfNeeded()) | 2442 if (exceptionState.throwIfNeeded()) |
2443 return false; | 2443 return false; |
2444 *result = cppValue; | 2444 *result = cppValue; |
2445 RELEASE_ASSERT(!exceptionState.hadException()); | 2445 RELEASE_ASSERT(!exceptionState.hadException()); |
2446 return true; | 2446 return true; |
2447 } | 2447 } |
2448 | 2448 |
2449 bool V8TestInterface::PrivateScript::stringAttributeAttributeGetter(LocalFrame*
frame, TestInterfaceImplementation* holderImpl, String* result) | 2449 bool V8TestInterface::PrivateScript::stringAttributeAttributeGetter(LocalFrame*
frame, TestInterfaceImplementation* holderImpl, String* result) |
2450 { | 2450 { |
2451 if (!frame) | 2451 if (!frame) |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2524 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2524 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
2525 { | 2525 { |
2526 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2526 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
2527 } | 2527 } |
2528 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2528 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
2529 { | 2529 { |
2530 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2530 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
2531 } | 2531 } |
2532 } // namespace blink | 2532 } // namespace blink |
2533 #endif // ENABLE(CONDITION) | 2533 #endif // ENABLE(CONDITION) |
OLD | NEW |