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