| 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 5350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5361 {"activityLoggedMethod2", TestObjV8Internal::activityLoggedMethod2MethodCall
back, TestObjV8Internal::activityLoggedMethod2MethodCallbackForMainWorld, 1}, | 5361 {"activityLoggedMethod2", TestObjV8Internal::activityLoggedMethod2MethodCall
back, TestObjV8Internal::activityLoggedMethod2MethodCallbackForMainWorld, 1}, |
| 5362 {"activityLoggedInIsolatedWorldMethod", TestObjV8Internal::activityLoggedInI
solatedWorldMethodMethodCallback, TestObjV8Internal::activityLoggedInIsolatedWor
ldMethodMethodCallbackForMainWorld, 1}, | 5362 {"activityLoggedInIsolatedWorldMethod", TestObjV8Internal::activityLoggedInI
solatedWorldMethodMethodCallback, TestObjV8Internal::activityLoggedInIsolatedWor
ldMethodMethodCallbackForMainWorld, 1}, |
| 5363 {"overloadedActivityLoggedMethod", TestObjV8Internal::overloadedActivityLogg
edMethodMethodCallback, TestObjV8Internal::overloadedActivityLoggedMethodMethodC
allbackForMainWorld, 1}, | 5363 {"overloadedActivityLoggedMethod", TestObjV8Internal::overloadedActivityLogg
edMethodMethodCallback, TestObjV8Internal::overloadedActivityLoggedMethodMethodC
allbackForMainWorld, 1}, |
| 5364 {"deprecatedMethod", TestObjV8Internal::deprecatedMethodMethodCallback, 0, 0
}, | 5364 {"deprecatedMethod", TestObjV8Internal::deprecatedMethodMethodCallback, 0, 0
}, |
| 5365 }; | 5365 }; |
| 5366 | 5366 |
| 5367 void V8TestObject::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>
& args) | 5367 void V8TestObject::constructorCallback(const v8::FunctionCallbackInfo<v8::Value>
& args) |
| 5368 { | 5368 { |
| 5369 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); | 5369 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "DOMConstructor"); |
| 5370 if (!args.IsConstructCall()) { | 5370 if (!args.IsConstructCall()) { |
| 5371 throwTypeError("DOM object constructor cannot be called as a function.",
args.GetIsolate()); | 5371 throwTypeError(ExceptionMessages::failedToConstruct("TestObj", "Please u
se the 'new' operator, this DOM object constructor cannot be called as a functio
n."), args.GetIsolate()); |
| 5372 return; | 5372 return; |
| 5373 } | 5373 } |
| 5374 | 5374 |
| 5375 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { | 5375 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) { |
| 5376 args.GetReturnValue().Set(args.Holder()); | 5376 args.GetReturnValue().Set(args.Holder()); |
| 5377 return; | 5377 return; |
| 5378 } | 5378 } |
| 5379 | 5379 |
| 5380 TestObjV8Internal::constructor(args); | 5380 TestObjV8Internal::constructor(args); |
| 5381 } | 5381 } |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5556 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper,
isolate, WrapperConfiguration::Independent); | 5556 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper,
isolate, WrapperConfiguration::Independent); |
| 5557 return wrapper; | 5557 return wrapper; |
| 5558 } | 5558 } |
| 5559 | 5559 |
| 5560 void V8TestObject::derefObject(void* object) | 5560 void V8TestObject::derefObject(void* object) |
| 5561 { | 5561 { |
| 5562 fromInternalPointer(object)->deref(); | 5562 fromInternalPointer(object)->deref(); |
| 5563 } | 5563 } |
| 5564 | 5564 |
| 5565 } // namespace WebCore | 5565 } // namespace WebCore |
| OLD | NEW |