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

Side by Side Diff: Source/bindings/tests/results/V8Float64Array.cpp

Issue 54283002: Rename |args| to |info| in V8 bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 WebCore::initializeScriptWrappableForInterface(object); 63 WebCore::initializeScriptWrappableForInterface(object);
64 } 64 }
65 65
66 namespace WebCore { 66 namespace WebCore {
67 const WrapperTypeInfo V8Float64Array::wrapperTypeInfo = { V8Float64Array::GetTem plate, V8Float64Array::derefObject, 0, 0, 0, V8Float64Array::installPerContextEn abledPrototypeProperties, &V8ArrayBufferView::wrapperTypeInfo, WrapperTypeObject Prototype }; 67 const WrapperTypeInfo V8Float64Array::wrapperTypeInfo = { V8Float64Array::GetTem plate, V8Float64Array::derefObject, 0, 0, 0, V8Float64Array::installPerContextEn abledPrototypeProperties, &V8ArrayBufferView::wrapperTypeInfo, WrapperTypeObject Prototype };
68 68
69 namespace Float64ArrayV8Internal { 69 namespace Float64ArrayV8Internal {
70 70
71 template <typename T> void V8_USE(T) { } 71 template <typename T> void V8_USE(T) { }
72 72
73 static void fooMethod(const v8::FunctionCallbackInfo<v8::Value>& args) 73 static void fooMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
74 { 74 {
75 if (UNLIKELY(args.Length() < 1)) { 75 if (UNLIKELY(info.Length() < 1)) {
76 throwTypeError(ExceptionMessages::failedToExecute("foo", "Float64Array", ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsolate()); 76 throwTypeError(ExceptionMessages::failedToExecute("foo", "Float64Array", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
77 return; 77 return;
78 } 78 }
79 Float64Array* imp = V8Float64Array::toNative(args.Holder()); 79 Float64Array* imp = V8Float64Array::toNative(info.Holder());
80 V8TRYCATCH_VOID(Float32Array*, array, args[0]->IsFloat32Array() ? V8Float32A rray::toNative(v8::Handle<v8::Float32Array>::Cast(args[0])) : 0); 80 V8TRYCATCH_VOID(Float32Array*, array, info[0]->IsFloat32Array() ? V8Float32A rray::toNative(v8::Handle<v8::Float32Array>::Cast(info[0])) : 0);
81 v8SetReturnValue(args, imp->foo(array)); 81 v8SetReturnValue(info, imp->foo(array));
82 } 82 }
83 83
84 static void fooMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) 84 static void fooMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
85 { 85 {
86 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 86 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
87 Float64ArrayV8Internal::fooMethod(args); 87 Float64ArrayV8Internal::fooMethod(info);
88 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 88 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
89 } 89 }
90 90
91 static void setMethod(const v8::FunctionCallbackInfo<v8::Value>& args) 91 static void setMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
92 { 92 {
93 setWebGLArrayHelper<Float64Array, V8Float64Array>(args); 93 setWebGLArrayHelper<Float64Array, V8Float64Array>(info);
94 } 94 }
95 95
96 static void setMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) 96 static void setMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
97 { 97 {
98 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 98 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
99 Float64ArrayV8Internal::setMethod(args); 99 Float64ArrayV8Internal::setMethod(info);
100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 100 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
101 } 101 }
102 102
103 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall backInfo<v8::Value>& info) 103 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall backInfo<v8::Value>& info)
104 { 104 {
105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMIndexedProperty"); 105 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMIndexedProperty");
106 V8Float64Array::indexedPropertyGetterCustom(index, info); 106 V8Float64Array::indexedPropertyGetterCustom(index, info);
107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 107 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
108 } 108 }
109 109
(...skipping 12 matching lines...) Expand all
122 v8::Handle<v8::Object> wrapper = V8Float64Array::createWrapper(impl, creatio nContext, isolate); 122 v8::Handle<v8::Object> wrapper = V8Float64Array::createWrapper(impl, creatio nContext, isolate);
123 if (!wrapper.IsEmpty()) 123 if (!wrapper.IsEmpty())
124 wrapper->SetIndexedPropertiesToExternalArrayData(impl->baseAddress(), v8 ::kExternalDoubleArray, impl->length()); 124 wrapper->SetIndexedPropertiesToExternalArrayData(impl->baseAddress(), v8 ::kExternalDoubleArray, impl->length());
125 return wrapper; 125 return wrapper;
126 } 126 }
127 127
128 static const V8DOMConfiguration::MethodConfiguration V8Float64ArrayMethods[] = { 128 static const V8DOMConfiguration::MethodConfiguration V8Float64ArrayMethods[] = {
129 {"set", Float64ArrayV8Internal::setMethodCallback, 0, 0}, 129 {"set", Float64ArrayV8Internal::setMethodCallback, 0, 0},
130 }; 130 };
131 131
132 void V8Float64Array::constructorCallback(const v8::FunctionCallbackInfo<v8::Valu e>& args) 132 void V8Float64Array::constructorCallback(const v8::FunctionCallbackInfo<v8::Valu e>& info)
133 { 133 {
134 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); 134 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor");
135 if (!args.IsConstructCall()) { 135 if (!info.IsConstructCall()) {
136 throwTypeError(ExceptionMessages::failedToConstruct("Float64Array", "Ple ase use the 'new' operator, this DOM object constructor cannot be called as a fu nction."), args.GetIsolate()); 136 throwTypeError(ExceptionMessages::failedToConstruct("Float64Array", "Ple ase use the 'new' operator, this DOM object constructor cannot be called as a fu nction."), info.GetIsolate());
137 return; 137 return;
138 } 138 }
139 139
140 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { 140 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) {
141 args.GetReturnValue().Set(args.Holder()); 141 info.GetReturnValue().Set(info.Holder());
142 return; 142 return;
143 } 143 }
144 144
145 Float64ArrayV8Internal::constructor(args); 145 Float64ArrayV8Internal::constructor(info);
146 } 146 }
147 147
148 static v8::Handle<v8::FunctionTemplate> ConfigureV8Float64ArrayTemplate(v8::Hand le<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWor ldType) 148 static v8::Handle<v8::FunctionTemplate> ConfigureV8Float64ArrayTemplate(v8::Hand le<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWor ldType)
149 { 149 {
150 desc->ReadOnlyPrototype(); 150 desc->ReadOnlyPrototype();
151 151
152 v8::Local<v8::Signature> defaultSignature; 152 v8::Local<v8::Signature> defaultSignature;
153 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "Float6 4Array", V8ArrayBufferView::GetTemplate(isolate, currentWorldType), V8Float64Arr ay::internalFieldCount, 153 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "Float6 4Array", V8ArrayBufferView::GetTemplate(isolate, currentWorldType), V8Float64Arr ay::internalFieldCount,
154 0, 0, 154 0, 0,
155 V8Float64ArrayMethods, WTF_ARRAY_LENGTH(V8Float64ArrayMethods), 155 V8Float64ArrayMethods, WTF_ARRAY_LENGTH(V8Float64ArrayMethods),
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 V8DOMWrapper::associateObjectWithWrapper<V8Float64Array>(impl, &wrapperTypeI nfo, wrapper, isolate, WrapperConfiguration::Independent); 221 V8DOMWrapper::associateObjectWithWrapper<V8Float64Array>(impl, &wrapperTypeI nfo, wrapper, isolate, WrapperConfiguration::Independent);
222 return wrapper; 222 return wrapper;
223 } 223 }
224 224
225 void V8Float64Array::derefObject(void* object) 225 void V8Float64Array::derefObject(void* object)
226 { 226 {
227 fromInternalPointer(object)->deref(); 227 fromInternalPointer(object)->deref();
228 } 228 }
229 229
230 } // namespace WebCore 230 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/scripts/code_generator_v8.pm ('k') | Source/bindings/tests/results/V8SupportTestInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698