Reduce number of operand type handling conditional blocks in byte-code dumper, by extracting them to several separate routines that can be used for most cases, remove getop_* routines from vm.
JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
This commit is contained in:
@@ -24,10 +24,17 @@
|
||||
#include "lit-id-hash-table.h"
|
||||
#include "lit-literal.h"
|
||||
|
||||
/**
|
||||
* Intermediate instruction descriptor that additionally to byte-code instruction
|
||||
* holds information about literals, associated with corresponding arguments
|
||||
* of the instruction.
|
||||
*/
|
||||
typedef struct
|
||||
{
|
||||
lit_cpointer_t lit_id[3];
|
||||
vm_instr_t op;
|
||||
lit_cpointer_t lit_id[3]; /**< literals, corresponding to arguments
|
||||
* (NOT_A_LITERAL - if not literal is associated
|
||||
* with corresponding argument) */
|
||||
vm_instr_t op; /**< byte-code instruction */
|
||||
} op_meta;
|
||||
|
||||
typedef struct tree_header
|
||||
|
||||
Reference in New Issue
Block a user