1. remove libunwind from Makefile & source

2. disable thread function in bdwgc
3. remove m_version from ObjectStructure
4. add rawBuffer in TypedArrayObject
5. remove wrong usage of Value::toArrayIndex and Value::toIndex
6. optimize String::tryToUseAsArrayIndex, String::tryToUseAsIndex

Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
seonghyun kim 2017-02-08 21:35:03 +09:00 committed by Young-il Choi
commit 1b044658fc
19 changed files with 221 additions and 203 deletions

View file

@ -70,27 +70,12 @@ NEVER_INLINE bool eval(Escargot::Context* context, Escargot::String* str, Escarg
int main(int argc, char* argv[])
{
// GC_disable();
/*
GC_set_force_unmap_on_gcollect(1);
for (size_t i = 0; i < 96; i ++) {
void* ptr = GC_MALLOC_ATOMIC(1024*1024*i);
printf("%p\n", ptr);
}
GC_gcollect();
GC_gcollect();
GC_gcollect();
GC_gcollect();
GC_gcollect();
*/
Escargot::Heap::initialize();
#ifndef NDEBUG
setbuf(stdout, NULL);
setbuf(stderr, NULL);
#endif
Escargot::Heap::initialize();
Escargot::VMInstance* instance = new Escargot::VMInstance();
Escargot::Context* context = new Escargot::Context(instance);