| OLD | NEW |
| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 } | 147 } |
| 148 | 148 |
| 149 static v8::Handle<v8::FunctionTemplate> ConfigureV8Float64ArrayTemplate(v8::Hand
le<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWor
ldType) | 149 static v8::Handle<v8::FunctionTemplate> ConfigureV8Float64ArrayTemplate(v8::Hand
le<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWor
ldType) |
| 150 { | 150 { |
| 151 desc->ReadOnlyPrototype(); | 151 desc->ReadOnlyPrototype(); |
| 152 | 152 |
| 153 v8::Local<v8::Signature> defaultSignature; | 153 v8::Local<v8::Signature> defaultSignature; |
| 154 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "Float6
4Array", V8ArrayBufferView::GetTemplate(isolate, currentWorldType), V8Float64Arr
ay::internalFieldCount, | 154 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "Float6
4Array", V8ArrayBufferView::GetTemplate(isolate, currentWorldType), V8Float64Arr
ay::internalFieldCount, |
| 155 0, 0, | 155 0, 0, |
| 156 V8Float64ArrayMethods, WTF_ARRAY_LENGTH(V8Float64ArrayMethods), isolate,
currentWorldType); | 156 V8Float64ArrayMethods, WTF_ARRAY_LENGTH(V8Float64ArrayMethods), isolate,
currentWorldType); |
| 157 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. | 157 UNUSED_PARAM(defaultSignature); |
| 158 desc->SetCallHandler(V8Float64Array::constructorCallback); | 158 desc->SetCallHandler(V8Float64Array::constructorCallback); |
| 159 desc->SetLength(1); | 159 desc->SetLength(1); |
| 160 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); | 160 v8::Local<v8::ObjectTemplate> instance = desc->InstanceTemplate(); |
| 161 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); | 161 v8::Local<v8::ObjectTemplate> proto = desc->PrototypeTemplate(); |
| 162 UNUSED_PARAM(instance); // In some cases, it will not be used. | 162 UNUSED_PARAM(instance); |
| 163 UNUSED_PARAM(proto); // In some cases, it will not be used. | 163 UNUSED_PARAM(proto); |
| 164 desc->InstanceTemplate()->SetIndexedPropertyHandler(Float64ArrayV8Internal::
indexedPropertyGetterCallback, Float64ArrayV8Internal::indexedPropertySetterCall
back, 0, 0, indexedPropertyEnumerator<Float64Array>); | 164 desc->InstanceTemplate()->SetIndexedPropertyHandler(Float64ArrayV8Internal::
indexedPropertyGetterCallback, Float64ArrayV8Internal::indexedPropertySetterCall
back, 0, 0, indexedPropertyEnumerator<Float64Array>); |
| 165 | 165 |
| 166 // Custom Signature 'foo' | 166 // Custom Signature 'foo' |
| 167 const int fooArgc = 1; | 167 const int fooArgc = 1; |
| 168 v8::Handle<v8::FunctionTemplate> fooArgv[fooArgc] = { v8::Handle<v8::Functio
nTemplate>() }; | 168 v8::Handle<v8::FunctionTemplate> fooArgv[fooArgc] = { v8::Handle<v8::Functio
nTemplate>() }; |
| 169 v8::Handle<v8::Signature> fooSignature = v8::Signature::New(desc, fooArgc, f
ooArgv); | 169 v8::Handle<v8::Signature> fooSignature = v8::Signature::New(desc, fooArgc, f
ooArgv); |
| 170 proto->Set(v8::String::NewSymbol("foo"), v8::FunctionTemplate::New(Float64Ar
rayV8Internal::fooMethodCallback, v8Undefined(), fooSignature, 1)); | 170 proto->Set(v8::String::NewSymbol("foo"), v8::FunctionTemplate::New(Float64Ar
rayV8Internal::fooMethodCallback, v8Undefined(), fooSignature, 1)); |
| 171 | 171 |
| 172 // Custom toString template | 172 // Custom toString template |
| 173 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); | 173 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 V8DOMWrapper::associateObjectWithWrapper<V8Float64Array>(impl, &info, wrappe
r, isolate, WrapperConfiguration::Independent); | 224 V8DOMWrapper::associateObjectWithWrapper<V8Float64Array>(impl, &info, wrappe
r, isolate, WrapperConfiguration::Independent); |
| 225 return wrapper; | 225 return wrapper; |
| 226 } | 226 } |
| 227 | 227 |
| 228 void V8Float64Array::derefObject(void* object) | 228 void V8Float64Array::derefObject(void* object) |
| 229 { | 229 { |
| 230 fromInternalPointer(object)->deref(); | 230 fromInternalPointer(object)->deref(); |
| 231 } | 231 } |
| 232 | 232 |
| 233 } // namespace WebCore | 233 } // namespace WebCore |
| OLD | NEW |