Browse files

[now] refactor the underlying function names and tweak 'make aot'

  • Loading branch information...
1 parent 2a67dcf commit 88519387366d44f11b1cbd4cf8915d71e3022f2e @mberends mberends committed Apr 14, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 Makefile
  2. +1 −1 lib/Builtins.cs
  3. +2 −2 lib/CLRBackend.cs
View
2 Makefile
@@ -58,7 +58,7 @@ obj/CLRBackend.exe: $(patsubst %,lib/%,$(csbackend)) obj/Kernel.dll obj/CrossDom
$(CSC) /target:exe /lib:obj /out:obj/CLRBackend.exe /r:Kernel.dll \
/r:CrossDomainReceiver.dll $(patsubst %,lib/%,$(csbackend))
-aot:
+aot: all
mono --aot run/*.dll run/Niecza.exe
test: all
View
2 lib/Builtins.cs
@@ -366,7 +366,7 @@ public class Builtins {
return Kernel.BoxAnyMO(d, Kernel.NumMO);
}
- public static Variable GetNow() {
+ public static Variable GetTimeOfDay() {
long t = DateTime.UtcNow.Ticks;
double d = ((double)(t - 621355968000000000L)) / 10000000.0;
return Kernel.BoxAnyMO(d, Kernel.NumMO);
View
4 lib/CLRBackend.cs
@@ -3182,7 +3182,7 @@ class NamProcessor {
thandlers["prog"] = CpsOp.Sequence;
- thandlers["bif_gettimeofday"] = SimpleB("GetNow");
+ thandlers["bif_gettimeofday"] = SimpleB("GetTimeOfDay");
thandlers["bif_array_constructor"] = SimpleB("ArrayConstructor");
thandlers["bif_numand"] = SimpleB("NumAnd");
thandlers["bif_numor"] = SimpleB("NumOr");
@@ -3211,7 +3211,7 @@ class NamProcessor {
thandlers["bif_mul"] = SimpleB("Mul");
thandlers["bif_divide"] = SimpleB("Divide");
thandlers["bif_not"] = SimpleB("Not");
- thandlers["bif_now"] = SimpleB("GetNow");
+ thandlers["bif_now"] = SimpleB("GetTimeOfDay");
thandlers["bif_negate"] = SimpleB("Negate");
thandlers["bif_chars"] = SimpleB("Chars");
thandlers["bif_substr3"] = SimpleB("Substr3");

0 comments on commit 8851938

Please sign in to comment.