Esempio n. 1
0
void Double::codeGen(CodeGenContext& context)
{
    if (debug)
        std::cout << "Creating double: " << m_value << endl;
    int ref_id = context.add_constant(m_value);
    context.vpush_constant(ref_id);
}
Esempio n. 2
0
void String::codeGen(CodeGenContext &context)
{
    int ref_id = context.add_constant(&m_value);
    context.vpush_constant(ref_id);
}