Skip to content

Commit 70a6779

Browse files
author
Roland Takacs
committed
Refactor opcodes-dumper to not use C++ features.
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
1 parent 18d0d8c commit 70a6779

File tree

4 files changed

+786
-764
lines changed

4 files changed

+786
-764
lines changed

jerry-core/parser/js/jsp-early-error.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ jsp_early_error_start_checking_of_prop_names (void)
116116
void
117117
jsp_early_error_add_prop_name (jsp_operand_t op, prop_type pt)
118118
{
119-
JERRY_ASSERT (op.is_string_lit_operand ());
120-
STACK_PUSH (props, create_prop_literal (lit_get_literal_by_cp (op.get_literal ()), pt));
119+
JERRY_ASSERT (jsp_is_string_lit_operand (op));
120+
STACK_PUSH (props, create_prop_literal (lit_get_literal_by_cp (jsp_operand_get_literal (op)), pt));
121121
}
122122

123123
void
@@ -210,14 +210,14 @@ jsp_early_error_check_for_eval_and_arguments_in_strict_mode (jsp_operand_t op, b
210210
{
211211
lit_cpointer_t lit_cp;
212212

213-
if (op.is_string_lit_operand ()
214-
|| op.is_number_lit_operand ())
213+
if (jsp_is_string_lit_operand (op)
214+
|| jsp_is_number_lit_operand (op))
215215
{
216-
lit_cp = op.get_literal ();
216+
lit_cp = jsp_operand_get_literal (op);
217217
}
218-
else if (op.is_identifier_operand ())
218+
else if (jsp_is_identifier_operand (op))
219219
{
220-
lit_cp = op.get_identifier_name ();
220+
lit_cp = jsp_operand_get_identifier_name (op);
221221
}
222222
else
223223
{

0 commit comments

Comments
 (0)