| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 static v8::Handle<v8::Value> setMethod(const v8::Arguments& args) | 82 static v8::Handle<v8::Value> setMethod(const v8::Arguments& args) |
| 83 { | 83 { |
| 84 return setWebGLArrayHelper<Float64Array, V8Float64Array>(args); | 84 return setWebGLArrayHelper<Float64Array, V8Float64Array>(args); |
| 85 } | 85 } |
| 86 | 86 |
| 87 static v8::Handle<v8::Value> setMethodCallback(const v8::Arguments& args) | 87 static v8::Handle<v8::Value> setMethodCallback(const v8::Arguments& args) |
| 88 { | 88 { |
| 89 return Float64ArrayV8Internal::setMethod(args); | 89 return Float64ArrayV8Internal::setMethod(args); |
| 90 } | 90 } |
| 91 | 91 |
| 92 static v8::Handle<v8::Value> constructor(const v8::Arguments& args) | 92 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& args) |
| 93 { | 93 { |
| 94 return constructWebGLArray<Float64Array, V8Float64Array, double>(args, &V8Fl
oat64Array::info, v8::kExternalDoubleArray); | 94 return constructWebGLArray<Float64Array, V8Float64Array, double>(args, &V8Fl
oat64Array::info, v8::kExternalDoubleArray); |
| 95 } | 95 } |
| 96 | 96 |
| 97 } // namespace Float64ArrayV8Internal | 97 } // namespace Float64ArrayV8Internal |
| 98 | 98 |
| 99 v8::Handle<v8::Object> wrap(Float64Array* impl, v8::Handle<v8::Object> creationC
ontext, v8::Isolate* isolate) | 99 v8::Handle<v8::Object> wrap(Float64Array* impl, v8::Handle<v8::Object> creationC
ontext, v8::Isolate* isolate) |
| 100 { | 100 { |
| 101 ASSERT(impl); | 101 ASSERT(impl); |
| 102 v8::Handle<v8::Object> wrapper = V8Float64Array::createWrapper(impl, creatio
nContext, isolate); | 102 v8::Handle<v8::Object> wrapper = V8Float64Array::createWrapper(impl, creatio
nContext, isolate); |
| 103 if (!wrapper.IsEmpty()) | 103 if (!wrapper.IsEmpty()) |
| 104 wrapper->SetIndexedPropertiesToExternalArrayData(impl->baseAddress(), v8
::kExternalDoubleArray, impl->length()); | 104 wrapper->SetIndexedPropertiesToExternalArrayData(impl->baseAddress(), v8
::kExternalDoubleArray, impl->length()); |
| 105 return wrapper; | 105 return wrapper; |
| 106 } | 106 } |
| 107 | 107 |
| 108 static const V8DOMConfiguration::BatchedMethod V8Float64ArrayMethods[] = { | 108 static const V8DOMConfiguration::BatchedMethod V8Float64ArrayMethods[] = { |
| 109 {"set", Float64ArrayV8Internal::setMethodCallback, 0, 0}, | 109 {"set", Float64ArrayV8Internal::setMethodCallback, 0, 0}, |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 v8::Handle<v8::Value> V8Float64Array::constructorCallback(const v8::Arguments& a
rgs) | 112 void V8Float64Array::constructorCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& args) |
| 113 { | 113 { |
| 114 if (!args.IsConstructCall()) | 114 if (!args.IsConstructCall()) { |
| 115 return throwTypeError("DOM object constructor cannot be called as a func
tion.", args.GetIsolate()); | 115 throwTypeError("DOM object constructor cannot be called as a function.",
args.GetIsolate()); |
| 116 return; |
| 117 } |
| 116 | 118 |
| 117 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) | 119 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { |
| 118 return args.Holder(); | 120 args.GetReturnValue().Set(args.Holder()); |
| 121 return; |
| 122 } |
| 119 | 123 |
| 120 return Float64ArrayV8Internal::constructor(args); | 124 Float64ArrayV8Internal::constructor(args); |
| 121 } | 125 } |
| 122 | 126 |
| 123 static v8::Persistent<v8::FunctionTemplate> ConfigureV8Float64ArrayTemplate(v8::
Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType cu
rrentWorldType) | 127 static v8::Persistent<v8::FunctionTemplate> ConfigureV8Float64ArrayTemplate(v8::
Persistent<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType cu
rrentWorldType) |
| 124 { | 128 { |
| 125 desc->ReadOnlyPrototype(); | 129 desc->ReadOnlyPrototype(); |
| 126 | 130 |
| 127 v8::Local<v8::Signature> defaultSignature; | 131 v8::Local<v8::Signature> defaultSignature; |
| 128 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "Float64Array
", V8ArrayBufferView::GetTemplate(isolate, currentWorldType), V8Float64Array::in
ternalFieldCount, | 132 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "Float64Array
", V8ArrayBufferView::GetTemplate(isolate, currentWorldType), V8Float64Array::in
ternalFieldCount, |
| 129 0, 0, | 133 0, 0, |
| 130 V8Float64ArrayMethods, WTF_ARRAY_LENGTH(V8Float64ArrayMethods), isolate,
currentWorldType); | 134 V8Float64ArrayMethods, WTF_ARRAY_LENGTH(V8Float64ArrayMethods), isolate,
currentWorldType); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 installPerContextProperties(wrapper, impl.get(), isolate); | 191 installPerContextProperties(wrapper, impl.get(), isolate); |
| 188 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 192 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); |
| 189 return wrapper; | 193 return wrapper; |
| 190 } | 194 } |
| 191 void V8Float64Array::derefObject(void* object) | 195 void V8Float64Array::derefObject(void* object) |
| 192 { | 196 { |
| 193 static_cast<Float64Array*>(object)->deref(); | 197 static_cast<Float64Array*>(object)->deref(); |
| 194 } | 198 } |
| 195 | 199 |
| 196 } // namespace WebCore | 200 } // namespace WebCore |
| OLD | NEW |