diff options
author | Karl Berry <karl@freefriends.org> | 2012-05-31 00:02:26 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-05-31 00:02:26 +0000 |
commit | 19fc9fd9a26973d87fad437ce549ffaba479df54 (patch) | |
tree | f40a9d2592b3cf827970c8bf54a1eebf9cc8f9c0 /Build/source/utils/asymptote/stm.cc | |
parent | 24b3bac312553b2cc61e94fda581aba311967f5c (diff) |
asy 2.16 sources
git-svn-id: svn://tug.org/texlive/trunk@26734 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/stm.cc')
-rw-r--r-- | Build/source/utils/asymptote/stm.cc | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/Build/source/utils/asymptote/stm.cc b/Build/source/utils/asymptote/stm.cc index d4ffdaa4e81..af7a0c1d47f 100644 --- a/Build/source/utils/asymptote/stm.cc +++ b/Build/source/utils/asymptote/stm.cc @@ -184,12 +184,7 @@ void ifStm::trans(coenv &e) label elseLabel = e.c.fwdLabel(); label end = e.c.fwdLabel(); -#ifdef TRANSJUMP test->transConditionalJump(e, false, elseLabel); -#else - test->transToType(e, types::primBoolean()); - e.c.useLabel(inst::njmp,elseLabel); -#endif onTrue->markTrans(e); @@ -217,7 +212,7 @@ void transLoopBody(coenv &e, stm *body) { // for (int i = 0; i < 10; ++i) { // int j=10*i; // if (i == 5) - // f = new int() { return j; } + // f = new int() { return j; }; // } // write(f()); // @@ -266,12 +261,7 @@ void whileStm::trans(coenv &e) label start = e.c.defNewLabel(); e.c.pushLoop(start, end); -#ifdef TRANSJUMP test->transConditionalJump(e, false, end); -#else - test->transToType(e, types::primBoolean()); - e.c.useLabel(inst::njmp,end); -#endif transLoopBody(e,body); @@ -302,12 +292,7 @@ void doStm::trans(coenv &e) e.c.defLabel(testLabel); -#ifdef TRANSJUMP test->transConditionalJump(e, true, start); -#else - test->transToType(e, types::primBoolean()); - e.c.useLabel(inst::cjmp,start); -#endif e.c.defLabel(end); @@ -338,12 +323,7 @@ void forStm::trans(coenv &e) label start = e.c.defNewLabel(); if(test) { -#ifdef TRANSJUMP test->transConditionalJump(e, false, end); -#else - test->transToType(e, types::primBoolean()); - e.c.useLabel(inst::njmp,end); -#endif } transLoopBody(e,body); |