Ignore:
Timestamp:
Oct 28, 2014, 12:17:38 PM (5 years ago)
Author:
nmedfort
Message:

Implemented slab allocator based on the original Parabix StringPool?; intergrated it with RE and Pablo AST nodes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pe_ones.h

    r4248 r4272  
    3131    }
    3232protected:
    33     Ones()
    34     : PabloAST(ClassTypeId::Ones)
    35     {
    36 
     33    void* operator new (std::size_t size) noexcept {
     34        return mAllocator.allocate(size);
    3735    }
     36    Ones() : PabloAST(ClassTypeId::Ones) { }
    3837};
    3938
Note: See TracChangeset for help on using the changeset viewer.