Creating ecma-stack frames in run_int_from_pos.

This commit is contained in:
Ruben Ayrapetyan
2015-01-12 20:52:04 +03:00
parent b843167b91
commit 917ebe4a83
3 changed files with 15 additions and 3 deletions
+4 -1
View File
@@ -1,4 +1,4 @@
/* Copyright 2014 Samsung Electronics Co., Ltd.
/* Copyright 2014-2015 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -18,6 +18,7 @@
#include "ecma-gc.h"
#include "ecma-lcache.h"
#include "ecma-operations.h"
#include "ecma-stack.h"
#include "mem-allocator.h"
/** \addtogroup ecma ECMA
@@ -36,6 +37,7 @@ ecma_init (void)
ecma_strings_init ();
ecma_init_builtins ();
ecma_lcache_init ();
ecma_stack_init ();
mem_register_a_try_give_memory_back_callback (ecma_try_to_give_back_some_memory);
} /* ecma_init */
@@ -48,6 +50,7 @@ ecma_finalize (void)
{
mem_unregister_a_try_give_memory_back_callback (ecma_try_to_give_back_some_memory);
ecma_stack_finalize ();
ecma_finalize_builtins ();
ecma_lcache_invalidate_all ();
ecma_gc_run (ECMA_GC_GEN_COUNT - 1);