static v8::Handle<v8::Value> frequencyAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { BiquadFilterNode* imp = V8BiquadFilterNode::toNative(info.Holder()); RefPtr<AudioParam> result = imp->frequency(); v8::Handle<v8::Value> wrapper = result.get() ? v8::Handle<v8::Value>(DOMDataStore::getWrapper(result.get(), info.GetIsolate())) : v8Undefined(); if (wrapper.IsEmpty()) { wrapper = toV8(result.get(), info.Holder(), info.GetIsolate()); if (!wrapper.IsEmpty()) V8DOMWrapper::setNamedHiddenReference(info.Holder(), "frequency", wrapper); } return wrapper; }
static v8::Handle<v8::Value> frequencyAttrGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) { INC_STATS("DOM.BiquadFilterNode.frequency._get"); BiquadFilterNode* imp = V8BiquadFilterNode::toNative(info.Holder()); RefPtr<AudioParam> result = imp->frequency(); v8::Handle<v8::Value> wrapper = result.get() ? getDOMObjectMap().get(result.get()) : v8::Handle<v8::Value>(); if (wrapper.IsEmpty()) { wrapper = toV8(result.get()); if (!wrapper.IsEmpty()) V8DOMWrapper::setNamedHiddenReference(info.Holder(), "frequency", wrapper); } return wrapper; }