Changeset 36863 in webkit for trunk/JavaScriptCore/API
- Timestamp:
- Sep 24, 2008, 1:38:55 PM (17 years ago)
- Location:
- trunk/JavaScriptCore/API
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSBase.cpp
r36263 r36863 26 26 #include "config.h" 27 27 #include "JSBase.h" 28 #include "JSBasePrivate.h" 28 29 29 30 #include "APICast.h" … … 103 104 // the collector is busy. 104 105 } 106 107 void JSReportExtraMemoryCost(JSContextRef ctx, size_t size) 108 { 109 ExecState* exec = toJS(ctx); 110 exec->globalData().heap->registerThread(); 111 JSLock lock(exec); 112 113 exec->globalData().heap->reportExtraMemoryCost(size); 114 } -
trunk/JavaScriptCore/API/tests/testapi.c
r36784 r36863 25 25 26 26 #include "JavaScriptCore.h" 27 #include "JSBasePrivate.h" 27 28 #include <math.h> 28 29 #include <wtf/Assertions.h> … … 584 585 JSGlobalContextRetain(context); 585 586 JSGlobalContextRelease(context); 587 588 JSReportExtraMemoryCost(context, 0); 589 JSReportExtraMemoryCost(context, 1); 590 JSReportExtraMemoryCost(context, 1024); 586 591 587 592 JSObjectRef globalObject = JSContextGetGlobalObject(context);
Note:
See TracChangeset
for help on using the changeset viewer.