| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 } | 127 } |
| 128 | 128 |
| 129 static const V8DOMConfiguration::MethodConfiguration V8Float64ArrayMethods[] = { | 129 static const V8DOMConfiguration::MethodConfiguration V8Float64ArrayMethods[] = { |
| 130 {"set", Float64ArrayV8Internal::setMethodCallback, 0, 0}, | 130 {"set", Float64ArrayV8Internal::setMethodCallback, 0, 0}, |
| 131 }; | 131 }; |
| 132 | 132 |
| 133 void V8Float64Array::constructorCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& args) | 133 void V8Float64Array::constructorCallback(const v8::FunctionCallbackInfo<v8::Valu
e>& args) |
| 134 { | 134 { |
| 135 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); | 135 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); |
| 136 if (!args.IsConstructCall()) { | 136 if (!args.IsConstructCall()) { |
| 137 throwTypeError("DOM object constructor cannot be called as a function.",
args.GetIsolate()); | 137 throwTypeError(ExceptionMessages::failedToConstruct("Float64Array", "Ple
ase use the 'new' operator, this DOM object constructor cannot be called as a fu
nction."), args.GetIsolate()); |
| 138 return; | 138 return; |
| 139 } | 139 } |
| 140 | 140 |
| 141 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { | 141 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { |
| 142 args.GetReturnValue().Set(args.Holder()); | 142 args.GetReturnValue().Set(args.Holder()); |
| 143 return; | 143 return; |
| 144 } | 144 } |
| 145 | 145 |
| 146 Float64ArrayV8Internal::constructor(args); | 146 Float64ArrayV8Internal::constructor(args); |
| 147 } | 147 } |
| (...skipping 76 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 |