Changeset 217011 in webkit
- Timestamp:
- May 17, 2017, 4:13:29 PM (8 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r217000 r217011 1 2017-05-17 Don Olmstead <don.olmstead@am.sony.com> 2 3 [Win] Support $vm.getpid() 4 https://bugs.webkit.org/show_bug.cgi?id=172248 5 6 Reviewed by Mark Lam. 7 8 * tools/JSDollarVMPrototype.cpp: 9 (JSC::functionGetPID): 10 (JSC::JSDollarVMPrototype::finishCreation): 11 1 12 2017-05-17 Michael Saboff <msaboff@apple.com> 2 13 -
trunk/Source/JavaScriptCore/tools/JSDollarVMPrototype.cpp
r216218 r217011 36 36 #include "StackVisitor.h" 37 37 #include <wtf/DataLog.h> 38 #include <wtf/ProcessID.h> 38 39 #include <wtf/StringPrintStream.h> 39 40 … … 439 440 } 440 441 441 #if !PLATFORM(WIN)442 442 static EncodedJSValue JSC_HOST_CALL functionGetPID(ExecState*) 443 443 { 444 return JSValue::encode(jsNumber(getpid())); 445 } 446 #endif 444 return JSValue::encode(jsNumber(getCurrentProcessID())); 445 } 447 446 448 447 void JSDollarVMPrototype::finishCreation(VM& vm, JSGlobalObject* globalObject) … … 470 469 471 470 addFunction(vm, globalObject, "value", functionValue, 1); 472 #if !PLATFORM(WIN)473 471 addFunction(vm, globalObject, "getpid", functionGetPID, 0); 474 #endif475 472 } 476 473
Note:
See TracChangeset
for help on using the changeset viewer.