| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 namespace WebCore { | 30 namespace WebCore { |
| 31 | 31 |
| 32 class V8Float64Array { | 32 class V8Float64Array { |
| 33 public: | 33 public: |
| 34 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp
e); | 34 static bool HasInstance(v8::Handle<v8::Value>, v8::Isolate*, WrapperWorldTyp
e); |
| 35 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); | 35 static bool HasInstanceInAnyWorld(v8::Handle<v8::Value>, v8::Isolate*); |
| 36 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor
ldType); | 36 static v8::Handle<v8::FunctionTemplate> GetTemplate(v8::Isolate*, WrapperWor
ldType); |
| 37 static Float64Array* toNative(v8::Handle<v8::Object> object) | 37 static Float64Array* toNative(v8::Handle<v8::Object> object) |
| 38 { | 38 { |
| 39 return reinterpret_cast<Float64Array*>(object->GetAlignedPointerFromInte
rnalField(v8DOMWrapperObjectIndex)); | 39 return fromInternalPointer(object->GetAlignedPointerFromInternalField(v8
DOMWrapperObjectIndex)); |
| 40 } | 40 } |
| 41 static void derefObject(void*); | 41 static void derefObject(void*); |
| 42 static WrapperTypeInfo info; | 42 static WrapperTypeInfo info; |
| 43 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); | 43 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); |
| 44 static void indexedPropertyGetterCustom(uint32_t, const v8::PropertyCallback
Info<v8::Value>&); | 44 static void indexedPropertyGetterCustom(uint32_t, const v8::PropertyCallback
Info<v8::Value>&); |
| 45 static void indexedPropertySetterCustom(uint32_t, v8::Local<v8::Value>, cons
t v8::PropertyCallbackInfo<v8::Value>&); | 45 static void indexedPropertySetterCustom(uint32_t, v8::Local<v8::Value>, cons
t v8::PropertyCallbackInfo<v8::Value>&); |
| 46 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; | 46 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0
; |
| 47 static inline void* toInternalPointer(Float64Array* impl) |
| 48 { |
| 49 return V8ArrayBufferView::toInternalPointer(impl); |
| 50 } |
| 51 |
| 52 static inline Float64Array* fromInternalPointer(void* object) |
| 53 { |
| 54 return static_cast<Float64Array*>(V8ArrayBufferView::fromInternalPointer
(object)); |
| 55 } |
| 47 static void installPerContextProperties(v8::Handle<v8::Object>, Float64Array
*, v8::Isolate*) { } | 56 static void installPerContextProperties(v8::Handle<v8::Object>, Float64Array
*, v8::Isolate*) { } |
| 48 static void installPerContextPrototypeProperties(v8::Handle<v8::Object>, v8:
:Isolate*) { } | 57 static void installPerContextPrototypeProperties(v8::Handle<v8::Object>, v8:
:Isolate*) { } |
| 49 private: | 58 private: |
| 50 friend v8::Handle<v8::Object> wrap(Float64Array*, v8::Handle<v8::Object> cre
ationContext, v8::Isolate*); | 59 friend v8::Handle<v8::Object> wrap(Float64Array*, v8::Handle<v8::Object> cre
ationContext, v8::Isolate*); |
| 51 static v8::Handle<v8::Object> createWrapper(PassRefPtr<Float64Array>, v8::Ha
ndle<v8::Object> creationContext, v8::Isolate*); | 60 static v8::Handle<v8::Object> createWrapper(PassRefPtr<Float64Array>, v8::Ha
ndle<v8::Object> creationContext, v8::Isolate*); |
| 52 }; | 61 }; |
| 53 | 62 |
| 54 template<> | 63 template<> |
| 55 class WrapperTypeTraits<Float64Array > { | 64 class WrapperTypeTraits<Float64Array > { |
| 56 public: | 65 public: |
| 57 static WrapperTypeInfo* info() { return &V8Float64Array::info; } | 66 static WrapperTypeInfo* info() { return &V8Float64Array::info; } |
| 58 }; | 67 }; |
| 59 | 68 |
| 60 | 69 |
| 61 v8::Handle<v8::Object> wrap(Float64Array* impl, v8::Handle<v8::Object> creationC
ontext, v8::Isolate*); | 70 v8::Handle<v8::Object> wrap(Float64Array* impl, v8::Handle<v8::Object> creationC
ontext, v8::Isolate*); |
| 62 | 71 |
| 63 inline v8::Handle<v8::Value> toV8(Float64Array* impl, v8::Handle<v8::Object> cre
ationContext, v8::Isolate* isolate) | 72 inline v8::Handle<v8::Value> toV8(Float64Array* impl, v8::Handle<v8::Object> cre
ationContext, v8::Isolate* isolate) |
| 64 { | 73 { |
| 65 if (UNLIKELY(!impl)) | 74 if (UNLIKELY(!impl)) |
| 66 return v8NullWithCheck(isolate); | 75 return v8NullWithCheck(isolate); |
| 67 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); | 76 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8Float64Array>(imp
l, isolate); |
| 68 if (!wrapper.IsEmpty()) | 77 if (!wrapper.IsEmpty()) |
| 69 return wrapper; | 78 return wrapper; |
| 70 return wrap(impl, creationContext, isolate); | 79 return wrap(impl, creationContext, isolate); |
| 71 } | 80 } |
| 72 | 81 |
| 73 inline v8::Handle<v8::Value> toV8ForMainWorld(Float64Array* impl, v8::Handle<v8:
:Object> creationContext, v8::Isolate* isolate) | 82 inline v8::Handle<v8::Value> toV8ForMainWorld(Float64Array* impl, v8::Handle<v8:
:Object> creationContext, v8::Isolate* isolate) |
| 74 { | 83 { |
| 75 ASSERT(worldType(isolate) == MainWorld); | 84 ASSERT(worldType(isolate) == MainWorld); |
| 76 if (UNLIKELY(!impl)) | 85 if (UNLIKELY(!impl)) |
| 77 return v8NullWithCheck(isolate); | 86 return v8NullWithCheck(isolate); |
| 78 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapperForMainWorld(impl); | 87 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapperForMainWorld<V8Float
64Array>(impl); |
| 79 if (!wrapper.IsEmpty()) | 88 if (!wrapper.IsEmpty()) |
| 80 return wrapper; | 89 return wrapper; |
| 81 return wrap(impl, creationContext, isolate); | 90 return wrap(impl, creationContext, isolate); |
| 82 } | 91 } |
| 83 | 92 |
| 84 template<class HolderContainer, class Wrappable> | 93 template<class HolderContainer, class Wrappable> |
| 85 inline v8::Handle<v8::Value> toV8Fast(Float64Array* impl, const HolderContainer&
container, Wrappable* wrappable) | 94 inline v8::Handle<v8::Value> toV8Fast(Float64Array* impl, const HolderContainer&
container, Wrappable* wrappable) |
| 86 { | 95 { |
| 87 if (UNLIKELY(!impl)) | 96 if (UNLIKELY(!impl)) |
| 88 return v8::Null(container.GetIsolate()); | 97 return v8::Null(container.GetIsolate()); |
| 89 v8::Handle<v8::Object> wrapper = DOMDataStore::getWrapperFast(impl, containe
r, wrappable); | 98 v8::Handle<v8::Object> wrapper = DOMDataStore::getWrapperFast<V8Float64Array
>(impl, container, wrappable); |
| 90 if (!wrapper.IsEmpty()) | 99 if (!wrapper.IsEmpty()) |
| 91 return wrapper; | 100 return wrapper; |
| 92 return wrap(impl, container.Holder(), container.GetIsolate()); | 101 return wrap(impl, container.Holder(), container.GetIsolate()); |
| 93 } | 102 } |
| 94 | 103 |
| 95 template<class HolderContainer, class Wrappable> | 104 template<class HolderContainer, class Wrappable> |
| 96 inline v8::Handle<v8::Value> toV8FastForMainWorld(Float64Array* impl, const Hold
erContainer& container, Wrappable* wrappable) | 105 inline v8::Handle<v8::Value> toV8FastForMainWorld(Float64Array* impl, const Hold
erContainer& container, Wrappable* wrappable) |
| 97 { | 106 { |
| 98 ASSERT(worldType(container.GetIsolate()) == MainWorld); | 107 ASSERT(worldType(container.GetIsolate()) == MainWorld); |
| 99 if (UNLIKELY(!impl)) | 108 if (UNLIKELY(!impl)) |
| 100 return v8::Null(container.GetIsolate()); | 109 return v8::Null(container.GetIsolate()); |
| 101 v8::Handle<v8::Object> wrapper = DOMDataStore::getWrapperForMainWorld(impl); | 110 v8::Handle<v8::Object> wrapper = DOMDataStore::getWrapperForMainWorld<V8Floa
t64Array>(impl); |
| 102 if (!wrapper.IsEmpty()) | 111 if (!wrapper.IsEmpty()) |
| 103 return wrapper; | 112 return wrapper; |
| 104 return wrap(impl, container.Holder(), container.GetIsolate()); | 113 return wrap(impl, container.Holder(), container.GetIsolate()); |
| 105 } | 114 } |
| 106 | 115 |
| 107 template<class HolderContainer, class Wrappable> | 116 template<class HolderContainer, class Wrappable> |
| 108 inline v8::Handle<v8::Value> toV8FastForMainWorld(PassRefPtr< Float64Array > imp
l, const HolderContainer& container, Wrappable* wrappable) | 117 inline v8::Handle<v8::Value> toV8FastForMainWorld(PassRefPtr< Float64Array > imp
l, const HolderContainer& container, Wrappable* wrappable) |
| 109 { | 118 { |
| 110 return toV8FastForMainWorld(impl.get(), container, wrappable); | 119 return toV8FastForMainWorld(impl.get(), container, wrappable); |
| 111 } | 120 } |
| 112 | 121 |
| 113 | 122 |
| 114 template<class HolderContainer, class Wrappable> | 123 template<class HolderContainer, class Wrappable> |
| 115 inline v8::Handle<v8::Value> toV8Fast(PassRefPtr< Float64Array > impl, const Hol
derContainer& container, Wrappable* wrappable) | 124 inline v8::Handle<v8::Value> toV8Fast(PassRefPtr< Float64Array > impl, const Hol
derContainer& container, Wrappable* wrappable) |
| 116 { | 125 { |
| 117 return toV8Fast(impl.get(), container, wrappable); | 126 return toV8Fast(impl.get(), container, wrappable); |
| 118 } | 127 } |
| 119 | 128 |
| 120 inline v8::Handle<v8::Value> toV8(PassRefPtr< Float64Array > impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) | 129 inline v8::Handle<v8::Value> toV8(PassRefPtr< Float64Array > impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
| 121 { | 130 { |
| 122 return toV8(impl.get(), creationContext, isolate); | 131 return toV8(impl.get(), creationContext, isolate); |
| 123 } | 132 } |
| 124 | 133 |
| 125 } | 134 } |
| 126 | 135 |
| 127 #endif // V8Float64Array_h | 136 #endif // V8Float64Array_h |
| OLD | NEW |