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

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

Issue 606653006: bindings: Adds DOMArrayBuffer, etc. as thin wrappers for ArrayBuffer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 2 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 | Annotate | Revision Log
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"
11 #include "bindings/core/v8/Dictionary.h" 11 #include "bindings/core/v8/Dictionary.h"
12 #include "bindings/core/v8/ExceptionState.h" 12 #include "bindings/core/v8/ExceptionState.h"
13 #include "bindings/core/v8/PrivateScriptRunner.h" 13 #include "bindings/core/v8/PrivateScriptRunner.h"
14 #include "bindings/core/v8/ScriptCallStackFactory.h" 14 #include "bindings/core/v8/ScriptCallStackFactory.h"
15 #include "bindings/core/v8/ScriptPromise.h" 15 #include "bindings/core/v8/ScriptPromise.h"
16 #include "bindings/core/v8/ScriptState.h" 16 #include "bindings/core/v8/ScriptState.h"
17 #include "bindings/core/v8/ScriptValue.h" 17 #include "bindings/core/v8/ScriptValue.h"
18 #include "bindings/core/v8/SerializedScriptValue.h" 18 #include "bindings/core/v8/SerializedScriptValue.h"
19 #include "bindings/core/v8/V8AbstractEventListener.h" 19 #include "bindings/core/v8/V8AbstractEventListener.h"
20 #include "bindings/core/v8/V8ArrayBuffer.h"
21 #include "bindings/core/v8/V8ArrayBufferView.h"
20 #include "bindings/core/v8/V8Attr.h" 22 #include "bindings/core/v8/V8Attr.h"
21 #include "bindings/core/v8/V8DOMActivityLogger.h" 23 #include "bindings/core/v8/V8DOMActivityLogger.h"
22 #include "bindings/core/v8/V8DOMConfiguration.h" 24 #include "bindings/core/v8/V8DOMConfiguration.h"
23 #include "bindings/core/v8/V8Document.h" 25 #include "bindings/core/v8/V8Document.h"
24 #include "bindings/core/v8/V8DocumentFragment.h" 26 #include "bindings/core/v8/V8DocumentFragment.h"
25 #include "bindings/core/v8/V8DocumentType.h" 27 #include "bindings/core/v8/V8DocumentType.h"
26 #include "bindings/core/v8/V8Element.h" 28 #include "bindings/core/v8/V8Element.h"
27 #include "bindings/core/v8/V8EventListenerList.h" 29 #include "bindings/core/v8/V8EventListenerList.h"
28 #include "bindings/core/v8/V8EventTarget.h" 30 #include "bindings/core/v8/V8EventTarget.h"
31 #include "bindings/core/v8/V8Float32Array.h"
29 #include "bindings/core/v8/V8HTMLCollection.h" 32 #include "bindings/core/v8/V8HTMLCollection.h"
30 #include "bindings/core/v8/V8HTMLElement.h" 33 #include "bindings/core/v8/V8HTMLElement.h"
31 #include "bindings/core/v8/V8HiddenValue.h" 34 #include "bindings/core/v8/V8HiddenValue.h"
35 #include "bindings/core/v8/V8Int32Array.h"
32 #include "bindings/core/v8/V8Node.h" 36 #include "bindings/core/v8/V8Node.h"
33 #include "bindings/core/v8/V8NodeFilter.h" 37 #include "bindings/core/v8/V8NodeFilter.h"
34 #include "bindings/core/v8/V8ObjectConstructor.h" 38 #include "bindings/core/v8/V8ObjectConstructor.h"
35 #include "bindings/core/v8/V8ShadowRoot.h" 39 #include "bindings/core/v8/V8ShadowRoot.h"
36 #include "bindings/core/v8/V8TestCallbackInterface.h" 40 #include "bindings/core/v8/V8TestCallbackInterface.h"
37 #include "bindings/core/v8/V8TestDictionary.h" 41 #include "bindings/core/v8/V8TestDictionary.h"
38 #include "bindings/core/v8/V8TestInterface.h" 42 #include "bindings/core/v8/V8TestInterface.h"
39 #include "bindings/core/v8/V8TestInterfaceEmpty.h" 43 #include "bindings/core/v8/V8TestInterfaceEmpty.h"
40 #include "bindings/core/v8/V8TestInterfaceGarbageCollected.h" 44 #include "bindings/core/v8/V8TestInterfaceGarbageCollected.h"
41 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h" 45 #include "bindings/core/v8/V8TestInterfaceWillBeGarbageCollected.h"
42 #include "bindings/core/v8/V8TestNode.h" 46 #include "bindings/core/v8/V8TestNode.h"
43 #include "bindings/core/v8/V8TestObject.h" 47 #include "bindings/core/v8/V8TestObject.h"
48 #include "bindings/core/v8/V8Uint8Array.h"
44 #include "bindings/core/v8/V8Window.h" 49 #include "bindings/core/v8/V8Window.h"
45 #include "bindings/core/v8/V8XPathNSResolver.h" 50 #include "bindings/core/v8/V8XPathNSResolver.h"
46 #include "bindings/core/v8/custom/V8ArrayBufferCustom.h"
47 #include "bindings/core/v8/custom/V8ArrayBufferViewCustom.h"
48 #include "bindings/core/v8/custom/V8Float32ArrayCustom.h"
49 #include "bindings/core/v8/custom/V8Int32ArrayCustom.h"
50 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h"
51 #include "core/HTMLNames.h" 51 #include "core/HTMLNames.h"
52 #include "core/dom/ClassCollection.h" 52 #include "core/dom/ClassCollection.h"
53 #include "core/dom/ContextFeatures.h" 53 #include "core/dom/ContextFeatures.h"
54 #include "core/dom/Document.h" 54 #include "core/dom/Document.h"
55 #include "core/dom/TagCollection.h" 55 #include "core/dom/TagCollection.h"
56 #include "core/dom/custom/CustomElementProcessingStack.h" 56 #include "core/dom/custom/CustomElementProcessingStack.h"
57 #include "core/frame/LocalFrame.h" 57 #include "core/frame/LocalFrame.h"
58 #include "core/frame/UseCounter.h" 58 #include "core/frame/UseCounter.h"
59 #include "core/html/HTMLCollection.h" 59 #include "core/html/HTMLCollection.h"
60 #include "core/html/HTMLDataListOptionsCollection.h" 60 #include "core/html/HTMLDataListOptionsCollection.h"
(...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1276 { 1276 {
1277 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1277 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1278 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info); 1278 TestObjectV8Internal::arrayBufferAttributeAttributeGetter(info);
1279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1279 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1280 } 1280 }
1281 1281
1282 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info) 1282 static void arrayBufferAttributeAttributeSetter(v8::Local<v8::Value> v8Value, co nst v8::PropertyCallbackInfo<void>& info)
1283 { 1283 {
1284 v8::Handle<v8::Object> holder = info.Holder(); 1284 v8::Handle<v8::Object> holder = info.Holder();
1285 TestObject* impl = V8TestObject::toImpl(holder); 1285 TestObject* impl = V8TestObject::toImpl(holder);
1286 ArrayBuffer* cppValue = v8Value->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8: :Handle<v8::ArrayBuffer>::Cast(v8Value)) : 0; 1286 TestArrayBuffer* cppValue = v8Value->IsArrayBuffer() ? V8ArrayBuffer::toImpl (v8::Handle<v8::ArrayBuffer>::Cast(v8Value)) : 0;
1287 impl->setArrayBufferAttribute(WTF::getPtr(cppValue)); 1287 impl->setArrayBufferAttribute(WTF::getPtr(cppValue));
1288 } 1288 }
1289 1289
1290 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1290 static void arrayBufferAttributeAttributeSetterCallback(v8::Local<v8::String>, v 8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1291 { 1291 {
1292 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1292 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1293 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info); 1293 TestObjectV8Internal::arrayBufferAttributeAttributeSetter(v8Value, info);
1294 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1294 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1295 } 1295 }
1296 1296
1297 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 1297 static void float32ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
1298 { 1298 {
1299 v8::Handle<v8::Object> holder = info.Holder(); 1299 v8::Handle<v8::Object> holder = info.Holder();
1300 TestObject* impl = V8TestObject::toImpl(holder); 1300 TestObject* impl = V8TestObject::toImpl(holder);
1301 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ; 1301 v8SetReturnValueFast(info, WTF::getPtr(impl->float32ArrayAttribute()), impl) ;
1302 } 1302 }
1303 1303
1304 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 1304 static void float32ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
1305 { 1305 {
1306 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1306 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1307 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info); 1307 TestObjectV8Internal::float32ArrayAttributeAttributeGetter(info);
1308 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1308 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1309 } 1309 }
1310 1310
1311 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info) 1311 static void float32ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::PropertyCallbackInfo<void>& info)
1312 { 1312 {
1313 v8::Handle<v8::Object> holder = info.Holder(); 1313 v8::Handle<v8::Object> holder = info.Holder();
1314 TestObject* impl = V8TestObject::toImpl(holder); 1314 TestObject* impl = V8TestObject::toImpl(holder);
1315 Float32Array* cppValue = v8Value->IsFloat32Array() ? V8Float32Array::toImpl( v8::Handle<v8::Float32Array>::Cast(v8Value)) : 0; 1315 DOMFloat32Array* cppValue = v8Value->IsFloat32Array() ? V8Float32Array::toIm pl(v8::Handle<v8::Float32Array>::Cast(v8Value)) : 0;
1316 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue)); 1316 impl->setFloat32ArrayAttribute(WTF::getPtr(cppValue));
1317 } 1317 }
1318 1318
1319 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1319 static void float32ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1320 { 1320 {
1321 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1321 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1322 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info); 1322 TestObjectV8Internal::float32ArrayAttributeAttributeSetter(v8Value, info);
1323 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1323 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1324 } 1324 }
1325 1325
1326 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info) 1326 static void uint8ArrayAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8 ::Value>& info)
1327 { 1327 {
1328 v8::Handle<v8::Object> holder = info.Holder(); 1328 v8::Handle<v8::Object> holder = info.Holder();
1329 TestObject* impl = V8TestObject::toImpl(holder); 1329 TestObject* impl = V8TestObject::toImpl(holder);
1330 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl); 1330 v8SetReturnValueFast(info, WTF::getPtr(impl->uint8ArrayAttribute()), impl);
1331 } 1331 }
1332 1332
1333 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info) 1333 static void uint8ArrayAttributeAttributeGetterCallback(v8::Local<v8::String>, co nst v8::PropertyCallbackInfo<v8::Value>& info)
1334 { 1334 {
1335 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 1335 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
1336 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info); 1336 TestObjectV8Internal::uint8ArrayAttributeAttributeGetter(info);
1337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1337 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1338 } 1338 }
1339 1339
1340 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info) 1340 static void uint8ArrayAttributeAttributeSetter(v8::Local<v8::Value> v8Value, con st v8::PropertyCallbackInfo<void>& info)
1341 { 1341 {
1342 v8::Handle<v8::Object> holder = info.Holder(); 1342 v8::Handle<v8::Object> holder = info.Holder();
1343 TestObject* impl = V8TestObject::toImpl(holder); 1343 TestObject* impl = V8TestObject::toImpl(holder);
1344 Uint8Array* cppValue = v8Value->IsUint8Array() ? V8Uint8Array::toImpl(v8::Ha ndle<v8::Uint8Array>::Cast(v8Value)) : 0; 1344 DOMUint8Array* cppValue = v8Value->IsUint8Array() ? V8Uint8Array::toImpl(v8: :Handle<v8::Uint8Array>::Cast(v8Value)) : 0;
1345 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue)); 1345 impl->setUint8ArrayAttribute(WTF::getPtr(cppValue));
1346 } 1346 }
1347 1347
1348 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 1348 static void uint8ArrayAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
1349 { 1349 {
1350 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 1350 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
1351 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info); 1351 TestObjectV8Internal::uint8ArrayAttributeAttributeSetter(v8Value, info);
1352 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 1352 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
1353 } 1353 }
1354 1354
(...skipping 4551 matching lines...) Expand 10 before | Expand all | Expand 10 after
5906 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5906 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5907 } 5907 }
5908 5908
5909 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info) 5909 static void voidMethodArrayBufferArgMethod(const v8::FunctionCallbackInfo<v8::Va lue>& info)
5910 { 5910 {
5911 if (UNLIKELY(info.Length() < 1)) { 5911 if (UNLIKELY(info.Length() < 1)) {
5912 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodArrayBufferArg", "TestObject", 1, info.Length(), info.GetIsolate()), in fo.GetIsolate()); 5912 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodArrayBufferArg", "TestObject", 1, info.Length(), info.GetIsolate()), in fo.GetIsolate());
5913 return; 5913 return;
5914 } 5914 }
5915 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5915 TestObject* impl = V8TestObject::toImpl(info.Holder());
5916 ArrayBuffer* arrayBufferArg; 5916 TestArrayBuffer* arrayBufferArg;
5917 { 5917 {
5918 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Ha ndle<v8::ArrayBuffer>::Cast(info[0])) : 0; 5918 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Ha ndle<v8::ArrayBuffer>::Cast(info[0])) : 0;
5919 } 5919 }
5920 impl->voidMethodArrayBufferArg(arrayBufferArg); 5920 impl->voidMethodArrayBufferArg(arrayBufferArg);
5921 } 5921 }
5922 5922
5923 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info) 5923 static void voidMethodArrayBufferArgMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& info)
5924 { 5924 {
5925 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5925 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5926 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info); 5926 TestObjectV8Internal::voidMethodArrayBufferArgMethod(info);
5927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5927 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5928 } 5928 }
5929 5929
5930 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info) 5930 static void voidMethodArrayBufferOrNullArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
5931 { 5931 {
5932 if (UNLIKELY(info.Length() < 1)) { 5932 if (UNLIKELY(info.Length() < 1)) {
5933 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodArrayBufferOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate( )), info.GetIsolate()); 5933 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodArrayBufferOrNullArg", "TestObject", 1, info.Length(), info.GetIsolate( )), info.GetIsolate());
5934 return; 5934 return;
5935 } 5935 }
5936 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5936 TestObject* impl = V8TestObject::toImpl(info.Holder());
5937 ArrayBuffer* arrayBufferArg; 5937 TestArrayBuffer* arrayBufferArg;
5938 { 5938 {
5939 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Ha ndle<v8::ArrayBuffer>::Cast(info[0])) : 0; 5939 arrayBufferArg = info[0]->IsArrayBuffer() ? V8ArrayBuffer::toImpl(v8::Ha ndle<v8::ArrayBuffer>::Cast(info[0])) : 0;
5940 } 5940 }
5941 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg); 5941 impl->voidMethodArrayBufferOrNullArg(arrayBufferArg);
5942 } 5942 }
5943 5943
5944 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 5944 static void voidMethodArrayBufferOrNullArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
5945 { 5945 {
5946 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5946 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5947 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info); 5947 TestObjectV8Internal::voidMethodArrayBufferOrNullArgMethod(info);
5948 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5948 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5949 } 5949 }
5950 5950
5951 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info) 5951 static void voidMethodArrayBufferViewArgMethod(const v8::FunctionCallbackInfo<v8 ::Value>& info)
5952 { 5952 {
5953 if (UNLIKELY(info.Length() < 1)) { 5953 if (UNLIKELY(info.Length() < 1)) {
5954 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodArrayBufferViewArg", "TestObject", 1, info.Length(), info.GetIsolate()) , info.GetIsolate()); 5954 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodArrayBufferViewArg", "TestObject", 1, info.Length(), info.GetIsolate()) , info.GetIsolate());
5955 return; 5955 return;
5956 } 5956 }
5957 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5957 TestObject* impl = V8TestObject::toImpl(info.Holder());
5958 ArrayBufferView* arrayBufferViewArg; 5958 TestArrayBufferView* arrayBufferViewArg;
5959 { 5959 {
5960 arrayBufferViewArg = info[0]->IsArrayBufferView() ? V8ArrayBufferView::t oImpl(v8::Handle<v8::ArrayBufferView>::Cast(info[0])) : 0; 5960 arrayBufferViewArg = info[0]->IsArrayBufferView() ? V8ArrayBufferView::t oImpl(v8::Handle<v8::ArrayBufferView>::Cast(info[0])) : 0;
5961 } 5961 }
5962 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg); 5962 impl->voidMethodArrayBufferViewArg(arrayBufferViewArg);
5963 } 5963 }
5964 5964
5965 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info) 5965 static void voidMethodArrayBufferViewArgMethodCallback(const v8::FunctionCallbac kInfo<v8::Value>& info)
5966 { 5966 {
5967 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5967 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5968 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info); 5968 TestObjectV8Internal::voidMethodArrayBufferViewArgMethod(info);
5969 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5969 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5970 } 5970 }
5971 5971
5972 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 5972 static void voidMethodFloat32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
5973 { 5973 {
5974 if (UNLIKELY(info.Length() < 1)) { 5974 if (UNLIKELY(info.Length() < 1)) {
5975 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodFloat32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()), i nfo.GetIsolate()); 5975 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodFloat32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()), i nfo.GetIsolate());
5976 return; 5976 return;
5977 } 5977 }
5978 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5978 TestObject* impl = V8TestObject::toImpl(info.Holder());
5979 Float32Array* float32ArrayArg; 5979 DOMFloat32Array* float32ArrayArg;
5980 { 5980 {
5981 float32ArrayArg = info[0]->IsFloat32Array() ? V8Float32Array::toImpl(v8: :Handle<v8::Float32Array>::Cast(info[0])) : 0; 5981 float32ArrayArg = info[0]->IsFloat32Array() ? V8Float32Array::toImpl(v8: :Handle<v8::Float32Array>::Cast(info[0])) : 0;
5982 } 5982 }
5983 impl->voidMethodFloat32ArrayArg(float32ArrayArg); 5983 impl->voidMethodFloat32ArrayArg(float32ArrayArg);
5984 } 5984 }
5985 5985
5986 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info) 5986 static void voidMethodFloat32ArrayArgMethodCallback(const v8::FunctionCallbackIn fo<v8::Value>& info)
5987 { 5987 {
5988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 5988 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
5989 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info); 5989 TestObjectV8Internal::voidMethodFloat32ArrayArgMethod(info);
5990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 5990 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
5991 } 5991 }
5992 5992
5993 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 5993 static void voidMethodInt32ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
5994 { 5994 {
5995 if (UNLIKELY(info.Length() < 1)) { 5995 if (UNLIKELY(info.Length() < 1)) {
5996 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodInt32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()), inf o.GetIsolate()); 5996 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodInt32ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()), inf o.GetIsolate());
5997 return; 5997 return;
5998 } 5998 }
5999 TestObject* impl = V8TestObject::toImpl(info.Holder()); 5999 TestObject* impl = V8TestObject::toImpl(info.Holder());
6000 Int32Array* int32ArrayArg; 6000 DOMInt32Array* int32ArrayArg;
6001 { 6001 {
6002 int32ArrayArg = info[0]->IsInt32Array() ? V8Int32Array::toImpl(v8::Handl e<v8::Int32Array>::Cast(info[0])) : 0; 6002 int32ArrayArg = info[0]->IsInt32Array() ? V8Int32Array::toImpl(v8::Handl e<v8::Int32Array>::Cast(info[0])) : 0;
6003 } 6003 }
6004 impl->voidMethodInt32ArrayArg(int32ArrayArg); 6004 impl->voidMethodInt32ArrayArg(int32ArrayArg);
6005 } 6005 }
6006 6006
6007 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6007 static void voidMethodInt32ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6008 { 6008 {
6009 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6009 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6010 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info); 6010 TestObjectV8Internal::voidMethodInt32ArrayArgMethod(info);
6011 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 6011 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
6012 } 6012 }
6013 6013
6014 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info) 6014 static void voidMethodUint8ArrayArgMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
6015 { 6015 {
6016 if (UNLIKELY(info.Length() < 1)) { 6016 if (UNLIKELY(info.Length() < 1)) {
6017 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodUint8ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()), inf o.GetIsolate()); 6017 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod("v oidMethodUint8ArrayArg", "TestObject", 1, info.Length(), info.GetIsolate()), inf o.GetIsolate());
6018 return; 6018 return;
6019 } 6019 }
6020 TestObject* impl = V8TestObject::toImpl(info.Holder()); 6020 TestObject* impl = V8TestObject::toImpl(info.Holder());
6021 Uint8Array* uint8ArrayArg; 6021 DOMUint8Array* uint8ArrayArg;
6022 { 6022 {
6023 uint8ArrayArg = info[0]->IsUint8Array() ? V8Uint8Array::toImpl(v8::Handl e<v8::Uint8Array>::Cast(info[0])) : 0; 6023 uint8ArrayArg = info[0]->IsUint8Array() ? V8Uint8Array::toImpl(v8::Handl e<v8::Uint8Array>::Cast(info[0])) : 0;
6024 } 6024 }
6025 impl->voidMethodUint8ArrayArg(uint8ArrayArg); 6025 impl->voidMethodUint8ArrayArg(uint8ArrayArg);
6026 } 6026 }
6027 6027
6028 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 6028 static void voidMethodUint8ArrayArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
6029 { 6029 {
6030 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); 6030 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
6031 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info); 6031 TestObjectV8Internal::voidMethodUint8ArrayArgMethod(info);
(...skipping 4636 matching lines...) Expand 10 before | Expand all | Expand 10 after
10668 { 10668 {
10669 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate)); 10669 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate));
10670 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 10670 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
10671 ASSERT(context); 10671 ASSERT(context);
10672 10672
10673 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) { 10673 if (context && context->isDocument() && ContextFeatures::featureNameEnabled( toDocument(context))) {
10674 prototypeObject->Set(v8AtomicString(isolate, "perContextEnabledVoidMetho d"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::perContextEnabledV oidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); 10674 prototypeObject->Set(v8AtomicString(isolate, "perContextEnabledVoidMetho d"), v8::FunctionTemplate::New(isolate, TestObjectV8Internal::perContextEnabledV oidMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction());
10675 } 10675 }
10676 } 10676 }
10677 10677
10678
10679 void V8TestObject::refObject(ScriptWrappableBase* internalPointer) 10678 void V8TestObject::refObject(ScriptWrappableBase* internalPointer)
10680 { 10679 {
10681 internalPointer->toImpl<TestObject>()->ref(); 10680 internalPointer->toImpl<TestObject>()->ref();
10682 } 10681 }
10683 10682
10684 void V8TestObject::derefObject(ScriptWrappableBase* internalPointer) 10683 void V8TestObject::derefObject(ScriptWrappableBase* internalPointer)
10685 { 10684 {
10686 internalPointer->toImpl<TestObject>()->deref(); 10685 internalPointer->toImpl<TestObject>()->deref();
10687 } 10686 }
10688 10687
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
11157 return false; 11156 return false;
11158 11157
11159 ScriptState::Scope scope(scriptState); 11158 ScriptState::Scope scope(scriptState);
11160 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate()); 11159 v8::Handle<v8::Value> holder = toV8(holderImpl, scriptState->context()->Glob al(), scriptState->isolate());
11161 11160
11162 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ; 11161 ExceptionState exceptionState(ExceptionState::SetterContext, "enumForPrivate Script", "TestObject", scriptState->context()->Global(), scriptState->isolate()) ;
11163 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue)); 11162 return PrivateScriptRunner::runDOMAttributeSetter(scriptState, scriptStateIn UserScript, "TestObject", "enumForPrivateScript", holder, v8String(scriptState-> isolate(), cppValue));
11164 } 11163 }
11165 11164
11166 } // namespace blink 11165 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestNode.cpp ('k') | Source/bindings/tests/results/core/V8TestSpecialOperations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698