diff dmd/backend/iasm.d @ 175:94b6033c07f3

get rid of globals malloc -> GC.malloc
author korDen
date Sun, 10 Oct 2010 03:48:06 +0400
parents af724d3510d7
children fa9a71a9f5a8
line wrap: on
line diff
--- a/dmd/backend/iasm.d	Sun Oct 10 03:47:23 2010 +0400
+++ b/dmd/backend/iasm.d	Sun Oct 10 03:48:06 2010 +0400
@@ -66,8 +66,8 @@
 	__gshared int BPRM;
 }
 
-const(char)*[ASMTK.ASMTKmax] apszAsmtk = [
-	"__LOCAL_SIZE",
+enum const(char)*[ASMTK.ASMTKmax] apszAsmtk = [
+	"__LOCAL_SIZE".ptr,
 	"dword".ptr,
 	"even".ptr,
 	"far".ptr,
@@ -292,9 +292,9 @@
 enum _m512 = _m224;
 enum _sti = CONSTRUCT_FLAGS( 0, _float, 0, _rsti );
 
-REG regFp =	{ "ST", 0, _st };
-
-REG[8] aregFp = [
+__gshared REG regFp =	{ "ST", 0, _st };
+
+enum REG[8] aregFp = [
 	{ "ST(0)", 0, _sti },
 	{ "ST(1)", 1, _sti },
 	{ "ST(2)", 2, _sti },
@@ -1423,7 +1423,7 @@
 
 mixin(BringToCurrentScope!(ASMERRMSGS));
 
-string[] asmerrmsgs =
+enum string[] asmerrmsgs =
 [
     "unknown operand for floating point instruction",
     "bad addr mode",
@@ -4375,7 +4375,7 @@
 		o1.ptype = d.type.toBasetype();
 }
 
-REG[63] regtab = 
+enum REG[63] regtab = 
 [
 	{"AL",	_AL,	_r8 | _al,},
 	{"AH",	_AH,	_r8,},