From 8ed6c62dc76ebc2e510ecc028c34c160018af86c Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 10 Mar 2014 19:58:05 +0100 Subject: 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 --- src/qml/jsruntime/qv4arrayobject.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/qml/jsruntime/qv4arrayobject.cpp') 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); -- cgit v1.2.3