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 10 matching lines...) Expand all Loading... | |
21 #include "config.h" | 21 #include "config.h" |
22 #include "V8TestObject.h" | 22 #include "V8TestObject.h" |
23 | 23 |
24 #include "HTMLNames.h" | 24 #include "HTMLNames.h" |
25 #include "RuntimeEnabledFeatures.h" | 25 #include "RuntimeEnabledFeatures.h" |
26 #include "ScriptProfile.h" | 26 #include "ScriptProfile.h" |
27 #include "V8DOMStringList.h" | 27 #include "V8DOMStringList.h" |
28 #include "V8Document.h" | 28 #include "V8Document.h" |
29 #include "V8Float32Array.h" | 29 #include "V8Float32Array.h" |
30 #include "V8Node.h" | 30 #include "V8Node.h" |
31 #include "V8NodeList.h" | |
31 #include "V8SVGDocument.h" | 32 #include "V8SVGDocument.h" |
32 #include "V8SVGPoint.h" | 33 #include "V8SVGPoint.h" |
33 #include "V8ScriptProfile.h" | 34 #include "V8ScriptProfile.h" |
34 #include "V8TestCallback.h" | 35 #include "V8TestCallback.h" |
35 #include "V8TestNode.h" | 36 #include "V8TestNode.h" |
36 #include "V8TestSubObj.h" | 37 #include "V8TestSubObj.h" |
37 #include "bindings/v8/BindingSecurity.h" | 38 #include "bindings/v8/BindingSecurity.h" |
38 #include "bindings/v8/Dictionary.h" | 39 #include "bindings/v8/Dictionary.h" |
39 #include "bindings/v8/ScriptController.h" | 40 #include "bindings/v8/ScriptController.h" |
40 #include "bindings/v8/ScriptValue.h" | 41 #include "bindings/v8/ScriptValue.h" |
(...skipping 4253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4294 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) | 4295 if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) |
4295 return args.Holder(); | 4296 return args.Holder(); |
4296 | 4297 |
4297 return TestObjV8Internal::constructor(args); | 4298 return TestObjV8Internal::constructor(args); |
4298 } | 4299 } |
4299 | 4300 |
4300 v8::Handle<v8::Value> V8TestObject::indexedPropertyGetter(uint32_t index, const v8::AccessorInfo& info) | 4301 v8::Handle<v8::Value> V8TestObject::indexedPropertyGetter(uint32_t index, const v8::AccessorInfo& info) |
4301 { | 4302 { |
4302 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); | 4303 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); |
4303 TestObj* collection = toNative(info.Holder()); | 4304 TestObj* collection = toNative(info.Holder()); |
4304 RefPtr<Node> element = collection->item(index); | 4305 WTF::UnionType2<NodeList, Node> element = collection->item(index); |
4305 if (!element) | 4306 if (element.isNull()) |
4306 return v8Undefined(); | 4307 return v8Undefined(); |
4307 return toV8Fast(element.release(), info, collection); | 4308 if (element.enabledValue0()) |
4309 return toV8Fast(element.enabledValue0(), info, collection); | |
4310 if (element.enabledValue1()) | |
haraken
2013/05/15 12:09:43
Nit: if => else if (or else)
jsbell
2013/05/15 21:37:52
This is generated in a loop... IMHO the if/return
| |
4311 return toV8Fast(element.enabledValue1(), info, collection); | |
4312 return v8Undefined(); | |
jsbell
2013/05/15 21:37:52
But maybe generate a ASSERT_NOT_REACHED() before t
| |
4313 | |
4308 } | 4314 } |
4309 | 4315 |
4310 v8::Handle<v8::Value> V8TestObject::namedPropertyGetter(v8::Local<v8::String> na me, const v8::AccessorInfo& info) | 4316 v8::Handle<v8::Value> V8TestObject::namedPropertyGetter(v8::Local<v8::String> na me, const v8::AccessorInfo& info) |
4311 { | 4317 { |
4312 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) | 4318 if (!info.Holder()->GetRealNamedPropertyInPrototypeChain(name).IsEmpty()) |
4313 return v8Undefined(); | 4319 return v8Undefined(); |
4314 if (info.Holder()->HasRealNamedCallbackProperty(name)) | 4320 if (info.Holder()->HasRealNamedCallbackProperty(name)) |
4315 return v8Undefined(); | 4321 return v8Undefined(); |
4316 | 4322 |
4317 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); | 4323 ASSERT(V8DOMWrapper::maybeDOMWrapper(info.Holder())); |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4505 installPerContextProperties(wrapper, impl.get(), isolate); | 4511 installPerContextProperties(wrapper, impl.get(), isolate); |
4506 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent); | 4512 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep endent); |
4507 return wrapper; | 4513 return wrapper; |
4508 } | 4514 } |
4509 void V8TestObject::derefObject(void* object) | 4515 void V8TestObject::derefObject(void* object) |
4510 { | 4516 { |
4511 static_cast<TestObj*>(object)->deref(); | 4517 static_cast<TestObj*>(object)->deref(); |
4512 } | 4518 } |
4513 | 4519 |
4514 } // namespace WebCore | 4520 } // namespace WebCore |
OLD | NEW |