| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 | 76 |
| 77 static const V8DOMConfiguration::AttributeConfiguration V8TestExceptionAttribute
s[] = { | 77 static const V8DOMConfiguration::AttributeConfiguration V8TestExceptionAttribute
s[] = { |
| 78 {"name", TestExceptionV8Internal::nameAttributeGetterCallback, 0, 0, 0, 0, s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::None), 0 /* on instance */}, | 78 {"name", TestExceptionV8Internal::nameAttributeGetterCallback, 0, 0, 0, 0, s
tatic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v
8::None), 0 /* on instance */}, |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestExceptionTemplate(v8::Han
dle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWo
rldType) | 81 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestExceptionTemplate(v8::Han
dle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWo
rldType) |
| 82 { | 82 { |
| 83 desc->ReadOnlyPrototype(); | 83 desc->ReadOnlyPrototype(); |
| 84 | 84 |
| 85 v8::Local<v8::Signature> defaultSignature; | 85 v8::Local<v8::Signature> defaultSignature; |
| 86 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestEx
ception", v8::Local<v8::FunctionTemplate>(), V8TestException::internalFieldCount
, | 86 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestEx
ception", v8::Local<v8::FunctionTemplate>(), V8TestException::internalFieldCount
, V8TestExceptionAttributes, WTF_ARRAY_LENGTH(V8TestExceptionAttributes), 0, 0,
isolate, currentWorldType); |
| 87 V8TestExceptionAttributes, WTF_ARRAY_LENGTH(V8TestExceptionAttributes), | |
| 88 0, 0, isolate, currentWorldType); | |
| 89 UNUSED_PARAM(defaultSignature); | 87 UNUSED_PARAM(defaultSignature); |
| 90 | 88 |
| 91 // Custom toString template | 89 // Custom toString template |
| 92 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); | 90 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); |
| 93 return desc; | 91 return desc; |
| 94 } | 92 } |
| 95 | 93 |
| 96 v8::Handle<v8::FunctionTemplate> V8TestException::GetTemplate(v8::Isolate* isola
te, WrapperWorldType currentWorldType) | 94 v8::Handle<v8::FunctionTemplate> V8TestException::GetTemplate(v8::Isolate* isola
te, WrapperWorldType currentWorldType) |
| 97 { | 95 { |
| 98 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 96 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 V8DOMWrapper::associateObjectWithWrapper<V8TestException>(impl, &wrapperType
Info, wrapper, isolate, WrapperConfiguration::Independent); | 137 V8DOMWrapper::associateObjectWithWrapper<V8TestException>(impl, &wrapperType
Info, wrapper, isolate, WrapperConfiguration::Independent); |
| 140 return wrapper; | 138 return wrapper; |
| 141 } | 139 } |
| 142 | 140 |
| 143 void V8TestException::derefObject(void* object) | 141 void V8TestException::derefObject(void* object) |
| 144 { | 142 { |
| 145 fromInternalPointer(object)->deref(); | 143 fromInternalPointer(object)->deref(); |
| 146 } | 144 } |
| 147 | 145 |
| 148 } // namespace WebCore | 146 } // namespace WebCore |
| OLD | NEW |