Renaming ecma_op_number_{add,subtract,multiply,divide} -> ecma_number_{add,subtract,multiply,divide}.

Moving ecma_number_{add,subtract,multiply,divide} to src/libecmaobjects/ecma-helpers-number.c.
Moving abs, sqrt, ln, exp, calculation helpers from src/libecmabuiltins/ecma-builtin-math-object.c to src/libecmaobjects/ecma-helpers-number.c.
This commit is contained in:
Ruben Ayrapetyan
2014-10-20 18:46:43 +04:00
parent a8ed76591a
commit 3eed2d0d4c
8 changed files with 282 additions and 305 deletions
+1 -1
View File
@@ -441,7 +441,7 @@ ecma_op_array_object_define_own_property (ecma_object_t *obj_p, /**< the array o
{
// i., ii.
ecma_number_t *num_p = ecma_alloc_number ();
*num_p = ecma_op_number_add (ecma_uint32_to_number (index), ECMA_NUMBER_ONE);
*num_p = ecma_number_add (ecma_uint32_to_number (index), ECMA_NUMBER_ONE);
ecma_free_value (len_prop_p->u.named_data_property.value, false);
len_prop_p->u.named_data_property.value = ecma_make_number_value (num_p);