Changeset 43122 in webkit for trunk/JavaScriptCore/jsc.cpp
- Timestamp:
- May 1, 2009, 3:43:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jsc.cpp
r43047 r43122 69 69 static bool fillBufferWithContentsOfFile(const UString& fileName, Vector<char>& buffer); 70 70 71 static JSValue Ptr functionPrint(ExecState*, JSObject*, JSValuePtr, const ArgList&);72 static JSValue Ptr functionDebug(ExecState*, JSObject*, JSValuePtr, const ArgList&);73 static JSValue Ptr functionGC(ExecState*, JSObject*, JSValuePtr, const ArgList&);74 static JSValue Ptr functionVersion(ExecState*, JSObject*, JSValuePtr, const ArgList&);75 static JSValue Ptr functionRun(ExecState*, JSObject*, JSValuePtr, const ArgList&);76 static JSValue Ptr functionLoad(ExecState*, JSObject*, JSValuePtr, const ArgList&);77 static JSValue Ptr functionReadline(ExecState*, JSObject*, JSValuePtr, const ArgList&);78 static NO_RETURN JSValue Ptr functionQuit(ExecState*, JSObject*, JSValuePtr, const ArgList&);71 static JSValue functionPrint(ExecState*, JSObject*, JSValue, const ArgList&); 72 static JSValue functionDebug(ExecState*, JSObject*, JSValue, const ArgList&); 73 static JSValue functionGC(ExecState*, JSObject*, JSValue, const ArgList&); 74 static JSValue functionVersion(ExecState*, JSObject*, JSValue, const ArgList&); 75 static JSValue functionRun(ExecState*, JSObject*, JSValue, const ArgList&); 76 static JSValue functionLoad(ExecState*, JSObject*, JSValue, const ArgList&); 77 static JSValue functionReadline(ExecState*, JSObject*, JSValue, const ArgList&); 78 static NO_RETURN JSValue functionQuit(ExecState*, JSObject*, JSValue, const ArgList&); 79 79 80 80 #if ENABLE(SAMPLING_FLAGS) 81 static JSValue Ptr functionSetSamplingFlag(ExecState*, JSObject*, JSValuePtr, const ArgList&);82 static JSValue Ptr functionClearSamplingFlag(ExecState*, JSObject*, JSValuePtr, const ArgList&);81 static JSValue functionSetSamplingFlag(ExecState*, JSObject*, JSValue, const ArgList&); 82 static JSValue functionClearSamplingFlag(ExecState*, JSObject*, JSValue, const ArgList&); 83 83 #endif 84 84 … … 197 197 } 198 198 199 JSValue Ptr functionPrint(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)199 JSValue functionPrint(ExecState* exec, JSObject*, JSValue, const ArgList& args) 200 200 { 201 201 for (unsigned i = 0; i < args.size(); ++i) { … … 211 211 } 212 212 213 JSValue Ptr functionDebug(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)213 JSValue functionDebug(ExecState* exec, JSObject*, JSValue, const ArgList& args) 214 214 { 215 215 fprintf(stderr, "--> %s\n", args.at(0).toString(exec).UTF8String().c_str()); … … 217 217 } 218 218 219 JSValue Ptr functionGC(ExecState* exec, JSObject*, JSValuePtr, const ArgList&)219 JSValue functionGC(ExecState* exec, JSObject*, JSValue, const ArgList&) 220 220 { 221 221 JSLock lock(false); … … 224 224 } 225 225 226 JSValue Ptr functionVersion(ExecState*, JSObject*, JSValuePtr, const ArgList&)226 JSValue functionVersion(ExecState*, JSObject*, JSValue, const ArgList&) 227 227 { 228 228 // We need this function for compatibility with the Mozilla JS tests but for now … … 231 231 } 232 232 233 JSValue Ptr functionRun(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)233 JSValue functionRun(ExecState* exec, JSObject*, JSValue, const ArgList& args) 234 234 { 235 235 StopWatch stopWatch; … … 248 248 } 249 249 250 JSValue Ptr functionLoad(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)250 JSValue functionLoad(ExecState* exec, JSObject*, JSValue, const ArgList& args) 251 251 { 252 252 UString fileName = args.at(0).toString(exec); … … 263 263 264 264 #if ENABLE(SAMPLING_FLAGS) 265 JSValue Ptr functionSetSamplingFlag(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)265 JSValue functionSetSamplingFlag(ExecState* exec, JSObject*, JSValue, const ArgList& args) 266 266 { 267 267 unsigned flag = static_cast<unsigned>(args.at(0).toNumber(exec)); … … 278 278 } 279 279 280 JSValue Ptr functionClearSamplingFlag(ExecState* exec, JSObject*, JSValuePtr, const ArgList& args)280 JSValue functionClearSamplingFlag(ExecState* exec, JSObject*, JSValue, const ArgList& args) 281 281 { 282 282 unsigned flag = static_cast<unsigned>(args.at(0).toNumber(exec)); … … 294 294 #endif 295 295 296 JSValue Ptr functionReadline(ExecState* exec, JSObject*, JSValuePtr, const ArgList&)296 JSValue functionReadline(ExecState* exec, JSObject*, JSValue, const ArgList&) 297 297 { 298 298 Vector<char, 256> line; … … 308 308 } 309 309 310 JSValue Ptr functionQuit(ExecState* exec, JSObject*, JSValuePtr, const ArgList&)310 JSValue functionQuit(ExecState* exec, JSObject*, JSValue, const ArgList&) 311 311 { 312 312 cleanupGlobalData(&exec->globalData());
Note:
See TracChangeset
for help on using the changeset viewer.