| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 WebCore::initializeScriptWrappableForInterface(object); | 54 WebCore::initializeScriptWrappableForInterface(object); |
| 55 } | 55 } |
| 56 | 56 |
| 57 namespace WebCore { | 57 namespace WebCore { |
| 58 const WrapperTypeInfo V8TestCustomAccessors::wrapperTypeInfo = { V8TestCustomAcc
essors::GetTemplate, V8TestCustomAccessors::derefObject, 0, 0, 0, V8TestCustomAc
cessors::installPerContextEnabledPrototypeProperties, 0, WrapperTypeObjectProtot
ype }; | 58 const WrapperTypeInfo V8TestCustomAccessors::wrapperTypeInfo = { V8TestCustomAcc
essors::GetTemplate, V8TestCustomAccessors::derefObject, 0, 0, 0, V8TestCustomAc
cessors::installPerContextEnabledPrototypeProperties, 0, WrapperTypeObjectProtot
ype }; |
| 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>& inf
o) |
| 65 { | 65 { |
| 66 if (UNLIKELY(args.Length() < 1)) { | 66 if (UNLIKELY(info.Length() < 1)) { |
| 67 throwTypeError(ExceptionMessages::failedToExecute("anotherFunction", "Te
stCustomAccessors", ExceptionMessages::notEnoughArguments(1, args.Length())), ar
gs.GetIsolate()); | 67 throwTypeError(ExceptionMessages::failedToExecute("anotherFunction", "Te
stCustomAccessors", ExceptionMessages::notEnoughArguments(1, info.Length())), in
fo.GetIsolate()); |
| 68 return; | 68 return; |
| 69 } | 69 } |
| 70 TestCustomAccessors* imp = V8TestCustomAccessors::toNative(args.Holder()); | 70 TestCustomAccessors* imp = V8TestCustomAccessors::toNative(info.Holder()); |
| 71 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str, args[0]); | 71 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str, info[0]); |
| 72 imp->anotherFunction(str); | 72 imp->anotherFunction(str); |
| 73 } | 73 } |
| 74 | 74 |
| 75 static void anotherFunctionMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& args) | 75 static void anotherFunctionMethodCallback(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 76 { | 76 { |
| 77 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 77 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 78 TestCustomAccessorsV8Internal::anotherFunctionMethod(args); | 78 TestCustomAccessorsV8Internal::anotherFunctionMethod(info); |
| 79 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 79 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 80 } | 80 } |
| 81 | 81 |
| 82 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) | 82 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) |
| 83 { | 83 { |
| 84 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMIndexedProperty"); | 84 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMIndexedProperty"); |
| 85 V8TestCustomAccessors::indexedPropertyGetterCustom(index, info); | 85 V8TestCustomAccessors::indexedPropertyGetterCustom(index, info); |
| 86 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 86 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 87 } | 87 } |
| 88 | 88 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 V8DOMWrapper::associateObjectWithWrapper<V8TestCustomAccessors>(impl, &wrapp
erTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); | 209 V8DOMWrapper::associateObjectWithWrapper<V8TestCustomAccessors>(impl, &wrapp
erTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
| 210 return wrapper; | 210 return wrapper; |
| 211 } | 211 } |
| 212 | 212 |
| 213 void V8TestCustomAccessors::derefObject(void* object) | 213 void V8TestCustomAccessors::derefObject(void* object) |
| 214 { | 214 { |
| 215 fromInternalPointer(object)->deref(); | 215 fromInternalPointer(object)->deref(); |
| 216 } | 216 } |
| 217 | 217 |
| 218 } // namespace WebCore | 218 } // namespace WebCore |
| OLD | NEW |