-
Notifications
You must be signed in to change notification settings - Fork 684
Instantiation of Arguments object #102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
3a9bf24
e984bc3
cb600da
b1a31c8
ed4ff8e
d4537eb
77df022
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2383,11 +2383,27 @@ dump_variable_declaration (literal_index_t lit_id) | |
serializer_dump_op_meta (create_op_meta_100 (opcode, lit_id)); | ||
} | ||
|
||
void | ||
dump_strict_mode_header (void) | ||
opcode_counter_t | ||
dump_scope_code_flags_for_rewrite (void) | ||
{ | ||
const opcode_t opcode = getop_meta (OPCODE_META_TYPE_STRICT_CODE, INVALID_VALUE, INVALID_VALUE); | ||
opcode_counter_t oc = serializer_get_current_opcode_counter (); | ||
|
||
const opcode_t opcode = getop_meta (OPCODE_META_TYPE_SCOPE_CODE_FLAGS, INVALID_VALUE, INVALID_VALUE); | ||
serializer_dump_op_meta (create_op_meta_000 (opcode)); | ||
|
||
return oc; | ||
} | ||
|
||
void | ||
rewrite_scope_code_flags (opcode_counter_t scope_code_flags_oc, | ||
opcode_scope_code_flags_t scope_flags) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing comments on parameters and about the method. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, I'll add. |
||
{ | ||
JERRY_ASSERT ((idx_t) scope_flags == scope_flags); | ||
|
||
op_meta opm = serializer_get_op_meta (scope_code_flags_oc); | ||
JERRY_ASSERT (opm.op.op_idx == OPCODE (meta)); | ||
opm.op.data.meta.data_1 = (idx_t) scope_flags; | ||
serializer_rewrite_op_meta (scope_code_flags_oc, opm); | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. missing |
||
|
||
void | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing
/* dump_scope_code_flags_for_rewrite */