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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 namespace WebCore { | 57 namespace WebCore { |
58 WrapperTypeInfo V8TestCustomAccessors::info = { V8TestCustomAccessors::GetTempla
te, V8TestCustomAccessors::derefObject, 0, 0, 0, V8TestCustomAccessors::installP
erContextPrototypeProperties, 0, WrapperTypeObjectPrototype }; | 58 WrapperTypeInfo V8TestCustomAccessors::info = { V8TestCustomAccessors::GetTempla
te, V8TestCustomAccessors::derefObject, 0, 0, 0, V8TestCustomAccessors::installP
erContextPrototypeProperties, 0, WrapperTypeObjectPrototype }; |
59 | 59 |
60 namespace TestCustomAccessorsV8Internal { | 60 namespace TestCustomAccessorsV8Internal { |
61 | 61 |
62 template <typename T> void V8_USE(T) { } | 62 template <typename T> void V8_USE(T) { } |
63 | 63 |
64 static void anotherFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& arg
s) | 64 static void anotherFunctionMethod(const v8::FunctionCallbackInfo<v8::Value>& arg
s) |
65 { | 65 { |
66 if (args.Length() < 1) { | 66 if (UNLIKELY(args.Length() < 1)) { |
67 throwNotEnoughArgumentsError(args.GetIsolate()); | 67 throwNotEnoughArgumentsError(args.GetIsolate()); |
68 return; | 68 return; |
69 } | 69 } |
70 TestCustomAccessors* imp = V8TestCustomAccessors::toNative(args.Holder()); | 70 TestCustomAccessors* imp = V8TestCustomAccessors::toNative(args.Holder()); |
71 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str, args[0]); | 71 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str, args[0]); |
72 imp->anotherFunction(str); | 72 imp->anotherFunction(str); |
73 | 73 |
74 return; | 74 return; |
75 } | 75 } |
76 | 76 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 V8DOMWrapper::associateObjectWithWrapper<V8TestCustomAccessors>(impl, &info,
wrapper, isolate, WrapperConfiguration::Independent); | 210 V8DOMWrapper::associateObjectWithWrapper<V8TestCustomAccessors>(impl, &info,
wrapper, isolate, WrapperConfiguration::Independent); |
211 return wrapper; | 211 return wrapper; |
212 } | 212 } |
213 | 213 |
214 void V8TestCustomAccessors::derefObject(void* object) | 214 void V8TestCustomAccessors::derefObject(void* object) |
215 { | 215 { |
216 fromInternalPointer(object)->deref(); | 216 fromInternalPointer(object)->deref(); |
217 } | 217 } |
218 | 218 |
219 } // namespace WebCore | 219 } // namespace WebCore |
OLD | NEW |