diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-04-05 16:23:22 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-04-05 20:39:09 +0200 |
commit | 3b73dd08e0cb705dc57f6cce8b528c36aad40bcc (patch) | |
tree | 6a8feac3b99b719d91f95d2660ba5bdd6168c6a4 /src/v4/qv4stringobject.cpp | |
parent | 8da2e2af2634fbba0920a6296ad470c491ae00f7 (diff) |
Move arguments out of ExecutionContext and into CallContext
Change-Id: Ic826e3e71eac9171fa113dec79db7c69982f2386
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/v4/qv4stringobject.cpp')
-rw-r--r-- | src/v4/qv4stringobject.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/v4/qv4stringobject.cpp b/src/v4/qv4stringobject.cpp index d2046fc956..7195d160b4 100644 --- a/src/v4/qv4stringobject.cpp +++ b/src/v4/qv4stringobject.cpp @@ -400,7 +400,7 @@ static QString makeReplacementString(const QString &input, const QString& replac return result; } -Value StringPrototype::method_replace(ExecutionContext *ctx) +Value StringPrototype::method_replace(CallContext *ctx) { QString string; if (StringObject *thisString = ctx->thisObject.asStringObject()) @@ -488,7 +488,7 @@ Value StringPrototype::method_replace(ExecutionContext *ctx) return Value::fromString(ctx, result); } -Value StringPrototype::method_search(ExecutionContext *ctx) +Value StringPrototype::method_search(CallContext *ctx) { QString string; if (StringObject *thisString = ctx->thisObject.asStringObject()) @@ -509,7 +509,7 @@ Value StringPrototype::method_search(ExecutionContext *ctx) return Value::fromUInt32(result); } -Value StringPrototype::method_slice(ExecutionContext *ctx) +Value StringPrototype::method_slice(CallContext *ctx) { const QString text = getThisString(ctx); const double length = text.length(); @@ -535,7 +535,7 @@ Value StringPrototype::method_slice(ExecutionContext *ctx) return Value::fromString(ctx, text.mid(intStart, count)); } -Value StringPrototype::method_split(ExecutionContext *ctx) +Value StringPrototype::method_split(CallContext *ctx) { QString text; if (StringObject *thisObject = ctx->thisObject.asStringObject()) @@ -676,24 +676,24 @@ Value StringPrototype::method_substring(ExecutionContext *parentCtx, Value thisO return Value::fromString(parentCtx, value.mid(x, y)); } -Value StringPrototype::method_toLowerCase(ExecutionContext *ctx) +Value StringPrototype::method_toLowerCase(CallContext *ctx) { QString value = getThisString(ctx); return Value::fromString(ctx, value.toLower()); } -Value StringPrototype::method_toLocaleLowerCase(ExecutionContext *ctx) +Value StringPrototype::method_toLocaleLowerCase(CallContext *ctx) { return method_toLowerCase(ctx); } -Value StringPrototype::method_toUpperCase(ExecutionContext *ctx) +Value StringPrototype::method_toUpperCase(CallContext *ctx) { QString value = getThisString(ctx); return Value::fromString(ctx, value.toUpper()); } -Value StringPrototype::method_toLocaleUpperCase(ExecutionContext *ctx) +Value StringPrototype::method_toLocaleUpperCase(CallContext *ctx) { return method_toUpperCase(ctx); } @@ -709,7 +709,7 @@ Value StringPrototype::method_fromCharCode(ExecutionContext *parentCtx, Value, V return Value::fromString(parentCtx, str); } -Value StringPrototype::method_trim(ExecutionContext *ctx) +Value StringPrototype::method_trim(CallContext *ctx) { if (ctx->thisObject.isNull() || ctx->thisObject.isUndefined()) ctx->throwTypeError(); |