@@ -170,39 +170,39 @@ parser_flush_cbc (parser_context_t *context_p) /**< context */
170170 name_p = cbc_ext_names [PARSER_GET_EXT_OPCODE (context_p -> last_cbc_opcode )];
171171 }
172172
173- printf (" [%3d] %s" , (int ) context_p -> stack_depth , name_p );
173+ jerry_port_console (" [%3d] %s" , (int ) context_p -> stack_depth , name_p );
174174
175175 if (flags & (CBC_HAS_LITERAL_ARG | CBC_HAS_LITERAL_ARG2 ))
176176 {
177177 uint16_t literal_index = context_p -> last_cbc .literal_index ;
178178 lexer_literal_t * literal_p = PARSER_GET_LITERAL (literal_index );
179- printf (" idx:%d->" , literal_index );
179+ jerry_port_console (" idx:%d->" , literal_index );
180180 util_print_literal (literal_p );
181181 }
182182
183183 if (flags & CBC_HAS_LITERAL_ARG2 )
184184 {
185185 uint16_t literal_index = context_p -> last_cbc .value ;
186186 lexer_literal_t * literal_p = PARSER_GET_LITERAL (literal_index );
187- printf (" idx:%d->" , literal_index );
187+ jerry_port_console (" idx:%d->" , literal_index );
188188 util_print_literal (literal_p );
189189
190190 if (!(flags & CBC_HAS_LITERAL_ARG ))
191191 {
192192 literal_index = context_p -> last_cbc .third_literal_index ;
193193
194194 lexer_literal_t * literal_p = PARSER_GET_LITERAL (literal_index );
195- printf (" idx:%d->" , literal_index );
195+ jerry_port_console (" idx:%d->" , literal_index );
196196 util_print_literal (literal_p );
197197 }
198198 }
199199
200200 if (flags & CBC_HAS_BYTE_ARG )
201201 {
202- printf (" byte_arg:%d" , (int ) context_p -> last_cbc .value );
202+ jerry_port_console (" byte_arg:%d" , (int ) context_p -> last_cbc .value );
203203 }
204204
205- printf ("\n" );
205+ jerry_port_console ("\n" );
206206 }
207207#endif /* PARSER_DUMP_BYTE_CODE */
208208
@@ -327,7 +327,7 @@ parser_emit_cbc_push_number (parser_context_t *context_p, /**< context */
327327 real_value = - real_value ;
328328 }
329329
330- printf (" [%3d] %s number:%d\n" , (int ) context_p -> stack_depth , cbc_names [opcode ], real_value );
330+ jerry_port_console (" [%3d] %s number:%d\n" , (int ) context_p -> stack_depth , cbc_names [opcode ], real_value );
331331 }
332332#endif /* PARSER_DUMP_BYTE_CODE */
333333
@@ -391,11 +391,11 @@ parser_emit_cbc_forward_branch (parser_context_t *context_p, /**< context */
391391 {
392392 if (extra_byte_code_increase == 0 )
393393 {
394- printf (" [%3d] %s\n" , (int ) context_p -> stack_depth , cbc_names [opcode ]);
394+ jerry_port_console (" [%3d] %s\n" , (int ) context_p -> stack_depth , cbc_names [opcode ]);
395395 }
396396 else
397397 {
398- printf (" [%3d] %s\n" , (int ) context_p -> stack_depth , cbc_ext_names [opcode ]);
398+ jerry_port_console (" [%3d] %s\n" , (int ) context_p -> stack_depth , cbc_ext_names [opcode ]);
399399 }
400400 }
401401#endif /* PARSER_DUMP_BYTE_CODE */
@@ -506,7 +506,7 @@ parser_emit_cbc_backward_branch (parser_context_t *context_p, /**< context */
506506#ifdef PARSER_DUMP_BYTE_CODE
507507 if (context_p -> is_show_opcodes )
508508 {
509- printf (" [%3d] %s\n" , (int ) context_p -> stack_depth , name );
509+ jerry_port_console (" [%3d] %s\n" , (int ) context_p -> stack_depth , name );
510510 }
511511#endif /* PARSER_DUMP_BYTE_CODE */
512512
0 commit comments