Seperate original src/heap directory into submodule GCutil and src/heap

Now,
 - GCutil has bdwgc and general GC Utilities (LeakChecker, allocator
         wrapper)
 - src/heap has Escargot-dependent functions (Custom Allocator,
         LeakCheckerBridge for global function support)
This commit is contained in:
Junyoung Cho 2017-02-23 09:57:36 +09:00
commit 0d93c8e2fe
377 changed files with 265 additions and 103899 deletions

View file

@ -97,7 +97,7 @@ void ArrayObject::sort(ExecutionState& state, std::function<bool(const Value& a,
{
if (isFastModeArray()) {
if (getArrayLength(state)) {
std::vector<Value, gc_malloc_ignore_off_page_allocator<Value>> values(&m_fastModeData[0], m_fastModeData.data() + getArrayLength(state));
std::vector<Value, GCUtil::gc_malloc_ignore_off_page_allocator<Value>> values(&m_fastModeData[0], m_fastModeData.data() + getArrayLength(state));
std::sort(values.begin(), values.end(), comp);
for (size_t i = 0; i < values.size(); i++) {
m_fastModeData[i] = values[i];