Commit graph

394 commits

Author SHA1 Message Date
Andreas Rumpf
87e52bddbe Merge pull request #3949 from oderwat/hara-php-addr
Try to fix addr() ref and pointer for PHP
2016-03-10 13:39:32 +01:00
Hans Raaf
060a820d62 Try to fix addr() ref and pointer for PHP 2016-03-08 16:16:21 +01:00
Hans Raaf
5450c944d7 Fix für PHP codegen integer modulo calculation. 2016-03-07 20:08:58 +01:00
Hans Raaf
eda113889c Fix for integer division in PHP codegen. 2016-03-06 02:16:31 +01:00
Hans Raaf
11d40e8e8b Fix for PHP function pointer implementation. 2016-03-06 01:02:22 +01:00
Andreas Rumpf
b02e31e409 PHP codegen: function pointers work 2016-03-05 17:55:51 +01:00
Andreas Rumpf
749ce2f36a Merge pull request #3934 from oderwat/php-fix-defer
Fix for defer in PHP Codegen.
2016-03-05 00:28:20 +01:00
Hans Raaf
3cc5614d97 Partial fix for defer in PHP Codegen. 2016-03-04 23:14:11 +01:00
Andreas Rumpf
92cf673f37 PHP codegen: use nimAt for PHP 5.3 compatibility 2016-03-04 21:59:58 +01:00
Yuriy Glukhov
1b4fc744db Fixed bad JS codegen for new json with tables. Added json to JS tests. 2016-02-29 17:53:52 +02:00
Andreas Rumpf
b893e0dbf5 no name mangling for PHP fields 2016-02-29 14:55:12 +01:00
Andreas Rumpf
6d2fd0c9f1 php codegen: name mangling bugfix 2016-02-26 23:50:34 +01:00
Andreas Rumpf
696ddbd93b PHP codegen generates reliable filenames 2016-02-26 14:48:56 +01:00
Andreas Rumpf
0fa2ed30e0 PHP codegen can generate foo->bar accesses 2016-02-08 01:57:37 +01:00
Andreas Rumpf
e67124ca80 makes tints.nim test compile 2016-02-08 01:40:02 +01:00
Hans Raaf
2522ac9133 Made the test tints.nim work for the PHP codegen (uint shifts and
casts).
2016-02-07 18:01:13 +01:00
Hans Raaf
e66f5c419c Corrected (unsigned) shr for PHP Codegen 2016-02-07 05:22:32 +01:00
Hans Raaf
bb3fe1493d Better code and fix for JS regression. 2016-02-07 04:31:15 +01:00
Hans Raaf
a6460e2c91 Fix für Char to String in PHP. 2016-02-07 01:49:13 +01:00
Hans Raaf
fa6692f33f Fix tuple field access in PHP. 2016-02-07 01:49:06 +01:00
Hans Raaf
e737b47ee1 Fix for index check in PHP code. 2016-02-07 00:30:21 +01:00
Hans Raaf
77235947c1 Fix for shr with PHP (using >>) 2016-02-07 00:08:10 +01:00
Andreas Rumpf
8ec7c0af20 php-codegen fixes 2016-02-06 19:58:28 +01:00
Andreas Rumpf
bf6e0ad01a more JS regressions fixed 2016-02-06 15:39:56 +01:00
Andreas Rumpf
d3cb1bedfa fixes JS codegen regressions 2016-02-06 15:39:56 +01:00
Andreas Rumpf
4686f485a6 cleaner toArray magic 2016-02-06 15:39:56 +01:00
Andreas Rumpf
9b44ca17c2 PHP codegen can generate PHP classes 2016-02-06 15:39:56 +01:00
Andreas Rumpf
35567a1eb9 first version of an PHP codegen 2016-02-06 15:39:56 +01:00
Yuriy Glukhov
d148fdab5c Prefer JS typed arrays for arrays. 2016-02-03 15:48:01 +02:00
Andreas Rumpf
e12e29a3e3 Merge pull request #3760 from yglukhov/js-unicode-2
Fixed unicode strings in JS. Second try.
2016-01-22 22:13:49 +01:00
Andreas Rumpf
fa12a2188d Merge pull request #3762 from yglukhov/isnil-fix
Fixed isNil codegen in JS
2016-01-22 22:08:14 +01:00
Yuriy Glukhov
8dbe9ea3ab Fixed isNil codegen in JS 2016-01-22 19:54:53 +02:00
Yuriy Glukhov
d2ecd84f67 JS: Corrected shift operators. Made casting between ints behave like C does. 2016-01-22 18:32:47 +02:00
Yuriy Glukhov
c3d09aeeac Fixed unicode strings in JS 2016-01-22 11:24:00 +02:00
Yuriy Glukhov
5f092520d1 Revert "Fixed unicode handling in JS. Fixes #3714." 2016-01-21 22:26:50 +02:00
Andreas Rumpf
1dac302975 Merge pull request #3754 from yglukhov/js-unsigned
Unsigned arith corrected for JS
2016-01-21 16:28:03 +01:00
Yuriy Glukhov
c0d0e5efd9 Unsigned arith corrected for JS 2016-01-21 17:00:42 +02:00
Yuriy Glukhov
8fab2f81e3 Fixed unicode handling in JS. Fixes #3714. 2016-01-18 13:30:21 +02:00
Yuriy Glukhov
ab79c36169 Use real JS bool literals instead of 1 and 0. Fixes #3722. 2016-01-17 10:44:04 +02:00
Andreas Rumpf
c1627354d1 first implementation of the new lambda-lifting pass; barely anything works 2015-12-26 00:42:30 +01:00
Yuriy Glukhov
955954a89f Gen temp name instead of nimVarUnpack 2015-10-15 17:50:06 +03:00
Yuriy Glukhov
2166b7bc46 Fixed ret by var in js 2015-10-15 16:04:53 +03:00
Yuriy Glukhov
49869a2b10 when nimvm stmt proof of concept 2015-09-04 20:50:29 +03:00
Yuriy Glukhov
a66b968d3b Fixed passing byvar 2015-08-25 15:47:34 +03:00
Andreas Rumpf
87072a7afb Merge pull request #3233 from yglukhov/parsefloat-js-magic
Fixed nimParseBiggestFloat magic in JS
2015-08-21 21:26:10 +02:00
Yuriy Glukhov
dadf036a70 Fixed nimParseBiggestFloat magic in JS 2015-08-21 21:31:00 +03:00
Yuriy Glukhov
a5be556a4c Untyped pointers godegen changed. addr expression fixed. 2015-08-21 13:29:25 +03:00
Andreas Rumpf
2f25e74c9f Merge pull request #3147 from yglukhov/js-emit
Emit pragma support for JS backend.
2015-08-02 11:06:13 +02:00
Araq
beca7ded1b fixes #3144 2015-07-26 21:07:11 +02:00
Yuriy Glukhov
21e7e7c895 Emit pragma support for JS backend. 2015-07-25 22:33:53 -07:00