diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-11-03 15:23:05 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-09 02:01:17 +0100 |
commit | 412eb94de4cae754130ae855236420ebd5c42482 (patch) | |
tree | 901af6051691c65a96abe3f69fcd3d5fc57ff80a /src/qml/jsruntime/qv4booleanobject.cpp | |
parent | e367f75d7285d2bcd10cbb35d088c96f33c02aff (diff) |
Simplify & speed up function calling
Get rid of the SimpleCallContext, instead simply
use the CallContext data structure, but don't
initialize the unused variables.
Change-Id: I11b311986da180c62c815b516a2c55844156d0ab
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4booleanobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4booleanobject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4booleanobject.cpp b/src/qml/jsruntime/qv4booleanobject.cpp index d9de6d9fba..a0d0027e5f 100644 --- a/src/qml/jsruntime/qv4booleanobject.cpp +++ b/src/qml/jsruntime/qv4booleanobject.cpp @@ -77,7 +77,7 @@ void BooleanPrototype::init(ExecutionEngine *engine, ObjectRef ctor) defineDefaultProperty(engine->id_valueOf, method_valueOf); } -ReturnedValue BooleanPrototype::method_toString(SimpleCallContext *ctx) +ReturnedValue BooleanPrototype::method_toString(CallContext *ctx) { bool result; if (ctx->callData->thisObject.isBoolean()) { @@ -93,7 +93,7 @@ ReturnedValue BooleanPrototype::method_toString(SimpleCallContext *ctx) return Encode(ctx->engine->newString(QLatin1String(result ? "true" : "false"))); } -ReturnedValue BooleanPrototype::method_valueOf(SimpleCallContext *ctx) +ReturnedValue BooleanPrototype::method_valueOf(CallContext *ctx) { if (ctx->callData->thisObject.isBoolean()) return ctx->callData->thisObject.asReturnedValue(); |