diff options
Diffstat (limited to 'JavaScriptCore/jsc.cpp')
-rw-r--r-- | JavaScriptCore/jsc.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/JavaScriptCore/jsc.cpp b/JavaScriptCore/jsc.cpp index 252fb96..ae47d55 100644 --- a/JavaScriptCore/jsc.cpp +++ b/JavaScriptCore/jsc.cpp @@ -79,7 +79,7 @@ static JSValue JSC_HOST_CALL functionRun(ExecState*, JSObject*, JSValue, const A static JSValue JSC_HOST_CALL functionLoad(ExecState*, JSObject*, JSValue, const ArgList&); static JSValue JSC_HOST_CALL functionCheckSyntax(ExecState*, JSObject*, JSValue, const ArgList&); static JSValue JSC_HOST_CALL functionReadline(ExecState*, JSObject*, JSValue, const ArgList&); -static NO_RETURN JSValue JSC_HOST_CALL functionQuit(ExecState*, JSObject*, JSValue, const ArgList&); +static NO_RETURN_WITH_VALUE JSValue JSC_HOST_CALL functionQuit(ExecState*, JSObject*, JSValue, const ArgList&); #if ENABLE(SAMPLING_FLAGS) static JSValue JSC_HOST_CALL functionSetSamplingFlags(ExecState*, JSObject*, JSValue, const ArgList&); @@ -177,7 +177,7 @@ JSValue JSC_HOST_CALL functionPrint(ExecState* exec, JSObject*, JSValue, const A if (i) putchar(' '); - printf("%s", args.at(i).toString(exec).UTF8String().c_str()); + printf("%s", args.at(i).toString(exec).UTF8String().data()); } putchar('\n'); @@ -187,7 +187,7 @@ JSValue JSC_HOST_CALL functionPrint(ExecState* exec, JSObject*, JSValue, const A JSValue JSC_HOST_CALL functionDebug(ExecState* exec, JSObject*, JSValue, const ArgList& args) { - fprintf(stderr, "--> %s\n", args.at(0).toString(exec).UTF8String().c_str()); + fprintf(stderr, "--> %s\n", args.at(0).toString(exec).UTF8String().data()); return jsUndefined(); } @@ -346,7 +346,7 @@ int main(int argc, char** argv) // We can't use destructors in the following code because it uses Windows // Structured Exception Handling int res = 0; - JSGlobalData* globalData = JSGlobalData::create().releaseRef(); + JSGlobalData* globalData = JSGlobalData::create(ThreadStackTypeLarge).releaseRef(); TRY res = jscmain(argc, argv, globalData); EXCEPT(res = 3) @@ -445,7 +445,7 @@ static void runInteractive(GlobalObject* globalObject) if (completion.complType() == Throw) printf("Exception: %s\n", completion.value().toString(globalObject->globalExec()).ascii()); else - printf("%s\n", completion.value().toString(globalObject->globalExec()).UTF8String().c_str()); + printf("%s\n", completion.value().toString(globalObject->globalExec()).UTF8String().data()); globalObject->globalExec()->clearException(); } @@ -535,9 +535,9 @@ int jscmain(int argc, char** argv, JSGlobalData* globalData) static bool fillBufferWithContentsOfFile(const UString& fileName, Vector<char>& buffer) { - FILE* f = fopen(fileName.UTF8String().c_str(), "r"); + FILE* f = fopen(fileName.UTF8String().data(), "r"); if (!f) { - fprintf(stderr, "Could not open file: %s\n", fileName.UTF8String().c_str()); + fprintf(stderr, "Could not open file: %s\n", fileName.UTF8String().data()); return false; } |