зеркало из https://github.com/mozilla/pjs.git
fixed testcase and icodemap size
This commit is contained in:
Родитель
54a4ef139a
Коммит
7ba55fdebd
|
@ -144,13 +144,13 @@ main (int , char **)
|
|||
//testUInt32 (icp, "12123687213612873621873438754387934657834", 0);
|
||||
|
||||
string src =
|
||||
"some_label: \
|
||||
LOAD_STRING R1, 'hello' \
|
||||
CAST R2, R1, 'any' \
|
||||
SAVE_NAME 'x', R2 \
|
||||
LOAD_NAME R1, 'x' \
|
||||
LOAD_NAME R2, 'print' \
|
||||
CALL R3, R2, <NaR>, (R1) \
|
||||
"some_label: \
|
||||
LOAD_STRING R1, 'hello' \
|
||||
CAST R2, R1, 'any' \
|
||||
SAVE_NAME 'x', R2 \
|
||||
LOAD_NAME R1, 'x' \
|
||||
LOAD_NAME R2, 'print' \
|
||||
CALL R3, R2, <NaR>, ('foo':R1) \
|
||||
RETURN R3";
|
||||
|
||||
testParse (icp, src);
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
namespace JavaScript {
|
||||
namespace ICodeASM {
|
||||
|
||||
static uint icodemap_size = 5;
|
||||
static uint icodemap_size = 6;
|
||||
|
||||
static struct {
|
||||
char *name;
|
||||
|
|
|
@ -144,13 +144,13 @@ main (int , char **)
|
|||
//testUInt32 (icp, "12123687213612873621873438754387934657834", 0);
|
||||
|
||||
string src =
|
||||
"some_label: \
|
||||
LOAD_STRING R1, 'hello' \
|
||||
CAST R2, R1, 'any' \
|
||||
SAVE_NAME 'x', R2 \
|
||||
LOAD_NAME R1, 'x' \
|
||||
LOAD_NAME R2, 'print' \
|
||||
CALL R3, R2, <NaR>, (R1) \
|
||||
"some_label: \
|
||||
LOAD_STRING R1, 'hello' \
|
||||
CAST R2, R1, 'any' \
|
||||
SAVE_NAME 'x', R2 \
|
||||
LOAD_NAME R1, 'x' \
|
||||
LOAD_NAME R2, 'print' \
|
||||
CALL R3, R2, <NaR>, ('foo':R1) \
|
||||
RETURN R3";
|
||||
|
||||
testParse (icp, src);
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
namespace JavaScript {
|
||||
namespace ICodeASM {
|
||||
|
||||
static uint icodemap_size = 5;
|
||||
static uint icodemap_size = 6;
|
||||
|
||||
static struct {
|
||||
char *name;
|
||||
|
|
Загрузка…
Ссылка в новой задаче