| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 namespace WebCore { | 66 namespace WebCore { |
| 67 WrapperTypeInfo V8Float64Array::info = { V8Float64Array::GetTemplate, V8Float64A
rray::derefObject, 0, 0, 0, V8Float64Array::installPerContextPrototypeProperties
, &V8ArrayBufferView::info, WrapperTypeObjectPrototype }; | 67 WrapperTypeInfo V8Float64Array::info = { V8Float64Array::GetTemplate, V8Float64A
rray::derefObject, 0, 0, 0, V8Float64Array::installPerContextPrototypeProperties
, &V8ArrayBufferView::info, WrapperTypeObjectPrototype }; |
| 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>& args) |
| 74 { | 74 { |
| 75 if (args.Length() < 1) { | 75 if (UNLIKELY(args.Length() < 1)) { |
| 76 throwNotEnoughArgumentsError(args.GetIsolate()); | 76 throwNotEnoughArgumentsError(args.GetIsolate()); |
| 77 return; | 77 return; |
| 78 } | 78 } |
| 79 Float64Array* imp = V8Float64Array::toNative(args.Holder()); | 79 Float64Array* imp = V8Float64Array::toNative(args.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, args[0]->IsFloat32Array() ? V8Float32A
rray::toNative(v8::Handle<v8::Float32Array>::Cast(args[0])) : 0); |
| 81 v8SetReturnValue(args, imp->foo(array), args.Holder()); | 81 v8SetReturnValue(args, imp->foo(array), args.Holder()); |
| 82 return; | 82 return; |
| 83 } | 83 } |
| 84 | 84 |
| 85 static void fooMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) | 85 static void fooMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) |
| (...skipping 138 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 |