| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 (UNLIKELY(args.Length() < 1)) { | 75 if (UNLIKELY(args.Length() < 1)) { |
| 76 throwTypeError(ExceptionMessages::failedToExecute("foo", "Float64Array",
ExceptionMessages::notEnoughArguments(1, args.Length())), args.GetIsolate()); | 76 throwTypeError(ExceptionMessages::failedToExecute("foo", "Float64Array",
ExceptionMessages::notEnoughArguments(1, args.Length())), 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)); |
| 82 } | 82 } |
| 83 | 83 |
| 84 static void fooMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) | 84 static void fooMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& args) |
| 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(args); |
| 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>& args) |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 V8DOMWrapper::associateObjectWithWrapper<V8Float64Array>(impl, &wrapperTypeI
nfo, wrapper, isolate, WrapperConfiguration::Independent); | 220 V8DOMWrapper::associateObjectWithWrapper<V8Float64Array>(impl, &wrapperTypeI
nfo, wrapper, isolate, WrapperConfiguration::Independent); |
| 221 return wrapper; | 221 return wrapper; |
| 222 } | 222 } |
| 223 | 223 |
| 224 void V8Float64Array::derefObject(void* object) | 224 void V8Float64Array::derefObject(void* object) |
| 225 { | 225 { |
| 226 fromInternalPointer(object)->deref(); | 226 fromInternalPointer(object)->deref(); |
| 227 } | 227 } |
| 228 | 228 |
| 229 } // namespace WebCore | 229 } // namespace WebCore |
| OLD | NEW |