diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2013-08-15 10:36:41 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-08-15 13:56:07 +0200 |
commit | 4b0765da3e2842612ed5464bb750505f0d355b87 (patch) | |
tree | dc19ee6b99956619337280ce1db3c1c230cf74be /src/qml/compiler/qv4isel_p.h | |
parent | 2aee966baa76f55d9061ed22af7bb0abe4f3541e (diff) |
Prepare MASM for better runtime string handling
Keep the run-time functions as-is by taking String pointers and use a little
bit of inline assembly to resolve the string ids to string pointers, by
adding a runtimeStrings array pointer next to the lookups in the context
(similar mechanism).
Change-Id: Ib5a70bdf47fef7c447d646ccfe03f3dc30d39f20
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4isel_p.h')
-rw-r--r-- | src/qml/compiler/qv4isel_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4isel_p.h b/src/qml/compiler/qv4isel_p.h index ef0cd06969..1e1d72d0ec 100644 --- a/src/qml/compiler/qv4isel_p.h +++ b/src/qml/compiler/qv4isel_p.h @@ -69,14 +69,14 @@ public: void setUseFastLookups(bool b) { useFastLookups = b; } + int stringId(const QString &str) { return jsUnitGenerator.registerString(str); } + protected: QV4::Function *createFunctionMapping(QV4::Function *outer, V4IR::Function *irFunction); QV4::ExecutionEngine *engine() const { return _engine; } virtual void run(QV4::Function *vmFunction, V4IR::Function *function) = 0; virtual QV4::CompiledData::CompilationUnit *backendCompileStep() { return 0; } - int stringId(const QString &str) { return jsUnitGenerator.registerString(str); } - private: QV4::ExecutionEngine *_engine; protected: |