diff options
author | Lars Knoll <[email protected]> | 2014-03-10 19:58:05 +0100 |
---|---|---|
committer | The Qt Project <[email protected]> | 2014-03-11 08:37:01 +0100 |
commit | 8ed6c62dc76ebc2e510ecc028c34c160018af86c (patch) | |
tree | 335e73bcdb52b1a8300a67c1f91299e7bc97972a /src/qml/jsruntime/qv4arrayobject.cpp | |
parent | dfed088a50298fe4a9d0eb8a9d0a2711dfc206c1 (diff) |
Cleanup our runtime methods
Move all our runtime methods into the QV4::Runtime
struct and give them nicer names without underscores.
Sort them logically and remove a few unused methods.
Change-Id: Ib69b71764ff194d0ba211aac581f9a99734d8180
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4arrayobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4arrayobject.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4arrayobject.cpp b/src/qml/jsruntime/qv4arrayobject.cpp index 3d710d2338..d5b3b8a651 100644 --- a/src/qml/jsruntime/qv4arrayobject.cpp +++ b/src/qml/jsruntime/qv4arrayobject.cpp @@ -605,7 +605,7 @@ ReturnedValue ArrayPrototype::method_indexOf(CallContext *ctx) for (uint k = fromIndex; k < len; ++k) { bool exists; v = instance->getIndexed(k, &exists); - if (exists && __qmljs_strict_equal(v, searchValue)) + if (exists && RuntimeHelpers::strictEqual(v, searchValue)) return Encode(k); } return Encode(-1); @@ -620,7 +620,7 @@ ReturnedValue ArrayPrototype::method_indexOf(CallContext *ctx) value = instance->getIndexed(i, &exists); if (scope.hasException()) return Encode::undefined(); - if (exists && __qmljs_strict_equal(value, searchValue)) + if (exists && RuntimeHelpers::strictEqual(value, searchValue)) return Encode(i); } } else if (!instance->arrayData) { @@ -637,7 +637,7 @@ ReturnedValue ArrayPrototype::method_indexOf(CallContext *ctx) value = *val; if (scope.hasException()) return Encode::undefined(); - if (__qmljs_strict_equal(value, searchValue)) + if (RuntimeHelpers::strictEqual(value, searchValue)) return Encode((uint)(val - instance->arrayData->data)); } ++val; @@ -686,7 +686,7 @@ ReturnedValue ArrayPrototype::method_lastIndexOf(CallContext *ctx) v = instance->getIndexed(k, &exists); if (scope.hasException()) return Encode::undefined(); - if (exists && __qmljs_strict_equal(v, searchValue)) + if (exists && RuntimeHelpers::strictEqual(v, searchValue)) return Encode(k); } return Encode(-1); |