Nuttx build support.
This commit is contained in:
@@ -139,9 +139,9 @@ ecma_gc_is_object_visited (ecma_object_t *object_p) /**< object */
|
||||
{
|
||||
JERRY_ASSERT (object_p != NULL);
|
||||
|
||||
bool flag_value = jrt_extract_bit_field (object_p->container,
|
||||
ECMA_OBJECT_GC_VISITED_POS,
|
||||
ECMA_OBJECT_GC_VISITED_WIDTH);
|
||||
bool flag_value = (bool) jrt_extract_bit_field (object_p->container,
|
||||
ECMA_OBJECT_GC_VISITED_POS,
|
||||
ECMA_OBJECT_GC_VISITED_WIDTH);
|
||||
|
||||
return (flag_value != ecma_gc_visited_flip_flag);
|
||||
} /* ecma_gc_is_object_visited */
|
||||
|
||||
@@ -322,7 +322,7 @@ ecma_init_ecma_string_from_lit_index (ecma_string_t *string_p, /**< descriptor t
|
||||
JERRY_ASSERT (lit.type == LIT_STR);
|
||||
|
||||
string_p->refs = 1;
|
||||
string_p->is_stack_var = is_stack_var;
|
||||
string_p->is_stack_var = (is_stack_var != 0);
|
||||
string_p->container = ECMA_STRING_CONTAINER_LIT_TABLE;
|
||||
string_p->hash = lit.data.lp.hash;
|
||||
|
||||
@@ -345,7 +345,7 @@ ecma_init_ecma_string_from_magic_string_id (ecma_string_t *string_p, /**< descri
|
||||
#endif /* !JERRY_NDEBUG */
|
||||
|
||||
string_p->refs = 1;
|
||||
string_p->is_stack_var = is_stack_var;
|
||||
string_p->is_stack_var = (is_stack_var != 0);
|
||||
string_p->container = ECMA_STRING_CONTAINER_MAGIC_STRING;
|
||||
string_p->hash = ecma_chars_buffer_calc_hash_last_chars (ecma_get_magic_string_zt (magic_string_id),
|
||||
ecma_magic_string_lengths [magic_string_id]);
|
||||
|
||||
@@ -187,9 +187,9 @@ ecma_is_lexical_environment (const ecma_object_t *object_p) /**< object or lexic
|
||||
{
|
||||
JERRY_ASSERT (object_p != NULL);
|
||||
|
||||
return jrt_extract_bit_field (object_p->container,
|
||||
ECMA_OBJECT_IS_LEXICAL_ENVIRONMENT_POS,
|
||||
ECMA_OBJECT_IS_LEXICAL_ENVIRONMENT_WIDTH);
|
||||
return (bool) jrt_extract_bit_field (object_p->container,
|
||||
ECMA_OBJECT_IS_LEXICAL_ENVIRONMENT_POS,
|
||||
ECMA_OBJECT_IS_LEXICAL_ENVIRONMENT_WIDTH);
|
||||
} /* ecma_is_lexical_environment */
|
||||
|
||||
/**
|
||||
@@ -201,9 +201,9 @@ ecma_get_object_extensible (const ecma_object_t *object_p) /**< object */
|
||||
JERRY_ASSERT (object_p != NULL);
|
||||
JERRY_ASSERT (!ecma_is_lexical_environment (object_p));
|
||||
|
||||
return jrt_extract_bit_field (object_p->container,
|
||||
ECMA_OBJECT_OBJ_EXTENSIBLE_POS,
|
||||
ECMA_OBJECT_OBJ_EXTENSIBLE_WIDTH);
|
||||
return (bool) jrt_extract_bit_field (object_p->container,
|
||||
ECMA_OBJECT_OBJ_EXTENSIBLE_POS,
|
||||
ECMA_OBJECT_OBJ_EXTENSIBLE_WIDTH);
|
||||
} /* ecma_get_object_extensible */
|
||||
|
||||
/**
|
||||
@@ -1170,11 +1170,11 @@ ecma_set_property_lcached (ecma_property_t *prop_p, /**< property */
|
||||
|
||||
if (prop_p->type == ECMA_PROPERTY_NAMEDDATA)
|
||||
{
|
||||
prop_p->u.named_data_property.is_lcached = is_lcached;
|
||||
prop_p->u.named_data_property.is_lcached = (is_lcached != 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
prop_p->u.named_accessor_property.is_lcached = is_lcached;
|
||||
prop_p->u.named_accessor_property.is_lcached = (is_lcached != 0);
|
||||
}
|
||||
} /* ecma_set_property_lcached */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user