Replace array of literals with literal storage.

JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin [email protected]
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov [email protected]
This commit is contained in:
Andrey Shitov committed 2015-06-10 21:40:10 +03:00
1 parent 340a9ef002
commit 53801e3b41
36 files changed
+460 -1097

No files matched your search

-5
View File
@@ -16,16 +16,11 @@
#ifndef COMMON_H
#define COMMON_H
#include "literal.h"
#define NAME_TO_ID(op) (__op__idx_##op)
#define __OPCODE_SIZE(name, arg1, arg2, arg3) \
(uint8_t) (sizeof (__op_##name) + 1),
#define LP(s) create_literal_from_str_compute_len (s)
#define NUM(s) create_literal_from_num (s)
static uint8_t opcode_sizes[] =
{
OP_LIST (OPCODE_SIZE)