Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions jerry-core/vm/opcodes-agnostic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ opfunc_is_true_jmp_down (opcode_t opdata, /**< operation data */

if (ecma_is_completion_value_normal_true (to_bool_completion))
{
JERRY_ASSERT (offset != 0 && ((uint32_t) int_data->pos + offset < MAX_OPCODES));
JERRY_ASSERT ((uint32_t) int_data->pos + offset < MAX_OPCODES);
int_data->pos = (opcode_counter_t) (int_data->pos + offset);
}
else
Expand Down Expand Up @@ -73,7 +73,7 @@ opfunc_is_true_jmp_up (opcode_t opdata, /**< operation data */

if (ecma_is_completion_value_normal_true (to_bool_completion))
{
JERRY_ASSERT (offset != 0 && (uint32_t) int_data->pos >= offset);
JERRY_ASSERT ((uint32_t) int_data->pos >= offset);
int_data->pos = (opcode_counter_t) (int_data->pos - offset);
}
else
Expand Down Expand Up @@ -112,7 +112,7 @@ opfunc_is_false_jmp_down (opcode_t opdata, /**< operation data */

if (!ecma_is_completion_value_normal_true (to_bool_completion))
{
JERRY_ASSERT (offset != 0 && ((uint32_t) int_data->pos + offset < MAX_OPCODES));
JERRY_ASSERT ((uint32_t) int_data->pos + offset < MAX_OPCODES);
int_data->pos = (opcode_counter_t) (int_data->pos + offset);
}
else
Expand Down Expand Up @@ -145,7 +145,7 @@ opfunc_is_false_jmp_up (opcode_t opdata, /**< operation data */

if (!ecma_is_completion_value_normal_true (to_bool_completion))
{
JERRY_ASSERT (offset != 0 && (uint32_t) int_data->pos >= offset);
JERRY_ASSERT ((uint32_t) int_data->pos >= offset);
int_data->pos = (opcode_counter_t) (int_data->pos - offset);
}
else
Expand Down Expand Up @@ -173,7 +173,7 @@ opfunc_jmp_down (opcode_t opdata, /**< operation data */
const opcode_counter_t offset = calc_opcode_counter_from_idx_idx (opdata.data.jmp_down.opcode_1,
opdata.data.jmp_down.opcode_2);

JERRY_ASSERT (offset != 0 && ((uint32_t) int_data->pos + offset < MAX_OPCODES));
JERRY_ASSERT (((uint32_t) int_data->pos + offset < MAX_OPCODES));

int_data->pos = (opcode_counter_t) (int_data->pos + offset);

Expand All @@ -192,7 +192,7 @@ opfunc_jmp_up (opcode_t opdata, /**< operation data */
{
const opcode_counter_t offset = calc_opcode_counter_from_idx_idx (opdata.data.jmp_up.opcode_1,
opdata.data.jmp_up.opcode_2);
JERRY_ASSERT (offset != 0 && (uint32_t) int_data->pos >= offset);
JERRY_ASSERT ((uint32_t) int_data->pos >= offset);

int_data->pos = (opcode_counter_t) (int_data->pos - offset);

Expand Down