| 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 367 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(info.GetIsolate(), v8Value, exceptionState); | 388 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
| 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::Name>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 394 static void alwaysExposedAttributeAttributeSetterCallback(v8::Local<v8::Name>, v
8::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(info.GetIsolate(), v8Value, exceptionState); | 420 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
| 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::Name>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 426 static void workerExposedAttributeAttributeSetterCallback(v8::Local<v8::Name>, v
8::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(info.GetIsolate(), v8Value, exceptionState); | 452 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
| 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::Name>, v
8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 458 static void windowExposedAttributeAttributeSetterCallback(v8::Local<v8::Name>, v
8::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(info.GetIsolate(), v8Value, exceptionState); | 824 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
| 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::Name>, v8:
:Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 832 static void partialLongAttributeAttributeSetterCallback(v8::Local<v8::Name>, v8:
: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(info.GetIsolate(), v8Value, exceptionState); | 860 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
| 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::Name
>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 868 static void partialStaticLongAttributeAttributeSetterCallback(v8::Local<v8::Name
>, 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(info.GetIsolate(), v8Value, exceptionState); | 901 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
| 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::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf
o<void>& info) | 910 static void partialCallWithExecutionContextLongAttributeAttributeSetterCallback(
v8::Local<v8::Name>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInf
o<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(info.GetIsolate(), v8Value, exceptionState); | 1021 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
| 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::Name>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1027 static void partial2LongAttributeAttributeSetterCallback(v8::Local<v8::Name>, 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::Nam
e>, const v8::PropertyCallbackInfo<v8::Value>& info) | 1039 static void partial2StaticLongAttributeAttributeGetterCallback(v8::Local<v8::Nam
e>, 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(info.GetIsolate(), v8Value, exceptionState); | 1049 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti
onState); |
| 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::Nam
e>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 1055 static void partial2StaticLongAttributeAttributeSetterCallback(v8::Local<v8::Nam
e>, 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 223 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.GetIsolate(), info[0], exceptionState); | 1293 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio
nState); |
| 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 307 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.GetIsolate(), info[0], exceptionState); | 1621 longArg = toInt32(info.GetIsolate(), info[0], NormalConversion, exceptio
nState); |
| 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.GetIsolate(), info[0], exceptionState); | 1702 value = toInt16(info.GetIsolate(), info[0], NormalConversion, exceptionS
tate); |
| 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(scriptState->isolate(), v8Value, exceptionState); | 2441 int cppValue = toInt16(scriptState->isolate(), v8Value, NormalConversion, ex
ceptionState); |
| 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 |