Changeset 183872 in webkit for trunk/Source/JavaScriptCore/jsc.cpp
- Timestamp:
- May 6, 2015, 9:50:19 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jsc.cpp
r183847 r183872 448 448 static EncodedJSValue JSC_HOST_CALL functionFullGC(ExecState*); 449 449 static EncodedJSValue JSC_HOST_CALL functionEdenGC(ExecState*); 450 static EncodedJSValue JSC_HOST_CALL functionHeapSize(ExecState*);451 450 static EncodedJSValue JSC_HOST_CALL functionDeleteAllCompiledCode(ExecState*); 452 451 #ifndef NDEBUG … … 587 586 addFunction(vm, "fullGC", functionFullGC, 0); 588 587 addFunction(vm, "edenGC", functionEdenGC, 0); 589 addFunction(vm, "gcHeapSize", functionHeapSize, 0);590 588 addFunction(vm, "deleteAllCompiledCode", functionDeleteAllCompiledCode, 0); 591 589 #ifndef NDEBUG … … 834 832 JSLockHolder lock(exec); 835 833 exec->heap()->collectAllGarbage(); 836 return JSValue::encode(js Number(exec->heap()->sizeAfterLastFullCollection()));834 return JSValue::encode(jsUndefined()); 837 835 } 838 836 … … 841 839 JSLockHolder lock(exec); 842 840 exec->heap()->collect(FullCollection); 843 return JSValue::encode(js Number(exec->heap()->sizeAfterLastFullCollection()));841 return JSValue::encode(jsUndefined()); 844 842 } 845 843 … … 848 846 JSLockHolder lock(exec); 849 847 exec->heap()->collect(EdenCollection); 850 return JSValue::encode(jsNumber(exec->heap()->sizeAfterLastEdenCollection())); 851 } 852 853 EncodedJSValue JSC_HOST_CALL functionHeapSize(ExecState* exec) 854 { 855 JSLockHolder lock(exec); 856 return JSValue::encode(jsNumber(exec->heap()->size())); 848 return JSValue::encode(jsUndefined()); 857 849 } 858 850
Note:
See TracChangeset
for help on using the changeset viewer.