JSValue jsAudioBufferSourceNodeBuffer(ExecState* exec, JSValue slotBase, const Identifier&) { JSAudioBufferSourceNode* castedThis = static_cast<JSAudioBufferSourceNode*>(asObject(slotBase)); UNUSED_PARAM(exec); AudioBufferSourceNode* imp = static_cast<AudioBufferSourceNode*>(castedThis->impl()); JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(imp->buffer())); return result; }
static v8::Handle<v8::Value> bufferAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.AudioBufferSourceNode.buffer._get"); AudioBufferSourceNode* imp = V8AudioBufferSourceNode::toNative(info.Holder()); return toV8(imp->buffer()); }
static v8::Handle<v8::Value> bufferAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { AudioBufferSourceNode* imp = V8AudioBufferSourceNode::toNative(info.Holder()); return toV8Fast(imp->buffer(), info, imp); }