void QScriptActivationObject::defineSetter(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::JSObject* setterFunction) { if (d_ptr()->delegate != 0) d_ptr()->delegate->defineSetter(exec, propertyName, setterFunction); else JSC::JSVariableObject::defineSetter(exec, propertyName, setterFunction); }
void QScriptStaticScopeObject::markChildren(JSC::MarkStack& markStack) { JSC::Register* registerArray = d_ptr()->registerArray.get(); if (!registerArray) return; markStack.appendValues(reinterpret_cast<JSC::JSValue*>(registerArray), d_ptr()->registerArraySize); }
void QScriptActivationObject::put(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::JSValue value, JSC::PutPropertySlot& slot) { if (d_ptr()->delegate != 0) { d_ptr()->delegate->put(exec, propertyName, value, slot); return; } JSC::JSVariableObject::put(exec, propertyName, value, slot); }
void QScriptActivationObject::getOwnPropertyNames(JSC::ExecState* exec, JSC::PropertyNameArray& propertyNames, JSC::EnumerationMode mode) { if (d_ptr()->delegate != 0) { d_ptr()->delegate->getOwnPropertyNames(exec, propertyNames, mode); return; } return JSC::JSVariableObject::getOwnPropertyNames(exec, propertyNames, mode); }
void QScriptActivationObject::put(JSC::ExecState* exec, unsigned propertyName, JSC::JSValue value) { if (d_ptr()->delegate != 0) { d_ptr()->delegate->put(exec, propertyName, value); return; } JSC::JSVariableObject::put(exec, propertyName, value); }
/*! Grows the register array by \a count elements, and returns the offset of the newly added elements (note that the register file grows downwards, starting at index -1). */ int QScriptStaticScopeObject::growRegisterArray(int count) { size_t oldSize = d_ptr()->registerArraySize; size_t newSize = oldSize + count; JSC::Register* registerArray = new JSC::Register[newSize]; if (d_ptr()->registerArray) memcpy(registerArray + count, d_ptr()->registerArray.get(), oldSize * sizeof(JSC::Register)); setRegisters(registerArray + newSize, registerArray); d_ptr()->registerArraySize = newSize; return -oldSize - 1; }
void QScriptActivationObject::putWithAttributes(JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::JSValue value, unsigned attributes) { if (d_ptr()->delegate != 0) { d_ptr()->delegate->putWithAttributes(exec, propertyName, value, attributes); return; } if (symbolTablePutWithAttributes(propertyName, value, attributes)) return; JSC::PutPropertySlot slot; JSObject::putWithAttributes(exec, propertyName, value, attributes, true, slot); }
void QScriptStaticScopeObject::putWithAttributes(JSC::ExecState* exec, const JSC::Identifier &propertyName, JSC::JSValue value, unsigned attributes) { if (symbolTablePutWithAttributes(propertyName, value, attributes)) return; Q_ASSERT(d_ptr()->canGrow); addSymbolTableProperty(propertyName, value, attributes); }
void QScriptStaticScopeObject::put(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::JSValue value, JSC::PutPropertySlot&) { if (symbolTablePut(propertyName, value)) return; Q_ASSERT(d_ptr()->canGrow); addSymbolTableProperty(propertyName, value, /*attributes=*/0); }
std::ostream& NoOpLoopUnrolled::PrintData( std::ostream &stream, void *d ) { NoOpLoopUnrolled::Data *d_ptr( reinterpret_cast< NoOpLoopUnrolled::Data* >( d ) ); NoOpLoopUnrolled::Data::PrintData( stream, *d_ptr ); return( stream ); }
int DLNALibrary::release() { int rc = d_ptr()->m_refCount.Decrement(); if (rc == 0) { delete this; return 0; } return rc; }
int main() { //Create three instances of the template double(* d_ptr)(double *) = addAll<double,10>; int(* i_ptr)(int *) = addAll<int,10>; Number(* n_ptr)(Number *) = addAll<Number,10>; double darray[10] = {1,2,3,4,5,6,7,8,9,10}; double resultOne = d_ptr(darray); std::cout << "First total is: " << resultOne << std::endl; int iarray[10] = {1,2,3,4,5,6,7,8,9,10}; int resultTwo = i_ptr(iarray); std::cout << "Second total is: " << resultTwo << std::endl; Number numbers[] = {1,2,3,4,5,6,7,8,9,10}; Number resultThree = n_ptr(numbers); std::cout << "Third total is: " << resultThree << std::endl; }
bool QScriptActivationObject::getOwnPropertyDescriptor(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::PropertyDescriptor& descriptor) { if (d_ptr()->delegate != 0) return d_ptr()->delegate->getOwnPropertyDescriptor(exec, propertyName, descriptor); return JSC::JSVariableObject::getOwnPropertyDescriptor(exec, propertyName, descriptor); }
QScriptActivationObject::~QScriptActivationObject() { delete d_ptr(); }
void FormImageHandles::setKeepAspectRatio( bool on ) { d_ptr()->m_aspectRatioHandle->setKeepAspectRatio( on ); }
bool QScriptActivationObject::deleteProperty(JSC::ExecState* exec, const JSC::Identifier& propertyName) { if (d_ptr()->delegate != 0) return d_ptr()->delegate->deleteProperty(exec, propertyName); return JSC::JSVariableObject::deleteProperty(exec, propertyName); }
int DLNALibrary::addRef() { return d_ptr()->m_refCount.Increment(); }
bool WlanCore::init() { return d_ptr()->init(); }
bool FormImageHandles::isKeepAspectRatio() const { return d_ptr()->m_aspectRatioHandle->isKeepAspectRatio(); }
QScriptStaticScopeObject::~QScriptStaticScopeObject() { delete d_ptr(); }
JSC::JSValue QScriptActivationObject::lookupSetter(JSC::ExecState* exec, const JSC::Identifier& propertyName) { if (d_ptr()->delegate != 0) return d_ptr()->delegate->lookupSetter(exec, propertyName); return JSC::JSVariableObject::lookupSetter(exec, propertyName); }