Home | History | Annotate | Download | only in custom

Lines Matching refs:TypedArray

47 template<typename TypedArray>
52 return TypedArrayTraits<TypedArray>::IsInstance(value);
55 static TypedArray* toImpl(v8::Handle<v8::Object>);
56 static TypedArray* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>);
63 static v8::Handle<v8::Object> wrap(TypedArray* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
67 return V8TypedArray<TypedArray>::createWrapper(impl, creationContext, isolate);
70 static v8::Handle<v8::Value> toV8(TypedArray* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
81 static void v8SetReturnValue(const CallbackInfo& info, TypedArray* impl)
94 static void v8SetReturnValueForMainWorld(const CallbackInfo& info, TypedArray* impl)
108 static void v8SetReturnValueFast(const CallbackInfo& info, TypedArray* impl, Wrappable* wrappable)
120 static inline ScriptWrappableBase* toScriptWrappableBase(TypedArray* impl)
125 static inline TypedArray* toImpl(ScriptWrappableBase* internalPointer)
127 return reinterpret_cast<TypedArray*>(static_cast<void*>(internalPointer));
130 typedef TypedArrayTraits<TypedArray> Traits;
132 typedef V8TypedArray<TypedArray> Binding;
134 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TypedArray>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
137 template<typename TypedArray>
140 static const WrapperTypeInfo* info() { return &V8TypedArray<TypedArray>::wrapperTypeInfo; }
144 template <typename TypedArray>
145 v8::Handle<v8::Object> V8TypedArray<TypedArray>::createWrapper(PassRefPtr<TypedArray> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
161 template <typename TypedArray>
162 TypedArray* V8TypedArray<TypedArray>::toImpl(v8::Handle<v8::Object> object)
167 return reinterpret_cast<TypedArray*>(typedarrayPtr);
171 RefPtr<TypedArray> typedArray = TypedArray::create(arrayBuffer, view->ByteOffset(), Traits::length(view));
172 ASSERT(typedArray.get());
173 V8DOMWrapper::associateObjectWithWrapper<Binding>(typedArray.release(), &wrapperTypeInfo, object, v8::Isolate::GetCurrent());
177 return reinterpret_cast<TypedArray*>(typedarrayPtr);
180 template <typename TypedArray>
181 TypedArray* V8TypedArray<TypedArray>::toImplWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value)
183 return V8TypedArray<TypedArray>::hasInstance(value, isolate) ? V8TypedArray<TypedArray>::toImpl(v8::Handle<v8::Object>::Cast(value)) : 0;
186 template <typename TypedArray>
187 const WrapperTypeInfo V8TypedArray<TypedArray>::wrapperTypeInfo = {
190 V8TypedArray<TypedArray>::refObject,
191 V8TypedArray<TypedArray>::derefObject,
192 V8TypedArray<TypedArray>::createPersistentHandle,
200 template <typename TypedArray>
201 void V8TypedArray<TypedArray>::refObject(ScriptWrappableBase* internalPointer)
206 template <typename TypedArray>
207 void V8TypedArray<TypedArray>::derefObject(ScriptWrappableBase* internalPointer)
212 template <typename TypedArray>
213 WrapperPersistentNode* V8TypedArray<TypedArray>::createPersistentHandle(ScriptWrappableBase* internalPointer)