diff options
author | Erik Verbruggen <erik.verbruggen@qt.io> | 2017-06-22 12:59:13 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-06-29 08:32:15 +0000 |
commit | 193e2782bd2306b035a7991ba4d878d856c572ca (patch) | |
tree | 2204a33414a6bdaf4218220b48c563b1ce3ef93a /src/qml/compiler/qv4codegen_p.h | |
parent | e049377f366dad8f42a3a632be5b347b7f7b4af2 (diff) |
Remove MoveConst and put constants in Param
Change-Id: I7a289dff5cacc23c238e79e44eb96c690691da3b
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4codegen_p.h')
-rw-r--r-- | src/qml/compiler/qv4codegen_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4codegen_p.h b/src/qml/compiler/qv4codegen_p.h index 9f13bee4cf..dbce9fb2a5 100644 --- a/src/qml/compiler/qv4codegen_p.h +++ b/src/qml/compiler/qv4codegen_p.h @@ -234,7 +234,7 @@ public: void writeBack() const; void load(uint temp) const; - QV4::Moth::Param base; + mutable QV4::Moth::Param base; union { uint nameIndex; QV4::Moth::Param subscript; @@ -482,6 +482,7 @@ protected: int registerString(const QString &name) { return jsUnitGenerator->registerString(name); } + int registerConstant(QV4::ReturnedValue v) { return jsUnitGenerator->registerConstant(v); } uint registerGetterLookup(int nameIndex) { return jsUnitGenerator->registerGetterLookup(nameIndex); } uint registerSetterLookup(int nameIndex) { return jsUnitGenerator->registerSetterLookup(nameIndex); } uint registerGlobalGetterLookup(int nameIndex) { return jsUnitGenerator->registerGlobalGetterLookup(nameIndex); } |