Refactor ecma value to store pointers directly in ecma values rather than compressing them.

JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
Zoltan Herczeg
2016-04-15 11:35:51 -07:00
parent bb665336d4
commit e92ecd44e7
4 changed files with 110 additions and 119 deletions
+2 -2
View File
@@ -1766,7 +1766,7 @@ jerry_run (jerry_api_value_t *error_value_p) /**< [out] error value */
ecma_value_t error_value;
jerry_completion_code_t ret_code = vm_run_global (&error_value);
error_value &= ~(1u << ECMA_VALUE_ERROR_POS);
error_value &= ~ECMA_VALUE_ERROR_FLAG;
jerry_api_convert_ecma_value_to_api_value (error_value_p, error_value);
ecma_free_value (error_value);
@@ -2385,7 +2385,7 @@ jerry_exec_snapshot (const void *snapshot_p, /**< snapshot */
if (ret_code == JERRY_COMPLETION_CODE_UNHANDLED_EXCEPTION)
{
JERRY_ASSERT (ecma_is_value_error (error_value));
error_value = error_value & ~(1u << ECMA_VALUE_ERROR_POS);
error_value = error_value & ~ECMA_VALUE_ERROR_FLAG;
ecma_free_value (error_value);
}
else