| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 throwTypeError(args.GetIsolate()); | 134 throwTypeError(args.GetIsolate()); |
| 135 return; | 135 return; |
| 136 } | 136 } |
| 137 | 137 |
| 138 } // namespace TestOverloadedConstructorsV8Internal | 138 } // namespace TestOverloadedConstructorsV8Internal |
| 139 | 139 |
| 140 void V8TestOverloadedConstructors::constructorCallback(const v8::FunctionCallbac
kInfo<v8::Value>& args) | 140 void V8TestOverloadedConstructors::constructorCallback(const v8::FunctionCallbac
kInfo<v8::Value>& args) |
| 141 { | 141 { |
| 142 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); | 142 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); |
| 143 if (!args.IsConstructCall()) { | 143 if (!args.IsConstructCall()) { |
| 144 throwTypeError("DOM object constructor cannot be called as a function.",
args.GetIsolate()); | 144 throwTypeError(ExceptionMessages::failedToConstruct("TestOverloadedConst
ructors", "Please use the 'new' operator, this DOM object constructor cannot be
called as a function."), args.GetIsolate()); |
| 145 return; | 145 return; |
| 146 } | 146 } |
| 147 | 147 |
| 148 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { | 148 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { |
| 149 args.GetReturnValue().Set(args.Holder()); | 149 args.GetReturnValue().Set(args.Holder()); |
| 150 return; | 150 return; |
| 151 } | 151 } |
| 152 | 152 |
| 153 TestOverloadedConstructorsV8Internal::constructor(args); | 153 TestOverloadedConstructorsV8Internal::constructor(args); |
| 154 } | 154 } |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl,
&info, wrapper, isolate, WrapperConfiguration::Independent); | 216 V8DOMWrapper::associateObjectWithWrapper<V8TestOverloadedConstructors>(impl,
&info, wrapper, isolate, WrapperConfiguration::Independent); |
| 217 return wrapper; | 217 return wrapper; |
| 218 } | 218 } |
| 219 | 219 |
| 220 void V8TestOverloadedConstructors::derefObject(void* object) | 220 void V8TestOverloadedConstructors::derefObject(void* object) |
| 221 { | 221 { |
| 222 fromInternalPointer(object)->deref(); | 222 fromInternalPointer(object)->deref(); |
| 223 } | 223 } |
| 224 | 224 |
| 225 } // namespace WebCore | 225 } // namespace WebCore |
| OLD | NEW |