mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
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:
parent
ce64bf505f
commit
0d93c8e2fe
377 changed files with 265 additions and 103899 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue