Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: Source/bindings/tests/results/core/V8TestObject.cpp

Issue 832503002: [bindings] Eliminate remaining traces of Handle<> from the generated binding code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterfaceNode.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
973 { 973 {
974 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 974 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
975 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info); 975 TestObjectV8Internal::nodeFilterAttributeAttributeSetter(v8Value, info);
976 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 976 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
977 } 977 }
978 978
979 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info) 979 static void serializedScriptValueAttributeAttributeGetter(const v8::PropertyCall backInfo<v8::Value>& info)
980 { 980 {
981 v8::Local<v8::Object> holder = info.Holder(); 981 v8::Local<v8::Object> holder = info.Holder();
982 TestObject* impl = V8TestObject::toImpl(holder); 982 TestObject* impl = V8TestObject::toImpl(holder);
983 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial izedScriptValueAttribute()->deserialize() : v8::Handle<v8::Value>(v8::Null(info. GetIsolate()))); 983 v8SetReturnValue(info, impl->serializedScriptValueAttribute() ? impl->serial izedScriptValueAttribute()->deserialize() : v8::Local<v8::Value>(v8::Null(info.G etIsolate())));
984 } 984 }
985 985
986 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info) 986 static void serializedScriptValueAttributeAttributeGetterCallback(v8::Local<v8:: String>, const v8::PropertyCallbackInfo<v8::Value>& info)
987 { 987 {
988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
989 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info); 989 TestObjectV8Internal::serializedScriptValueAttributeAttributeGetter(info);
990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
991 } 991 }
992 992
993 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info) 993 static void serializedScriptValueAttributeAttributeSetter(v8::Local<v8::Value> v 8Value, const v8::PropertyCallbackInfo<void>& info)
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 { 1278 {
1279 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1279 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1280 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info); 1280 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info);
1281 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1281 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1282 } 1282 }
1283 1283
1284 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 1284 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
1285 { 1285 {
1286 v8::Local<v8::Object> holder = info.Holder(); 1286 v8::Local<v8::Object> holder = info.Holder();
1287 TestObject* impl = V8TestObject::toImpl(holder); 1287 TestObject* impl = V8TestObject::toImpl(holder);
1288 TestArrayBuffer* cppValue = v8Value->IsArrayBuffer() ? V8ArrayBuffer::toImpl (v8::Handle<v8::ArrayBuffer>::Cast(v8Value)) : 0; 1288 TestArrayBuffer* cppValue = v8Value->IsArrayBuffer() ? V8ArrayBuffer::toImpl (v8::Local<v8::ArrayBuffer>::Cast(v8Value)) : 0;
1289 impl->setArrayBufferAttribute(WTF::getPtr(cppValue)); 1289 impl->setArrayBufferAttribute(WTF::getPtr(cppValue));
1290 } 1290 }
1291 1291
1292 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1292 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1293 { 1293 {
1294 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1294 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1295 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info); 1295 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info);
1296 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1296 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1297 } 1297 }
1298 1298
1299 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1299 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1300 { 1300 {
1301 v8::Local<v8::Object> holder = info.Holder(); 1301 v8::Local<v8::Object> holder = info.Holder();
1302 TestObject* impl = V8TestObject::toImpl(holder); 1302 TestObject* impl = V8TestObject::toImpl(holder);
1303 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ; 1303 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ;
1304 } 1304 }
1305 1305
1306 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1306 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1307 { 1307 {
1308 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1308 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1309 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info); 1309 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info);
1310 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1310 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1311 } 1311 }
1312 1312
1313 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1313 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1314 { 1314 {
1315 v8::Local<v8::Object> holder = info.Holder(); 1315 v8::Local<v8::Object> holder = info.Holder();
1316 TestObject* impl = V8TestObject::toImpl(holder); 1316 TestObject* impl = V8TestObject::toImpl(holder);
1317 DOMFloat32Array* cppValue = v8Value->IsFloat32Array() ? V8Float32Array::toIm pl(v8::Handle<v8::Float32Array>::Cast(v8Value)) : 0; 1317 DOMFloat32Array* cppValue = v8Value->IsFloat32Array() ? V8Float32Array::toIm pl(v8::Local<v8::Float32Array>::Cast(v8Value)) : 0;
1318 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); 1318 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue));
1319 } 1319 }
1320 1320
1321 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1321 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1322 { 1322 {
1323 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1323 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1324 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info); 1324 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info);
1325 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1325 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1326 } 1326 }
1327 1327
1328 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1328 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1329 { 1329 {
1330 v8::Local<v8::Object> holder = info.Holder(); 1330 v8::Local<v8::Object> holder = info.Holder();
1331 TestObject* impl = V8TestObject::toImpl(holder); 1331 TestObject* impl = V8TestObject::toImpl(holder);
1332 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl); 1332 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl);
1333 } 1333 }
1334 1334
1335 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1335 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1336 { 1336 {
1337 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1337 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1338 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info); 1338 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info);
1339 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1339 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1340 } 1340 }
1341 1341
1342 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1342 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1343 { 1343 {
1344 v8::Local<v8::Object> holder = info.Holder(); 1344 v8::Local<v8::Object> holder = info.Holder();
1345 TestObject* impl = V8TestObject::toImpl(holder); 1345 TestObject* impl = V8TestObject::toImpl(holder);
1346 DOMUint8Array* cppValue = v8Value->IsUint8Array() ? V8Uint8Array::toImpl(v8: :Handle<v8::Uint8Array>::Cast(v8Value)) : 0; 1346 DOMUint8Array* cppValue = v8Value->IsUint8Array() ? V8Uint8Array::toImpl(v8: :Local<v8::Uint8Array>::Cast(v8Value)) : 0;
1347 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue)); 1347 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue));
1348 } 1348 }
1349 1349
1350 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1350 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1351 { 1351 {
1352 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1352 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1353 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info); 1353 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info);
1354 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1354 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1355 } 1355 }
1356 1356
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1703 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1704 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info); 1704 TestObjectV8Internal::staticLongAttributeAttributeSetter(v8Value, info);
1705 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1705 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1706 } 1706 }
1707 1707
1708 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1708 static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1709 { 1709 {
1710 v8::Local<v8::Object> holder = info.Holder(); 1710 v8::Local<v8::Object> holder = info.Holder();
1711 TestObject* impl = V8TestObject::toImpl(holder); 1711 TestObject* impl = V8TestObject::toImpl(holder);
1712 EventListener* cppValue(impl->eventHandlerAttribute()); 1712 EventListener* cppValue(impl->eventHandlerAttribute());
1713 v8SetReturnValue(info, cppValue ? v8::Handle<v8::Value>(V8AbstractEventListe ner::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Handle<v 8::Value>(v8::Null(info.GetIsolate()))); 1713 v8SetReturnValue(info, cppValue ? v8::Local<v8::Value>(V8AbstractEventListen er::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Local<v8: :Value>(v8::Null(info.GetIsolate())));
1714 } 1714 }
1715 1715
1716 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1716 static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1717 { 1717 {
1718 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1718 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1719 TestObjectV8Internal::eventHandlerAttributeAttributeGetter(info); 1719 TestObjectV8Internal::eventHandlerAttributeAttributeGetter(info);
1720 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1720 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1721 } 1721 }
1722 1722
1723 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1723 static void eventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
2062 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edStringOrNoneAttribute"); 2062 v8::Local<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "cach edStringOrNoneAttribute");
2063 TestObject* impl = V8TestObject::toImpl(holder); 2063 TestObject* impl = V8TestObject::toImpl(holder);
2064 if (!impl->isStringDirty()) { 2064 if (!impl->isStringDirty()) {
2065 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName); 2065 v8::Local<v8::Value> v8Value = V8HiddenValue::getHiddenValue(info.GetIso late(), holder, propertyName);
2066 if (!v8Value.IsEmpty()) { 2066 if (!v8Value.IsEmpty()) {
2067 v8SetReturnValue(info, v8Value); 2067 v8SetReturnValue(info, v8Value);
2068 return; 2068 return;
2069 } 2069 }
2070 } 2070 }
2071 String cppValue(impl->cachedStringOrNoneAttribute()); 2071 String cppValue(impl->cachedStringOrNoneAttribute());
2072 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.isNull() ? v8::Handle<v8::Value>(v8::Null(info.GetIsolate())) : v8String(inf o.GetIsolate(), cppValue)); 2072 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, propertyName, cppVa lue.isNull() ? v8::Local<v8::Value>(v8::Null(info.GetIsolate())) : v8String(info .GetIsolate(), cppValue));
2073 v8SetReturnValueStringOrNull(info, cppValue, info.GetIsolate()); 2073 v8SetReturnValueStringOrNull(info, cppValue, info.GetIsolate());
2074 } 2074 }
2075 2075
2076 static void cachedStringOrNoneAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info) 2076 static void cachedStringOrNoneAttributeAttributeGetterCallback(v8::Local<v8::Str ing>, const v8::PropertyCallbackInfo<v8::Value>& info)
2077 { 2077 {
2078 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 2078 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
2079 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info); 2079 TestObjectV8Internal::cachedStringOrNoneAttributeAttributeGetter(info);
2080 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 2080 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
2081 } 2081 }
2082 2082
(...skipping 3959 matching lines...) Expand 10 before | Expand all | Expand 10 after
6042 6042
6043 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 6043 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
6044 { 6044 {
6045 if (UNLIKELY(info.Length() < 1)) { 6045 if (UNLIKELY(info.Length() < 1)) {
6046 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodArrayBufferArg", "TestObject", 1, info.Length()), in fo.GetIsolate()); 6046 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodArrayBufferArg", "TestObject", 1, info.Length()), in fo.GetIsolate());
6047 return; 6047 return;
6048 } 6048 }
6049 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6049 TestObject* impl = V8TestObject::toImpl(info.Holder());
6050 TestArrayBuffer* arrayBufferArg; 6050 TestArrayBuffer* arrayBufferArg;
6051 { 6051 {
6052 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Ha ndle<v8::ArrayBuffer>::Cast(info[0])) : 0; 6052 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Lo cal<v8::ArrayBuffer>::Cast(info[0])) : 0;
6053 } 6053 }
6054 impl->voidMethodArrayBufferArg(arrayBufferArg); 6054 impl->voidMethodArrayBufferArg(arrayBufferArg);
6055 } 6055 }
6056 6056
6057 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 6057 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
6058 { 6058 {
6059 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6059 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6060 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info); 6060 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info);
6061 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6061 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6062 } 6062 }
6063 6063
6064 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 6064 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
6065 { 6065 {
6066 if (UNLIKELY(info.Length() < 1)) { 6066 if (UNLIKELY(info.Length() < 1)) {
6067 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodArrayBufferOrNullArg", "TestObject", 1, info.Length( )), info.GetIsolate()); 6067 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodArrayBufferOrNullArg", "TestObject", 1, info.Length( )), info.GetIsolate());
6068 return; 6068 return;
6069 } 6069 }
6070 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6070 TestObject* impl = V8TestObject::toImpl(info.Holder());
6071 TestArrayBuffer* arrayBufferArg; 6071 TestArrayBuffer* arrayBufferArg;
6072 { 6072 {
6073 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Ha ndle<v8::ArrayBuffer>::Cast(info[0])) : 0; 6073 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Lo cal<v8::ArrayBuffer>::Cast(info[0])) : 0;
6074 } 6074 }
6075 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); 6075 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg);
6076 } 6076 }
6077 6077
6078 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 6078 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
6079 { 6079 {
6080 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6080 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6081 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info); 6081 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info);
6082 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6082 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6083 } 6083 }
6084 6084
6085 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 6085 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
6086 { 6086 {
6087 if (UNLIKELY(info.Length() < 1)) { 6087 if (UNLIKELY(info.Length() < 1)) {
6088 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodArrayBufferViewArg", "TestObject", 1, info.Length()) , info.GetIsolate()); 6088 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodArrayBufferViewArg", "TestObject", 1, info.Length()) , info.GetIsolate());
6089 return; 6089 return;
6090 } 6090 }
6091 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6091 TestObject* impl = V8TestObject::toImpl(info.Holder());
6092 TestArrayBufferView* arrayBufferViewArg; 6092 TestArrayBufferView* arrayBufferViewArg;
6093 { 6093 {
6094 arrayBufferViewArg = info[0]->IsArrayBufferView() ? V8ArrayBufferView::t oImpl(v8::Handle<v8::ArrayBufferView>::Cast(info[0])) : 0; 6094 arrayBufferViewArg = info[0]->IsArrayBufferView() ? V8ArrayBufferView::t oImpl(v8::Local<v8::ArrayBufferView>::Cast(info[0])) : 0;
6095 } 6095 }
6096 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); 6096 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg);
6097 } 6097 }
6098 6098
6099 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 6099 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
6100 { 6100 {
6101 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6101 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6102 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); 6102 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info);
6103 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6103 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6104 } 6104 }
6105 6105
6106 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 6106 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
6107 { 6107 {
6108 if (UNLIKELY(info.Length() < 1)) { 6108 if (UNLIKELY(info.Length() < 1)) {
6109 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodFloat32ArrayArg", "TestObject", 1, info.Length()), i nfo.GetIsolate()); 6109 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodFloat32ArrayArg", "TestObject", 1, info.Length()), i nfo.GetIsolate());
6110 return; 6110 return;
6111 } 6111 }
6112 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6112 TestObject* impl = V8TestObject::toImpl(info.Holder());
6113 DOMFloat32Array* float32ArrayArg; 6113 DOMFloat32Array* float32ArrayArg;
6114 { 6114 {
6115 float32ArrayArg = info[0]->IsFloat32Array() ? V8Float32Array::toImpl(v8: :Handle<v8::Float32Array>::Cast(info[0])) : 0; 6115 float32ArrayArg = info[0]->IsFloat32Array() ? V8Float32Array::toImpl(v8: :Local<v8::Float32Array>::Cast(info[0])) : 0;
6116 } 6116 }
6117 impl->voidMethodFloat32ArrayArg(float32ArrayArg); 6117 impl->voidMethodFloat32ArrayArg(float32ArrayArg);
6118 } 6118 }
6119 6119
6120 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 6120 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
6121 { 6121 {
6122 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6122 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6123 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info); 6123 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info);
6124 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6124 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6125 } 6125 }
6126 6126
6127 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6127 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6128 { 6128 {
6129 if (UNLIKELY(info.Length() < 1)) { 6129 if (UNLIKELY(info.Length() < 1)) {
6130 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodInt32ArrayArg", "TestObject", 1, info.Length()), inf o.GetIsolate()); 6130 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodInt32ArrayArg", "TestObject", 1, info.Length()), inf o.GetIsolate());
6131 return; 6131 return;
6132 } 6132 }
6133 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6133 TestObject* impl = V8TestObject::toImpl(info.Holder());
6134 DOMInt32Array* int32ArrayArg; 6134 DOMInt32Array* int32ArrayArg;
6135 { 6135 {
6136 int32ArrayArg = info[0]->IsInt32Array() ? V8Int32Array::toImpl(v8::Handl e<v8::Int32Array>::Cast(info[0])) : 0; 6136 int32ArrayArg = info[0]->IsInt32Array() ? V8Int32Array::toImpl(v8::Local <v8::Int32Array>::Cast(info[0])) : 0;
6137 } 6137 }
6138 impl->voidMethodInt32ArrayArg(int32ArrayArg); 6138 impl->voidMethodInt32ArrayArg(int32ArrayArg);
6139 } 6139 }
6140 6140
6141 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6141 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6142 { 6142 {
6143 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6143 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6144 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info); 6144 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info);
6145 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6145 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6146 } 6146 }
6147 6147
6148 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6148 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6149 { 6149 {
6150 if (UNLIKELY(info.Length() < 1)) { 6150 if (UNLIKELY(info.Length() < 1)) {
6151 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodUint8ArrayArg", "TestObject", 1, info.Length()), inf o.GetIsolate()); 6151 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in fo.GetIsolate(), "voidMethodUint8ArrayArg", "TestObject", 1, info.Length()), inf o.GetIsolate());
6152 return; 6152 return;
6153 } 6153 }
6154 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6154 TestObject* impl = V8TestObject::toImpl(info.Holder());
6155 DOMUint8Array* uint8ArrayArg; 6155 DOMUint8Array* uint8ArrayArg;
6156 { 6156 {
6157 uint8ArrayArg = info[0]->IsUint8Array() ? V8Uint8Array::toImpl(v8::Handl e<v8::Uint8Array>::Cast(info[0])) : 0; 6157 uint8ArrayArg = info[0]->IsUint8Array() ? V8Uint8Array::toImpl(v8::Local <v8::Uint8Array>::Cast(info[0])) : 0;
6158 } 6158 }
6159 impl->voidMethodUint8ArrayArg(uint8ArrayArg); 6159 impl->voidMethodUint8ArrayArg(uint8ArrayArg);
6160 } 6160 }
6161 6161
6162 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6162 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6163 { 6163 {
6164 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6164 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6165 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info); 6165 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info);
6166 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6166 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6167 } 6167 }
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
6910 static void promiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info) 6910 static void promiseMethodWithoutExceptionStateMethodCallback(const v8::FunctionC allbackInfo<v8::Value>& info)
6911 { 6911 {
6912 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6912 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6913 TestObjectV8Internal::promiseMethodWithoutExceptionStateMethod(info); 6913 TestObjectV8Internal::promiseMethodWithoutExceptionStateMethod(info);
6914 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6914 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6915 } 6915 }
6916 6916
6917 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info) 6917 static void serializedScriptValueMethodMethod(const v8::FunctionCallbackInfo<v8: :Value>& info)
6918 { 6918 {
6919 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6919 TestObject* impl = V8TestObject::toImpl(info.Holder());
6920 v8SetReturnValue(info, impl->serializedScriptValueMethod() ? impl->serialize dScriptValueMethod()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.GetIso late()))); 6920 v8SetReturnValue(info, impl->serializedScriptValueMethod() ? impl->serialize dScriptValueMethod()->deserialize() : v8::Local<v8::Value>(v8::Null(info.GetIsol ate())));
6921 } 6921 }
6922 6922
6923 static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info) 6923 static void serializedScriptValueMethodMethodCallback(const v8::FunctionCallback Info<v8::Value>& info)
6924 { 6924 {
6925 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6925 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6926 TestObjectV8Internal::serializedScriptValueMethodMethod(info); 6926 TestObjectV8Internal::serializedScriptValueMethodMethod(info);
6927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6928 } 6928 }
6929 6929
6930 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info) 6930 static void xPathNSResolverMethodMethod(const v8::FunctionCallbackInfo<v8::Value >& info)
(...skipping 4713 matching lines...) Expand 10 before | Expand all | Expand 10 after
11644 return false; 11644 return false;
11645 11645
11646 ScriptState::Scope scope(scriptState); 11646 ScriptState::Scope scope(scriptState);
11647 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate()); 11647 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa l(), scriptState->isolate());
11648 11648
11649 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11649 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11650 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 11650 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11651 } 11651 }
11652 11652
11653 } // namespace blink 11653 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterfaceNode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698