diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-02 14:25:15 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-02 17:27:36 +0200 |
commit | ea0ea907edbe7dd0c65f10752d7df1de6f0fd63b (patch) | |
tree | c9e0641d43cd19dfc3ad022c34e196592e22a6cb /src/qml/jsruntime/qv4engine_p.h | |
parent | 6359ab63cd9c730a168e8b8da4c275e2d03d25d5 (diff) |
Optimize String.replace and RegExp.exec
This speeds up the v8 regexp benchmark by a factor 2.5 :)
Change-Id: Ibd6b18ee28181aa712429cbec4598984e0c69820
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4engine_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4engine_p.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4engine_p.h b/src/qml/jsruntime/qv4engine_p.h index 857079a48f..b7b27a48f9 100644 --- a/src/qml/jsruntime/qv4engine_p.h +++ b/src/qml/jsruntime/qv4engine_p.h @@ -163,6 +163,8 @@ struct Q_QML_EXPORT ExecutionEngine InternalClass *protoClass; InternalClass *regExpClass; + InternalClass *regExpExecArrayClass; + InternalClass *errorClass; InternalClass *evalErrorClass; InternalClass *rangeErrorClass; @@ -206,6 +208,8 @@ struct Q_QML_EXPORT ExecutionEngine String *id_eval; String *id_uintMax; String *id_name; + String *id_index; + String *id_input; QSet<CompiledData::CompilationUnit*> compilationUnits; QMap<quintptr, QV4::Function*> allFunctions; @@ -257,6 +261,7 @@ struct Q_QML_EXPORT ExecutionEngine ArrayObject *newArrayObject(int count = 0); ArrayObject *newArrayObject(const QStringList &list); + ArrayObject *newArrayObject(InternalClass *ic); DateObject *newDateObject(const Value &value); DateObject *newDateObject(const QDateTime &dt); |