@@ -76,9 +76,9 @@ ecma_op_create_arguments_object (vm_frame_ctx_shared_args_t *shared_p, /**< shar
76
76
ecma_unmapped_arguments_t * arguments_p = (ecma_unmapped_arguments_t * ) obj_p ;
77
77
78
78
arguments_p -> header .u .cls .type = ECMA_OBJECT_CLASS_ARGUMENTS ;
79
- arguments_p -> header .u .cls . u1 . arguments_flags = ECMA_ARGUMENTS_OBJECT_NO_FLAGS ;
80
- arguments_p -> header .u .cls . u2 .formal_params_number = formal_params_number ;
81
- arguments_p -> header .u .cls . u3 . arguments_number = 0 ;
79
+ arguments_p -> header .u .clz . arguments . flags = ECMA_ARGUMENTS_OBJECT_NO_FLAGS ;
80
+ arguments_p -> header .u .clz . arguments .formal_params_number = formal_params_number ;
81
+ arguments_p -> header .u .clz . arguments . number = 0 ;
82
82
arguments_p -> callee = ecma_make_object_value (func_obj_p );
83
83
84
84
ecma_value_t * argv_p = (ecma_value_t * ) (((uint8_t * ) obj_p ) + object_size );
@@ -93,19 +93,19 @@ ecma_op_create_arguments_object (vm_frame_ctx_shared_args_t *shared_p, /**< shar
93
93
argv_p [i ] = ECMA_VALUE_UNDEFINED ;
94
94
}
95
95
96
- arguments_p -> header .u .cls . u3 . arguments_number = shared_p -> arg_list_len ;
96
+ arguments_p -> header .u .clz . arguments . number = shared_p -> arg_list_len ;
97
97
98
98
if (bytecode_data_p -> status_flags & CBC_CODE_FLAGS_MAPPED_ARGUMENTS_NEEDED )
99
99
{
100
100
ecma_mapped_arguments_t * mapped_arguments_p = (ecma_mapped_arguments_t * ) obj_p ;
101
101
102
102
ECMA_SET_INTERNAL_VALUE_POINTER (mapped_arguments_p -> lex_env , lex_env_p );
103
- arguments_p -> header .u .cls . u1 . arguments_flags |= ECMA_ARGUMENTS_OBJECT_MAPPED ;
103
+ arguments_p -> header .u .clz . arguments . flags |= ECMA_ARGUMENTS_OBJECT_MAPPED ;
104
104
105
105
#if JERRY_SNAPSHOT_EXEC
106
106
if (bytecode_data_p -> status_flags & CBC_CODE_FLAGS_STATIC_FUNCTION )
107
107
{
108
- arguments_p -> header .u .cls . u1 . arguments_flags |= ECMA_ARGUMENTS_OBJECT_STATIC_BYTECODE ;
108
+ arguments_p -> header .u .clz . arguments . flags |= ECMA_ARGUMENTS_OBJECT_STATIC_BYTECODE ;
109
109
mapped_arguments_p -> u .byte_code_p = (ecma_compiled_code_t * ) bytecode_data_p ;
110
110
}
111
111
else
@@ -166,15 +166,15 @@ ecma_op_arguments_object_define_own_property (ecma_object_t *object_p, /**< the
166
166
ecma_value_t ret_value = ecma_op_general_object_define_own_property (object_p , property_name_p , property_desc_p );
167
167
168
168
if (ECMA_IS_VALUE_ERROR (ret_value )
169
- || !(((ecma_extended_object_t * ) object_p )-> u .cls . u1 . arguments_flags & ECMA_ARGUMENTS_OBJECT_MAPPED ))
169
+ || !(((ecma_extended_object_t * ) object_p )-> u .clz . arguments . flags & ECMA_ARGUMENTS_OBJECT_MAPPED ))
170
170
{
171
171
return ret_value ;
172
172
}
173
173
174
174
ecma_mapped_arguments_t * mapped_arguments_p = (ecma_mapped_arguments_t * ) object_p ;
175
175
uint32_t index = ecma_string_get_array_index (property_name_p );
176
176
177
- if (index >= mapped_arguments_p -> unmapped .header .u .cls . u2 .formal_params_number )
177
+ if (index >= mapped_arguments_p -> unmapped .header .u .clz . arguments .formal_params_number )
178
178
{
179
179
return ret_value ;
180
180
}
@@ -228,8 +228,8 @@ ecma_op_arguments_object_try_to_lazy_instantiate_property (ecma_object_t *object
228
228
ecma_value_t * argv_p = (ecma_value_t * ) (arguments_p + 1 );
229
229
ecma_property_value_t * prop_value_p ;
230
230
ecma_property_t * prop_p ;
231
- uint32_t arguments_number = arguments_p -> header .u .cls . u3 . arguments_number ;
232
- uint8_t flags = arguments_p -> header .u .cls . u1 . arguments_flags ;
231
+ uint32_t arguments_number = arguments_p -> header .u .clz . arguments . number ;
232
+ uint8_t flags = arguments_p -> header .u .clz . arguments . flags ;
233
233
234
234
if (flags & ECMA_ARGUMENTS_OBJECT_MAPPED )
235
235
{
@@ -327,35 +327,35 @@ ecma_op_arguments_delete_built_in_property (ecma_object_t *object_p, /**< the ob
327
327
328
328
if (ecma_compare_ecma_string_to_magic_id (property_name_p , LIT_MAGIC_STRING_LENGTH ))
329
329
{
330
- JERRY_ASSERT (!(arguments_p -> header .u .cls . u1 . arguments_flags & ECMA_ARGUMENTS_OBJECT_LENGTH_INITIALIZED ));
330
+ JERRY_ASSERT (!(arguments_p -> header .u .clz . arguments . flags & ECMA_ARGUMENTS_OBJECT_LENGTH_INITIALIZED ));
331
331
332
- arguments_p -> header .u .cls . u1 . arguments_flags |= ECMA_ARGUMENTS_OBJECT_LENGTH_INITIALIZED ;
332
+ arguments_p -> header .u .clz . arguments . flags |= ECMA_ARGUMENTS_OBJECT_LENGTH_INITIALIZED ;
333
333
return ;
334
334
}
335
335
336
336
if (ecma_compare_ecma_string_to_magic_id (property_name_p , LIT_MAGIC_STRING_CALLEE ))
337
337
{
338
- JERRY_ASSERT (!(arguments_p -> header .u .cls . u1 . arguments_flags & ECMA_ARGUMENTS_OBJECT_CALLEE_INITIALIZED ));
339
- JERRY_ASSERT (arguments_p -> header .u .cls . u1 . arguments_flags & ECMA_ARGUMENTS_OBJECT_MAPPED );
338
+ JERRY_ASSERT (!(arguments_p -> header .u .clz . arguments . flags & ECMA_ARGUMENTS_OBJECT_CALLEE_INITIALIZED ));
339
+ JERRY_ASSERT (arguments_p -> header .u .clz . arguments . flags & ECMA_ARGUMENTS_OBJECT_MAPPED );
340
340
341
- arguments_p -> header .u .cls . u1 . arguments_flags |= ECMA_ARGUMENTS_OBJECT_CALLEE_INITIALIZED ;
341
+ arguments_p -> header .u .clz . arguments . flags |= ECMA_ARGUMENTS_OBJECT_CALLEE_INITIALIZED ;
342
342
return ;
343
343
}
344
344
345
345
if (ecma_prop_name_is_symbol (property_name_p ))
346
346
{
347
- JERRY_ASSERT (!(arguments_p -> header .u .cls . u1 . arguments_flags & ECMA_ARGUMENTS_OBJECT_ITERATOR_INITIALIZED ));
347
+ JERRY_ASSERT (!(arguments_p -> header .u .clz . arguments . flags & ECMA_ARGUMENTS_OBJECT_ITERATOR_INITIALIZED ));
348
348
JERRY_ASSERT (ecma_op_compare_string_to_global_symbol (property_name_p , LIT_GLOBAL_SYMBOL_ITERATOR ));
349
349
350
- arguments_p -> header .u .cls . u1 . arguments_flags |= ECMA_ARGUMENTS_OBJECT_ITERATOR_INITIALIZED ;
350
+ arguments_p -> header .u .clz . arguments . flags |= ECMA_ARGUMENTS_OBJECT_ITERATOR_INITIALIZED ;
351
351
return ;
352
352
}
353
353
354
354
uint32_t index = ecma_string_get_array_index (property_name_p );
355
355
356
356
ecma_value_t * argv_p = (ecma_value_t * ) (arguments_p + 1 );
357
357
358
- if (arguments_p -> header .u .cls . u1 . arguments_flags & ECMA_ARGUMENTS_OBJECT_MAPPED )
358
+ if (arguments_p -> header .u .clz . arguments . flags & ECMA_ARGUMENTS_OBJECT_MAPPED )
359
359
{
360
360
argv_p = (ecma_value_t * ) (((ecma_mapped_arguments_t * ) object_p ) + 1 );
361
361
}
@@ -378,8 +378,8 @@ ecma_op_arguments_object_list_lazy_property_names (ecma_object_t *obj_p, /**< ar
378
378
379
379
ecma_unmapped_arguments_t * arguments_p = (ecma_unmapped_arguments_t * ) obj_p ;
380
380
381
- uint32_t arguments_number = arguments_p -> header .u .cls . u3 . arguments_number ;
382
- uint8_t flags = arguments_p -> header .u .cls . u1 . arguments_flags ;
381
+ uint32_t arguments_number = arguments_p -> header .u .clz . arguments . number ;
382
+ uint8_t flags = arguments_p -> header .u .clz . arguments . flags ;
383
383
384
384
if (!(filter & JERRY_PROPERTY_FILTER_EXCLUDE_INTEGER_INDICES ))
385
385
{
@@ -434,13 +434,13 @@ ecma_op_arguments_object_get_formal_parameter (ecma_mapped_arguments_t *mapped_a
434
434
* object */
435
435
uint32_t index ) /**< formal parameter index */
436
436
{
437
- JERRY_ASSERT (mapped_arguments_p -> unmapped .header .u .cls . u1 . arguments_flags & ECMA_ARGUMENTS_OBJECT_MAPPED );
438
- JERRY_ASSERT (index < mapped_arguments_p -> unmapped .header .u .cls . u2 .formal_params_number );
437
+ JERRY_ASSERT (mapped_arguments_p -> unmapped .header .u .clz . arguments . flags & ECMA_ARGUMENTS_OBJECT_MAPPED );
438
+ JERRY_ASSERT (index < mapped_arguments_p -> unmapped .header .u .clz . arguments .formal_params_number );
439
439
440
440
ecma_compiled_code_t * byte_code_p ;
441
441
442
442
#if JERRY_SNAPSHOT_EXEC
443
- if (mapped_arguments_p -> unmapped .header .u .cls . u1 . arguments_flags & ECMA_ARGUMENTS_OBJECT_STATIC_BYTECODE )
443
+ if (mapped_arguments_p -> unmapped .header .u .clz . arguments . flags & ECMA_ARGUMENTS_OBJECT_STATIC_BYTECODE )
444
444
{
445
445
byte_code_p = mapped_arguments_p -> u .byte_code_p ;
446
446
}
0 commit comments