aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-11-16 23:07:10 +0100
committerSimon Hausmann <simon.hausmann@digia.com>2012-11-19 10:28:56 +0100
commitd7416a80faa4e8b32824975b712f6756eda7b18f (patch)
treea3a865df1e636bee34c00ff03d18509b485be28c /main.cpp
parentd6553a206bf3c263159764ab222cb7f43ed1da10 (diff)
Rename Context to ExecutionContext
This is so it'll map to the name used in the ECMAScript spec once the other refactorings are in. Change-Id: I8dcc7ad43b457ce50e7123c57bc4c770bcda8d11 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/main.cpp b/main.cpp
index 12f0bb2a87..1e8acfdaaa 100644
--- a/main.cpp
+++ b/main.cpp
@@ -67,9 +67,9 @@ using namespace QQmlJS::VM;
struct Print: FunctionObject
{
- Print(Context *scope): FunctionObject(scope) {}
+ Print(ExecutionContext *scope): FunctionObject(scope) {}
- virtual void call(Context *ctx)
+ virtual void call(ExecutionContext *ctx)
{
for (unsigned int i = 0; i < ctx->argumentCount; ++i) {
String *s = ctx->argument(i).toString(ctx);
@@ -83,9 +83,9 @@ struct Print: FunctionObject
struct TestHarnessError: FunctionObject
{
- TestHarnessError(Context *scope, bool &errorInTestHarness): FunctionObject(scope), errorOccurred(errorInTestHarness) {}
+ TestHarnessError(ExecutionContext *scope, bool &errorInTestHarness): FunctionObject(scope), errorOccurred(errorInTestHarness) {}
- virtual void call(Context *ctx)
+ virtual void call(ExecutionContext *ctx)
{
errorOccurred = true;
@@ -282,7 +282,7 @@ int main(int argc, char *argv[])
case use_moth: {
bool useInterpreter = mode == use_moth;
QQmlJS::VM::ExecutionEngine vm;
- QQmlJS::VM::Context *ctx = vm.rootContext;
+ QQmlJS::VM::ExecutionContext *ctx = vm.rootContext;
QQmlJS::VM::Object *globalObject = vm.globalObject.objectValue();
globalObject->__put__(ctx, vm.identifier(QStringLiteral("print")),