jerryscript icon indicating copy to clipboard operation
jerryscript copied to clipboard

Faster debug version

Open seanshpark opened this issue 11 years ago • 4 comments

As new eval has landed, one small problem is that debug version execution has became very slow. Can there be some level of checking so that it might be somewhat faster for debugging?

seanshpark avatar Jun 14 '15 23:06 seanshpark

It seems like rcs_chunked_list_t::get_prev() and rcs_chunked_list_t::get_next() are called too many times in debug mode. The prominent caller of them are assert_node_is_correct() and assert_list_is_correct().

ILyoan avatar Jun 15 '15 04:06 ILyoan

/CC @sand1k

ruben-ayrapetyan avatar Jun 15 '15 13:06 ruben-ayrapetyan

Surrouned code of assert_list_is_correct(), assert_node_is_correct() and rcs_recordset_t::assert_state_is_correct() with #ifdef JERRY_HEAVY_DEBUG ... #endif, so that this checks run only for unit tests. Pull request #193 performs the update.

sand1k avatar Jun 15 '15 14:06 sand1k

Nice!

seanshpark avatar Jun 15 '15 23:06 seanshpark