Lines Matching refs:scriptValue
463 SkOperand2::OpType SkScriptEngine2::getUnboxType(SkOperand2 scriptValue) { in getUnboxType() argument
467 return (*callBack)->getReturnType(0, &scriptValue); in getUnboxType()
772 SkScriptValue2 scriptValue; in handleArrayIndexer() local
778 bool success = innerScript(scriptPtr, &scriptValue); in handleArrayIndexer()
781 success = convertTo(SkOperand2::kS32, &scriptValue); in handleArrayIndexer()
783 int index = scriptValue.fOperand.fS32; in handleArrayIndexer()
784 fValueStack.pop(&scriptValue); in handleArrayIndexer()
785 if (scriptValue.fType == SkOperand2::kObject) { in handleArrayIndexer()
786 success = handleUnbox(&scriptValue); in handleArrayIndexer()
788 SkASSERT(scriptValue.fType == SkOperand2::kArray); in handleArrayIndexer()
790 scriptValue.fType = scriptValue.fOperand.fArray->getType(); in handleArrayIndexer()
792 if ((unsigned) index >= (unsigned) scriptValue.fOperand.fArray->count()) { in handleArrayIndexer()
796 scriptValue.fOperand = scriptValue.fOperand.fArray->begin()[index]; in handleArrayIndexer()
797 scriptValue.fIsConstant = SkScriptValue2::kVariable; in handleArrayIndexer()
798 fValueStack.push(scriptValue); in handleArrayIndexer()
894 bool SkScriptEngine2::handleUnbox(SkScriptValue2* scriptValue) { in handleUnbox() argument
900 success = callBackConvert->convert(scriptValue->fType, &scriptValue->fOperand); in handleUnbox()
902 if (scriptValue->fType == SkOperand2::kString) in handleUnbox()
903 track(scriptValue->fOperand.fString); in handleUnbox()