| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestExceptionTemplate(v8::Han
dle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWo
rldType) | 83 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestExceptionTemplate(v8::Han
dle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType currentWo
rldType) |
| 84 { | 84 { |
| 85 desc->ReadOnlyPrototype(); | 85 desc->ReadOnlyPrototype(); |
| 86 | 86 |
| 87 v8::Local<v8::Signature> defaultSignature; | 87 v8::Local<v8::Signature> defaultSignature; |
| 88 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestEx
ception", v8::Local<v8::FunctionTemplate>(), V8TestException::internalFieldCount
, | 88 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestEx
ception", v8::Local<v8::FunctionTemplate>(), V8TestException::internalFieldCount
, |
| 89 V8TestExceptionAttributes, WTF_ARRAY_LENGTH(V8TestExceptionAttributes), | 89 V8TestExceptionAttributes, WTF_ARRAY_LENGTH(V8TestExceptionAttributes), |
| 90 0, 0, isolate, currentWorldType); | 90 0, 0, isolate, currentWorldType); |
| 91 UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. | 91 UNUSED_PARAM(defaultSignature); |
| 92 | 92 |
| 93 // Custom toString template | 93 // Custom toString template |
| 94 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); | 94 desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->to
StringTemplate()); |
| 95 return desc; | 95 return desc; |
| 96 } | 96 } |
| 97 | 97 |
| 98 v8::Handle<v8::FunctionTemplate> V8TestException::GetTemplate(v8::Isolate* isola
te, WrapperWorldType currentWorldType) | 98 v8::Handle<v8::FunctionTemplate> V8TestException::GetTemplate(v8::Isolate* isola
te, WrapperWorldType currentWorldType) |
| 99 { | 99 { |
| 100 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 100 V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
| 101 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo
rldType).find(&info); | 101 V8PerIsolateData::TemplateMap::iterator result = data->templateMap(currentWo
rldType).find(&info); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 V8DOMWrapper::associateObjectWithWrapper<V8TestException>(impl, &info, wrapp
er, isolate, WrapperConfiguration::Independent); | 141 V8DOMWrapper::associateObjectWithWrapper<V8TestException>(impl, &info, wrapp
er, isolate, WrapperConfiguration::Independent); |
| 142 return wrapper; | 142 return wrapper; |
| 143 } | 143 } |
| 144 | 144 |
| 145 void V8TestException::derefObject(void* object) | 145 void V8TestException::derefObject(void* object) |
| 146 { | 146 { |
| 147 fromInternalPointer(object)->deref(); | 147 fromInternalPointer(object)->deref(); |
| 148 } | 148 } |
| 149 | 149 |
| 150 } // namespace WebCore | 150 } // namespace WebCore |
| OLD | NEW |