Basic string literal & value support

git-svn-id: svn://10.0.0.236/trunk@68461 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rogerl%netscape.com
2000-05-05 23:22:31 +00:00
parent ea28ffcd73
commit eb993faee7
10 changed files with 70 additions and 2 deletions

View File

@@ -146,6 +146,14 @@ namespace ICG {
return dest;
}
Register ICodeGenerator::loadString(String &value)
{
Register dest = getRegister();
LoadString *instr = new LoadString(dest, &value);
iCode->push_back(instr);
return dest;
}
Register ICodeGenerator::newObject()
{
Register dest = getRegister();