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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 namespace Float64ArrayV8Internal { | 63 namespace Float64ArrayV8Internal { |
64 | 64 |
65 template <typename T> void V8_USE(T) { } | 65 template <typename T> void V8_USE(T) { } |
66 | 66 |
67 static v8::Handle<v8::Value> fooMethod(const v8::Arguments& args) | 67 static v8::Handle<v8::Value> fooMethod(const v8::Arguments& args) |
68 { | 68 { |
69 if (args.Length() < 1) | 69 if (args.Length() < 1) |
70 return throwNotEnoughArgumentsError(args.GetIsolate()); | 70 return throwNotEnoughArgumentsError(args.GetIsolate()); |
71 Float64Array* imp = V8Float64Array::toNative(args.Holder()); | 71 Float64Array* imp = V8Float64Array::toNative(args.Holder()); |
72 ExceptionCode ec = 0; | |
73 V8TRYCATCH(Float32Array*, array, V8Float32Array::HasInstance(args[0], args.G
etIsolate(), worldType(args.GetIsolate())) ? V8Float32Array::toNative(v8::Handle
<v8::Object>::Cast(args[0])) : 0); | 72 V8TRYCATCH(Float32Array*, array, V8Float32Array::HasInstance(args[0], args.G
etIsolate(), worldType(args.GetIsolate())) ? V8Float32Array::toNative(v8::Handle
<v8::Object>::Cast(args[0])) : 0); |
74 return toV8(imp->foo(array), args.Holder(), args.GetIsolate()); | 73 return toV8(imp->foo(array), args.Holder(), args.GetIsolate()); |
75 } | 74 } |
76 | 75 |
77 static v8::Handle<v8::Value> fooMethodCallback(const v8::Arguments& args) | 76 static v8::Handle<v8::Value> fooMethodCallback(const v8::Arguments& args) |
78 { | 77 { |
79 return Float64ArrayV8Internal::fooMethod(args); | 78 return Float64ArrayV8Internal::fooMethod(args); |
80 } | 79 } |
81 | 80 |
82 static v8::Handle<v8::Value> setMethod(const v8::Arguments& args) | 81 static v8::Handle<v8::Value> setMethod(const v8::Arguments& args) |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 installPerContextProperties(wrapper, impl.get(), isolate); | 186 installPerContextProperties(wrapper, impl.get(), isolate); |
188 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); | 187 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, Wrap
perConfiguration::Independent); |
189 return wrapper; | 188 return wrapper; |
190 } | 189 } |
191 void V8Float64Array::derefObject(void* object) | 190 void V8Float64Array::derefObject(void* object) |
192 { | 191 { |
193 static_cast<Float64Array*>(object)->deref(); | 192 static_cast<Float64Array*>(object)->deref(); |
194 } | 193 } |
195 | 194 |
196 } // namespace WebCore | 195 } // namespace WebCore |
OLD | NEW |