Lines Matching defs:scriptValue
33 merge type and operand arrays into scriptvalue array
720 SkScriptValue scriptValue;
721 SkDEBUGCODE(scriptValue.fOperand.fObject = NULL);
732 fOperandStack.pop(&scriptValue.fOperand);
733 scriptValue.fType = ToDisplayType(topType);
734 handleBox(&scriptValue);
884 SkScriptValue scriptValue;
890 bool success = innerScript(scriptPtr, suppressed == false ? &scriptValue : NULL);
895 if (convertTo(SkType_Int, &scriptValue) == false)
897 int index = scriptValue.fOperand.fS32;
898 SkScriptValue scriptValue;
901 fOperandStack.pop(&scriptValue.fOperand);
902 scriptValue.fType = ToDisplayType(type);
904 success = handleUnbox(&scriptValue);
907 if (ToOpType(scriptValue.fType) != kArray) {
912 *fTypeStack.push() = scriptValue.fOperand.fArray->getOpType();
914 if ((unsigned) index >= (unsigned) scriptValue.fOperand.fArray->count()) {
918 scriptValue.fOperand = scriptValue.fOperand.fArray->begin()[index];
919 fOperandStack.push(scriptValue.fOperand);
925 bool SkScriptEngine::handleBox(SkScriptValue* scriptValue) {
930 success = (*callBack->fBoxCallBack)(callBack->fUserStorage, scriptValue);
932 fOperandStack.push(scriptValue->fOperand);
933 *fTypeStack.push() = ToOpType(scriptValue->fType);
1062 bool SkScriptEngine::handleUnbox(SkScriptValue* scriptValue) {
1067 success = (*callBack->fUnboxCallBack)(callBack->fUserStorage, scriptValue);
1069 if (scriptValue->fType == SkType_String)
1070 track(scriptValue->fOperand.fString);