| 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 #include "V8TestObject.h" | 8 #include "V8TestObject.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/BindingSecurity.h" | 10 #include "bindings/core/v8/BindingSecurity.h" |
| (...skipping 1553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1564 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1564 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1565 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info); | 1565 TestObjectV8Internal::stringArrayAttributeAttributeGetter(info); |
| 1566 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1566 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1567 } | 1567 } |
| 1568 | 1568 |
| 1569 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::FunctionCallbackInfo<v8::Value>& info) | 1569 static void stringArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
| 1570 { | 1570 { |
| 1571 v8::Local<v8::Object> holder = info.Holder(); | 1571 v8::Local<v8::Object> holder = info.Holder(); |
| 1572 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); | 1572 ExceptionState exceptionState(ExceptionState::SetterContext, "stringArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); |
| 1573 TestObject* impl = V8TestObject::toImpl(holder); | 1573 TestObject* impl = V8TestObject::toImpl(holder); |
| 1574 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(),
exceptionState); | 1574 Vector<String> cppValue = toImplArray<Vector<String>>(v8Value, 0, info.GetIs
olate(), exceptionState); |
| 1575 if (exceptionState.throwIfNeeded()) | 1575 if (exceptionState.throwIfNeeded()) |
| 1576 return; | 1576 return; |
| 1577 impl->setStringArrayAttribute(cppValue); | 1577 impl->setStringArrayAttribute(cppValue); |
| 1578 } | 1578 } |
| 1579 | 1579 |
| 1580 static void stringArrayAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 1580 static void stringArrayAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 1581 { | 1581 { |
| 1582 v8::Local<v8::Value> v8Value = info[0]; | 1582 v8::Local<v8::Value> v8Value = info[0]; |
| 1583 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1583 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1584 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info); | 1584 TestObjectV8Internal::stringArrayAttributeAttributeSetter(v8Value, info); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1630 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 1630 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 1631 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info); | 1631 TestObjectV8Internal::floatArrayAttributeAttributeGetter(info); |
| 1632 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 1632 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 1633 } | 1633 } |
| 1634 | 1634 |
| 1635 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::FunctionCallbackInfo<v8::Value>& info) | 1635 static void floatArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con
st v8::FunctionCallbackInfo<v8::Value>& info) |
| 1636 { | 1636 { |
| 1637 v8::Local<v8::Object> holder = info.Holder(); | 1637 v8::Local<v8::Object> holder = info.Holder(); |
| 1638 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr
ibute", "TestObject", holder, info.GetIsolate()); | 1638 ExceptionState exceptionState(ExceptionState::SetterContext, "floatArrayAttr
ibute", "TestObject", holder, info.GetIsolate()); |
| 1639 TestObject* impl = V8TestObject::toImpl(holder); | 1639 TestObject* impl = V8TestObject::toImpl(holder); |
| 1640 Vector<float> cppValue = toImplArray<float>(v8Value, 0, info.GetIsolate(), e
xceptionState); | 1640 Vector<float> cppValue = toImplArray<Vector<float>>(v8Value, 0, info.GetIsol
ate(), exceptionState); |
| 1641 if (exceptionState.throwIfNeeded()) | 1641 if (exceptionState.throwIfNeeded()) |
| 1642 return; | 1642 return; |
| 1643 impl->setFloatArrayAttribute(cppValue); | 1643 impl->setFloatArrayAttribute(cppValue); |
| 1644 } | 1644 } |
| 1645 | 1645 |
| 1646 static void floatArrayAttributeAttributeSetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) | 1646 static void floatArrayAttributeAttributeSetterCallback(const v8::FunctionCallbac
kInfo<v8::Value>& info) |
| 1647 { | 1647 { |
| 1648 v8::Local<v8::Value> v8Value = info[0]; | 1648 v8::Local<v8::Value> v8Value = info[0]; |
| 1649 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 1649 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| 1650 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info); | 1650 TestObjectV8Internal::floatArrayAttributeAttributeSetter(v8Value, info); |
| (...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2323 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 2323 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| 2324 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info); | 2324 TestObjectV8Internal::cachedArrayAttributeAttributeGetter(info); |
| 2325 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 2325 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 2326 } | 2326 } |
| 2327 | 2327 |
| 2328 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::FunctionCallbackInfo<v8::Value>& info) | 2328 static void cachedArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co
nst v8::FunctionCallbackInfo<v8::Value>& info) |
| 2329 { | 2329 { |
| 2330 v8::Local<v8::Object> holder = info.Holder(); | 2330 v8::Local<v8::Object> holder = info.Holder(); |
| 2331 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); | 2331 ExceptionState exceptionState(ExceptionState::SetterContext, "cachedArrayAtt
ribute", "TestObject", holder, info.GetIsolate()); |
| 2332 TestObject* impl = V8TestObject::toImpl(holder); | 2332 TestObject* impl = V8TestObject::toImpl(holder); |
| 2333 Vector<String> cppValue = toImplArray<String>(v8Value, 0, info.GetIsolate(),
exceptionState); | 2333 Vector<String> cppValue = toImplArray<Vector<String>>(v8Value, 0, info.GetIs
olate(), exceptionState); |
| 2334 if (exceptionState.throwIfNeeded()) | 2334 if (exceptionState.throwIfNeeded()) |
| 2335 return; | 2335 return; |
| 2336 impl->setCachedArrayAttribute(cppValue); | 2336 impl->setCachedArrayAttribute(cppValue); |
| 2337 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. | 2337 V8HiddenValue::deleteHiddenValue(info.GetIsolate(), holder, v8AtomicString(i
nfo.GetIsolate(), "cachedArrayAttribute")); // Invalidate the cached value. |
| 2338 } | 2338 } |
| 2339 | 2339 |
| 2340 static void cachedArrayAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 2340 static void cachedArrayAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 2341 { | 2341 { |
| 2342 v8::Local<v8::Value> v8Value = info[0]; | 2342 v8::Local<v8::Value> v8Value = info[0]; |
| 2343 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); | 2343 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); |
| (...skipping 4625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6969 { | 6969 { |
| 6970 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 6970 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6971 if (UNLIKELY(info.Length() < 1)) { | 6971 if (UNLIKELY(info.Length() < 1)) { |
| 6972 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6972 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6973 exceptionState.throwIfNeeded(); | 6973 exceptionState.throwIfNeeded(); |
| 6974 return; | 6974 return; |
| 6975 } | 6975 } |
| 6976 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 6976 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 6977 Vector<int> arrayLongArg; | 6977 Vector<int> arrayLongArg; |
| 6978 { | 6978 { |
| 6979 arrayLongArg = toImplArray<int>(info[0], 1, info.GetIsolate(), exception
State); | 6979 arrayLongArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate(), e
xceptionState); |
| 6980 if (exceptionState.throwIfNeeded()) | 6980 if (exceptionState.throwIfNeeded()) |
| 6981 return; | 6981 return; |
| 6982 } | 6982 } |
| 6983 impl->voidMethodArrayLongArg(arrayLongArg); | 6983 impl->voidMethodArrayLongArg(arrayLongArg); |
| 6984 } | 6984 } |
| 6985 | 6985 |
| 6986 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) | 6986 static void voidMethodArrayLongArgMethodCallback(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 6987 { | 6987 { |
| 6988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 6988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 6989 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); | 6989 TestObjectV8Internal::voidMethodArrayLongArgMethod(info); |
| 6990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 6990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 6991 } | 6991 } |
| 6992 | 6992 |
| 6993 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 6993 static void voidMethodArrayStringArgMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 6994 { | 6994 { |
| 6995 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 6995 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodA
rrayStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 6996 if (UNLIKELY(info.Length() < 1)) { | 6996 if (UNLIKELY(info.Length() < 1)) { |
| 6997 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 6997 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 6998 exceptionState.throwIfNeeded(); | 6998 exceptionState.throwIfNeeded(); |
| 6999 return; | 6999 return; |
| 7000 } | 7000 } |
| 7001 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7001 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7002 Vector<String> arrayStringArg; | 7002 Vector<String> arrayStringArg; |
| 7003 { | 7003 { |
| 7004 arrayStringArg = toImplArray<String>(info[0], 1, info.GetIsolate(), exce
ptionState); | 7004 arrayStringArg = toImplArray<Vector<String>>(info[0], 1, info.GetIsolate
(), exceptionState); |
| 7005 if (exceptionState.throwIfNeeded()) | 7005 if (exceptionState.throwIfNeeded()) |
| 7006 return; | 7006 return; |
| 7007 } | 7007 } |
| 7008 impl->voidMethodArrayStringArg(arrayStringArg); | 7008 impl->voidMethodArrayStringArg(arrayStringArg); |
| 7009 } | 7009 } |
| 7010 | 7010 |
| 7011 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) | 7011 static void voidMethodArrayStringArgMethodCallback(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 7012 { | 7012 { |
| 7013 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7013 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7014 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); | 7014 TestObjectV8Internal::voidMethodArrayStringArgMethod(info); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 7045 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodN
ullableArrayLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7045 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodN
ullableArrayLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7046 if (UNLIKELY(info.Length() < 1)) { | 7046 if (UNLIKELY(info.Length() < 1)) { |
| 7047 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7047 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7048 exceptionState.throwIfNeeded(); | 7048 exceptionState.throwIfNeeded(); |
| 7049 return; | 7049 return; |
| 7050 } | 7050 } |
| 7051 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7051 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7052 Nullable<Vector<int>> arrayLongArg; | 7052 Nullable<Vector<int>> arrayLongArg; |
| 7053 { | 7053 { |
| 7054 if (!isUndefinedOrNull(info[0])) { | 7054 if (!isUndefinedOrNull(info[0])) { |
| 7055 arrayLongArg = toImplArray<int>(info[0], 1, info.GetIsolate(), excep
tionState); | 7055 arrayLongArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate(
), exceptionState); |
| 7056 if (exceptionState.throwIfNeeded()) | 7056 if (exceptionState.throwIfNeeded()) |
| 7057 return; | 7057 return; |
| 7058 } | 7058 } |
| 7059 } | 7059 } |
| 7060 impl->voidMethodNullableArrayLongArg(arrayLongArg); | 7060 impl->voidMethodNullableArrayLongArg(arrayLongArg); |
| 7061 } | 7061 } |
| 7062 | 7062 |
| 7063 static void voidMethodNullableArrayLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) | 7063 static void voidMethodNullableArrayLongArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 7064 { | 7064 { |
| 7065 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7065 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7110 { | 7110 { |
| 7111 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7111 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7112 if (UNLIKELY(info.Length() < 1)) { | 7112 if (UNLIKELY(info.Length() < 1)) { |
| 7113 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7113 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7114 exceptionState.throwIfNeeded(); | 7114 exceptionState.throwIfNeeded(); |
| 7115 return; | 7115 return; |
| 7116 } | 7116 } |
| 7117 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7117 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7118 Vector<int> longSequenceArg; | 7118 Vector<int> longSequenceArg; |
| 7119 { | 7119 { |
| 7120 longSequenceArg = toImplArray<int>(info[0], 1, info.GetIsolate(), except
ionState); | 7120 longSequenceArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate()
, exceptionState); |
| 7121 if (exceptionState.throwIfNeeded()) | 7121 if (exceptionState.throwIfNeeded()) |
| 7122 return; | 7122 return; |
| 7123 } | 7123 } |
| 7124 impl->voidMethodSequenceLongArg(longSequenceArg); | 7124 impl->voidMethodSequenceLongArg(longSequenceArg); |
| 7125 } | 7125 } |
| 7126 | 7126 |
| 7127 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 7127 static void voidMethodSequenceLongArgMethodCallback(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 7128 { | 7128 { |
| 7129 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7129 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7130 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); | 7130 TestObjectV8Internal::voidMethodSequenceLongArgMethod(info); |
| 7131 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7131 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7132 } | 7132 } |
| 7133 | 7133 |
| 7134 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) | 7134 static void voidMethodSequenceStringArgMethod(const v8::FunctionCallbackInfo<v8:
:Value>& info) |
| 7135 { | 7135 { |
| 7136 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 7136 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7137 if (UNLIKELY(info.Length() < 1)) { | 7137 if (UNLIKELY(info.Length() < 1)) { |
| 7138 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7138 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7139 exceptionState.throwIfNeeded(); | 7139 exceptionState.throwIfNeeded(); |
| 7140 return; | 7140 return; |
| 7141 } | 7141 } |
| 7142 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7142 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7143 Vector<String> stringSequenceArg; | 7143 Vector<String> stringSequenceArg; |
| 7144 { | 7144 { |
| 7145 stringSequenceArg = toImplArray<String>(info[0], 1, info.GetIsolate(), e
xceptionState); | 7145 stringSequenceArg = toImplArray<Vector<String>>(info[0], 1, info.GetIsol
ate(), exceptionState); |
| 7146 if (exceptionState.throwIfNeeded()) | 7146 if (exceptionState.throwIfNeeded()) |
| 7147 return; | 7147 return; |
| 7148 } | 7148 } |
| 7149 impl->voidMethodSequenceStringArg(stringSequenceArg); | 7149 impl->voidMethodSequenceStringArg(stringSequenceArg); |
| 7150 } | 7150 } |
| 7151 | 7151 |
| 7152 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) | 7152 static void voidMethodSequenceStringArgMethodCallback(const v8::FunctionCallback
Info<v8::Value>& info) |
| 7153 { | 7153 { |
| 7154 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7154 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7155 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); | 7155 TestObjectV8Internal::voidMethodSequenceStringArgMethod(info); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 7185 { | 7185 { |
| 7186 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceSequenceDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); | 7186 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
equenceSequenceDOMStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7187 if (UNLIKELY(info.Length() < 1)) { | 7187 if (UNLIKELY(info.Length() < 1)) { |
| 7188 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7188 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7189 exceptionState.throwIfNeeded(); | 7189 exceptionState.throwIfNeeded(); |
| 7190 return; | 7190 return; |
| 7191 } | 7191 } |
| 7192 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7192 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7193 Vector<Vector<String>> stringSequenceSequenceArg; | 7193 Vector<Vector<String>> stringSequenceSequenceArg; |
| 7194 { | 7194 { |
| 7195 stringSequenceSequenceArg = toImplArray<Vector<String>>(info[0], 1, info
.GetIsolate(), exceptionState); | 7195 stringSequenceSequenceArg = toImplArray<Vector<Vector<String>>>(info[0],
1, info.GetIsolate(), exceptionState); |
| 7196 if (exceptionState.throwIfNeeded()) | 7196 if (exceptionState.throwIfNeeded()) |
| 7197 return; | 7197 return; |
| 7198 } | 7198 } |
| 7199 impl->voidMethodSequenceSequenceDOMStringArg(stringSequenceSequenceArg); | 7199 impl->voidMethodSequenceSequenceDOMStringArg(stringSequenceSequenceArg); |
| 7200 } | 7200 } |
| 7201 | 7201 |
| 7202 static void voidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) | 7202 static void voidMethodSequenceSequenceDOMStringArgMethodCallback(const v8::Funct
ionCallbackInfo<v8::Value>& info) |
| 7203 { | 7203 { |
| 7204 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7204 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7205 TestObjectV8Internal::voidMethodSequenceSequenceDOMStringArgMethod(info); | 7205 TestObjectV8Internal::voidMethodSequenceSequenceDOMStringArgMethod(info); |
| 7206 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 7206 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 7207 } | 7207 } |
| 7208 | 7208 |
| 7209 static void voidMethodNullableSequenceLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) | 7209 static void voidMethodNullableSequenceLongArgMethod(const v8::FunctionCallbackIn
fo<v8::Value>& info) |
| 7210 { | 7210 { |
| 7211 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodN
ullableSequenceLongArg", "TestObject", info.Holder(), info.GetIsolate()); | 7211 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodN
ullableSequenceLongArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7212 if (UNLIKELY(info.Length() < 1)) { | 7212 if (UNLIKELY(info.Length() < 1)) { |
| 7213 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7213 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7214 exceptionState.throwIfNeeded(); | 7214 exceptionState.throwIfNeeded(); |
| 7215 return; | 7215 return; |
| 7216 } | 7216 } |
| 7217 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7217 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7218 Nullable<Vector<int>> longSequenceArg; | 7218 Nullable<Vector<int>> longSequenceArg; |
| 7219 { | 7219 { |
| 7220 if (!isUndefinedOrNull(info[0])) { | 7220 if (!isUndefinedOrNull(info[0])) { |
| 7221 longSequenceArg = toImplArray<int>(info[0], 1, info.GetIsolate(), ex
ceptionState); | 7221 longSequenceArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsola
te(), exceptionState); |
| 7222 if (exceptionState.throwIfNeeded()) | 7222 if (exceptionState.throwIfNeeded()) |
| 7223 return; | 7223 return; |
| 7224 } | 7224 } |
| 7225 } | 7225 } |
| 7226 impl->voidMethodNullableSequenceLongArg(longSequenceArg); | 7226 impl->voidMethodNullableSequenceLongArg(longSequenceArg); |
| 7227 } | 7227 } |
| 7228 | 7228 |
| 7229 static void voidMethodNullableSequenceLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) | 7229 static void voidMethodNullableSequenceLongArgMethodCallback(const v8::FunctionCa
llbackInfo<v8::Value>& info) |
| 7230 { | 7230 { |
| 7231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7231 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| (...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7935 { | 7935 { |
| 7936 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
ictionarySequenceArg", "TestObject", info.Holder(), info.GetIsolate()); | 7936 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
ictionarySequenceArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 7937 if (UNLIKELY(info.Length() < 1)) { | 7937 if (UNLIKELY(info.Length() < 1)) { |
| 7938 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 7938 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 7939 exceptionState.throwIfNeeded(); | 7939 exceptionState.throwIfNeeded(); |
| 7940 return; | 7940 return; |
| 7941 } | 7941 } |
| 7942 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 7942 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 7943 Vector<Dictionary> dictionarySequenceArg; | 7943 Vector<Dictionary> dictionarySequenceArg; |
| 7944 { | 7944 { |
| 7945 dictionarySequenceArg = toImplArray<Dictionary>(info[0], 1, info.GetIsol
ate(), exceptionState); | 7945 dictionarySequenceArg = toImplArray<Vector<Dictionary>>(info[0], 1, info
.GetIsolate(), exceptionState); |
| 7946 if (exceptionState.throwIfNeeded()) | 7946 if (exceptionState.throwIfNeeded()) |
| 7947 return; | 7947 return; |
| 7948 } | 7948 } |
| 7949 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); | 7949 impl->voidMethodDictionarySequenceArg(dictionarySequenceArg); |
| 7950 } | 7950 } |
| 7951 | 7951 |
| 7952 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) | 7952 static void voidMethodDictionarySequenceArgMethodCallback(const v8::FunctionCall
backInfo<v8::Value>& info) |
| 7953 { | 7953 { |
| 7954 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 7954 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 7955 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); | 7955 TestObjectV8Internal::voidMethodDictionarySequenceArgMethod(info); |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8553 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 8553 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
| 8554 } | 8554 } |
| 8555 | 8555 |
| 8556 static void voidMethodDefaultStringSequenceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 8556 static void voidMethodDefaultStringSequenceArgMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 8557 { | 8557 { |
| 8558 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultStringSequenceArg", "TestObject", info.Holder(), info.GetIsolate()); | 8558 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
efaultStringSequenceArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 8559 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8559 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8560 Vector<String> defaultStringSequenceArg; | 8560 Vector<String> defaultStringSequenceArg; |
| 8561 { | 8561 { |
| 8562 if (!info[0]->IsUndefined()) { | 8562 if (!info[0]->IsUndefined()) { |
| 8563 defaultStringSequenceArg = toImplArray<String>(info[0], 1, info.GetI
solate(), exceptionState); | 8563 defaultStringSequenceArg = toImplArray<Vector<String>>(info[0], 1, i
nfo.GetIsolate(), exceptionState); |
| 8564 if (exceptionState.throwIfNeeded()) | 8564 if (exceptionState.throwIfNeeded()) |
| 8565 return; | 8565 return; |
| 8566 } else { | 8566 } else { |
| 8567 /* Nothing to do */; | 8567 /* Nothing to do */; |
| 8568 } | 8568 } |
| 8569 } | 8569 } |
| 8570 impl->voidMethodDefaultStringSequenceArg(defaultStringSequenceArg); | 8570 impl->voidMethodDefaultStringSequenceArg(defaultStringSequenceArg); |
| 8571 } | 8571 } |
| 8572 | 8572 |
| 8573 static void voidMethodDefaultStringSequenceArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) | 8573 static void voidMethodDefaultStringSequenceArgMethodCallback(const v8::FunctionC
allbackInfo<v8::Value>& info) |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8946 } | 8946 } |
| 8947 impl->overloadedMethodD(longArg); | 8947 impl->overloadedMethodD(longArg); |
| 8948 } | 8948 } |
| 8949 | 8949 |
| 8950 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 8950 static void overloadedMethodD2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 8951 { | 8951 { |
| 8952 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); | 8952 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); |
| 8953 TestObject* impl = V8TestObject::toImpl(info.Holder()); | 8953 TestObject* impl = V8TestObject::toImpl(info.Holder()); |
| 8954 Vector<int> longArrayArg; | 8954 Vector<int> longArrayArg; |
| 8955 { | 8955 { |
| 8956 longArrayArg = toImplArray<int>(info[0], 1, info.GetIsolate(), exception
State); | 8956 longArrayArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate(), e
xceptionState); |
| 8957 if (exceptionState.throwIfNeeded()) | 8957 if (exceptionState.throwIfNeeded()) |
| 8958 return; | 8958 return; |
| 8959 } | 8959 } |
| 8960 impl->overloadedMethodD(longArrayArg); | 8960 impl->overloadedMethodD(longArrayArg); |
| 8961 } | 8961 } |
| 8962 | 8962 |
| 8963 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) | 8963 static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i
nfo) |
| 8964 { | 8964 { |
| 8965 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); | 8965 ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedM
ethodD", "TestObject", info.Holder(), info.GetIsolate()); |
| 8966 switch (std::min(1, info.Length())) { | 8966 switch (std::min(1, info.Length())) { |
| (...skipping 4490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13457 return false; | 13457 return false; |
| 13458 | 13458 |
| 13459 ScriptState::Scope scope(scriptState); | 13459 ScriptState::Scope scope(scriptState); |
| 13460 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 13460 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 13461 | 13461 |
| 13462 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; | 13462 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate
Script", "TestObject", scriptState->context()->Global(), scriptState->isolate())
; |
| 13463 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); | 13463 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn
UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState->
isolate(), cppValue)); |
| 13464 } | 13464 } |
| 13465 | 13465 |
| 13466 } // namespace blink | 13466 } // namespace blink |
| OLD | NEW |