Introducing and implementing 'throw' and 'try' opcode handlers.

This commit is contained in:
Ruben Ayrapetyan
2014-08-28 18:57:34 +04:00
parent 647f6b3c67
commit ddb2e6e9d5
6 changed files with 255 additions and 15 deletions
+4 -4
View File
@@ -901,12 +901,12 @@ rewrite_meta_opcode_counter (opcode_meta_type type,
{
JERRY_STATIC_ASSERT (sizeof (idx_t) == 1);
const idx_t data_1 = (idx_t) (new_value >> JERRY_BITSINBYTE);
const idx_t data_2 = (idx_t) (new_value & ((1 << JERRY_BITSINBYTE) - 1));
const idx_t oc_idx_1 = (idx_t) (new_value >> JERRY_BITSINBYTE);
const idx_t oc_idx_2 = (idx_t) (new_value & ((1 << JERRY_BITSINBYTE) - 1));
JERRY_ASSERT (new_value == calc_meta_opcode_counter_from_meta_data (data_1, data_2));
JERRY_ASSERT (new_value == calc_opcode_counter_from_idx_idx (oc_idx_1, oc_idx_2));
REWRITE_OPCODE_3 (meta_oc, meta, type, data_1, data_2);
REWRITE_OPCODE_3 (meta_oc, meta, type, oc_idx_1, oc_idx_2);
}
/* function_declaration