diff options
Diffstat (limited to 'src/qml/compiler/qv4isel_p.h')
-rw-r--r-- | src/qml/compiler/qv4isel_p.h | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/src/qml/compiler/qv4isel_p.h b/src/qml/compiler/qv4isel_p.h index 74e6ba8200..cbfc21c211 100644 --- a/src/qml/compiler/qv4isel_p.h +++ b/src/qml/compiler/qv4isel_p.h @@ -112,60 +112,60 @@ public: // visitor methods for StmtVisitor: virtual void visitExp(IR::Exp *s); public: // to implement by subclasses: - virtual void callBuiltinInvalid(IR::Name *func, IR::ExprList *args, IR::Temp *result) = 0; - virtual void callBuiltinTypeofMember(IR::Expr *base, const QString &name, IR::Temp *result) = 0; - virtual void callBuiltinTypeofSubscript(IR::Expr *base, IR::Expr *index, IR::Temp *result) = 0; - virtual void callBuiltinTypeofName(const QString &name, IR::Temp *result) = 0; - virtual void callBuiltinTypeofValue(IR::Expr *value, IR::Temp *result) = 0; - virtual void callBuiltinDeleteMember(IR::Temp *base, const QString &name, IR::Temp *result) = 0; - virtual void callBuiltinDeleteSubscript(IR::Temp *base, IR::Expr *index, IR::Temp *result) = 0; - virtual void callBuiltinDeleteName(const QString &name, IR::Temp *result) = 0; - virtual void callBuiltinDeleteValue(IR::Temp *result) = 0; + virtual void callBuiltinInvalid(IR::Name *func, IR::ExprList *args, IR::Expr *result) = 0; + virtual void callBuiltinTypeofMember(IR::Expr *base, const QString &name, IR::Expr *result) = 0; + virtual void callBuiltinTypeofSubscript(IR::Expr *base, IR::Expr *index, IR::Expr *result) = 0; + virtual void callBuiltinTypeofName(const QString &name, IR::Expr *result) = 0; + virtual void callBuiltinTypeofValue(IR::Expr *value, IR::Expr *result) = 0; + virtual void callBuiltinDeleteMember(IR::Expr *base, const QString &name, IR::Expr *result) = 0; + virtual void callBuiltinDeleteSubscript(IR::Expr *base, IR::Expr *index, IR::Expr *result) = 0; + virtual void callBuiltinDeleteName(const QString &name, IR::Expr *result) = 0; + virtual void callBuiltinDeleteValue(IR::Expr *result) = 0; virtual void callBuiltinThrow(IR::Expr *arg) = 0; virtual void callBuiltinReThrow() = 0; - virtual void callBuiltinUnwindException(IR::Temp *) = 0; + virtual void callBuiltinUnwindException(IR::Expr *) = 0; virtual void callBuiltinPushCatchScope(const QString &exceptionName) = 0; - virtual void callBuiltinForeachIteratorObject(IR::Expr *arg, IR::Temp *result) = 0; - virtual void callBuiltinForeachNextPropertyname(IR::Temp *arg, IR::Temp *result) = 0; - virtual void callBuiltinPushWithScope(IR::Temp *arg) = 0; + virtual void callBuiltinForeachIteratorObject(IR::Expr *arg, IR::Expr *result) = 0; + virtual void callBuiltinForeachNextPropertyname(IR::Expr *arg, IR::Expr *result) = 0; + virtual void callBuiltinPushWithScope(IR::Expr *arg) = 0; virtual void callBuiltinPopScope() = 0; virtual void callBuiltinDeclareVar(bool deletable, const QString &name) = 0; - virtual void callBuiltinDefineArray(IR::Temp *result, IR::ExprList *args) = 0; - virtual void callBuiltinDefineObjectLiteral(IR::Temp *result, int keyValuePairCount, IR::ExprList *keyValuePairs, IR::ExprList *arrayEntries, bool needSparseArray) = 0; - virtual void callBuiltinSetupArgumentObject(IR::Temp *result) = 0; + virtual void callBuiltinDefineArray(IR::Expr *result, IR::ExprList *args) = 0; + virtual void callBuiltinDefineObjectLiteral(IR::Expr *result, int keyValuePairCount, IR::ExprList *keyValuePairs, IR::ExprList *arrayEntries, bool needSparseArray) = 0; + virtual void callBuiltinSetupArgumentObject(IR::Expr *result) = 0; virtual void callBuiltinConvertThisToObject() = 0; - virtual void callValue(IR::Temp *value, IR::ExprList *args, IR::Temp *result) = 0; - virtual void callProperty(IR::Expr *base, const QString &name, IR::ExprList *args, IR::Temp *result) = 0; - virtual void callSubscript(IR::Expr *base, IR::Expr *index, IR::ExprList *args, IR::Temp *result) = 0; - virtual void convertType(IR::Temp *source, IR::Temp *target) = 0; - virtual void constructActivationProperty(IR::Name *func, IR::ExprList *args, IR::Temp *result) = 0; - virtual void constructProperty(IR::Temp *base, const QString &name, IR::ExprList *args, IR::Temp *result) = 0; - virtual void constructValue(IR::Temp *value, IR::ExprList *args, IR::Temp *result) = 0; - virtual void loadThisObject(IR::Temp *temp) = 0; - virtual void loadQmlIdArray(IR::Temp *temp) = 0; - virtual void loadQmlImportedScripts(IR::Temp *temp) = 0; - virtual void loadQmlContextObject(IR::Temp *temp) = 0; - virtual void loadQmlScopeObject(IR::Temp *temp) = 0; - virtual void loadQmlSingleton(const QString &name, IR::Temp *temp) = 0; - virtual void loadConst(IR::Const *sourceConst, IR::Temp *targetTemp) = 0; - virtual void loadString(const QString &str, IR::Temp *targetTemp) = 0; - virtual void loadRegexp(IR::RegExp *sourceRegexp, IR::Temp *targetTemp) = 0; - virtual void getActivationProperty(const IR::Name *name, IR::Temp *temp) = 0; + virtual void callValue(IR::Expr *value, IR::ExprList *args, IR::Expr *result) = 0; + virtual void callProperty(IR::Expr *base, const QString &name, IR::ExprList *args, IR::Expr *result) = 0; + virtual void callSubscript(IR::Expr *base, IR::Expr *index, IR::ExprList *args, IR::Expr *result) = 0; + virtual void convertType(IR::Expr *source, IR::Expr *target) = 0; + virtual void constructActivationProperty(IR::Name *func, IR::ExprList *args, IR::Expr *result) = 0; + virtual void constructProperty(IR::Expr *base, const QString &name, IR::ExprList *args, IR::Expr *result) = 0; + virtual void constructValue(IR::Expr *value, IR::ExprList *args, IR::Expr *result) = 0; + virtual void loadThisObject(IR::Expr *target) = 0; + virtual void loadQmlIdArray(IR::Expr *target) = 0; + virtual void loadQmlImportedScripts(IR::Expr *target) = 0; + virtual void loadQmlContextObject(IR::Expr *target) = 0; + virtual void loadQmlScopeObject(IR::Expr *target) = 0; + virtual void loadQmlSingleton(const QString &name, IR::Expr *target) = 0; + virtual void loadConst(IR::Const *sourceConst, IR::Expr *target) = 0; + virtual void loadString(const QString &str, IR::Expr *target) = 0; + virtual void loadRegexp(IR::RegExp *sourceRegexp, IR::Expr *target) = 0; + virtual void getActivationProperty(const IR::Name *name, IR::Expr *target) = 0; virtual void setActivationProperty(IR::Expr *source, const QString &targetName) = 0; - virtual void initClosure(IR::Closure *closure, IR::Temp *target) = 0; - virtual void getProperty(IR::Expr *base, const QString &name, IR::Temp *target) = 0; - virtual void getQObjectProperty(IR::Expr *base, int propertyIndex, bool captureRequired, int attachedPropertiesId, IR::Temp *targetTemp) = 0; + virtual void initClosure(IR::Closure *closure, IR::Expr *target) = 0; + virtual void getProperty(IR::Expr *base, const QString &name, IR::Expr *target) = 0; + virtual void getQObjectProperty(IR::Expr *base, int propertyIndex, bool captureRequired, int attachedPropertiesId, IR::Expr *target) = 0; virtual void setProperty(IR::Expr *source, IR::Expr *targetBase, const QString &targetName) = 0; virtual void setQObjectProperty(IR::Expr *source, IR::Expr *targetBase, int propertyIndex) = 0; - virtual void getElement(IR::Expr *base, IR::Expr *index, IR::Temp *target) = 0; + virtual void getElement(IR::Expr *base, IR::Expr *index, IR::Expr *target) = 0; virtual void setElement(IR::Expr *source, IR::Expr *targetBase, IR::Expr *targetIndex) = 0; - virtual void copyValue(IR::Temp *sourceTemp, IR::Temp *targetTemp) = 0; - virtual void swapValues(IR::Temp *sourceTemp, IR::Temp *targetTemp) = 0; - virtual void unop(IR::AluOp oper, IR::Temp *sourceTemp, IR::Temp *targetTemp) = 0; - virtual void binop(IR::AluOp oper, IR::Expr *leftSource, IR::Expr *rightSource, IR::Temp *target) = 0; + virtual void copyValue(IR::Expr *source, IR::Expr *target) = 0; + virtual void swapValues(IR::Expr *source, IR::Expr *target) = 0; + virtual void unop(IR::AluOp oper, IR::Expr *source, IR::Expr *target) = 0; + virtual void binop(IR::AluOp oper, IR::Expr *leftSource, IR::Expr *rightSource, IR::Expr *target) = 0; protected: - virtual void callBuiltin(IR::Call *c, IR::Temp *result); + virtual void callBuiltin(IR::Call *c, IR::Expr *result); IR::Function *_function; // subclass needs to set }; |