Remove support for per-instruction memory statistics
The new CBC interpreter does not support it anymore, thus removing related code. (As a side-effect, `jerry_flag_t` has been refactored from `uint32_t` and associated defines to an enum.) JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
This commit is contained in:
+1
-4
@@ -141,11 +141,8 @@ vm_op_set_value (ecma_value_t object, /**< base object */
|
||||
* Initialize interpreter.
|
||||
*/
|
||||
void
|
||||
vm_init (ecma_compiled_code_t *program_p, /**< pointer to byte-code data */
|
||||
bool dump_mem_stats) /**< dump per-instruction memory usage change statistics */
|
||||
vm_init (ecma_compiled_code_t *program_p) /**< pointer to byte-code data */
|
||||
{
|
||||
JERRY_ASSERT (!dump_mem_stats);
|
||||
|
||||
JERRY_ASSERT (__program == NULL);
|
||||
|
||||
__program = program_p;
|
||||
|
||||
+1
-1
@@ -192,7 +192,7 @@ typedef enum
|
||||
VM_EXEC_CONSTRUCT, /**< construct a new object */
|
||||
} vm_call_operation;
|
||||
|
||||
extern void vm_init (ecma_compiled_code_t *, bool);
|
||||
extern void vm_init (ecma_compiled_code_t *);
|
||||
extern void vm_finalize (void);
|
||||
extern jerry_completion_code_t vm_run_global (ecma_object_t **);
|
||||
extern ecma_value_t vm_run_eval (ecma_compiled_code_t *, bool);
|
||||
|
||||
Reference in New Issue
Block a user