src/compiler/HIR.cpp
changeset 212 443d24cfdf2d
parent 209 5cbec15fadfe
child 215 b8f650a441a5
     1.1 --- a/src/compiler/HIR.cpp	Sat Nov 17 23:13:39 2012 -0800
     1.2 +++ b/src/compiler/HIR.cpp	Sun Nov 18 14:53:23 2012 -0800
     1.3 @@ -44,6 +44,7 @@
     1.4      void visitLocal(HLocal *local);
     1.5      void visitGlobal(HGlobal *global);
     1.6      void visitConvert(HConvert *convert);
     1.7 +    void visitIndex(HIndex *index);
     1.8  
     1.9    private:
    1.10      Zone *zone_;
    1.11 @@ -151,6 +152,13 @@
    1.12  }
    1.13  
    1.14  void
    1.15 +HIRTranslator::visitIndex(HIndex *index)
    1.16 +{
    1.17 +    index->bind(this, emitter_);
    1.18 +    index->load(emitter_);
    1.19 +}
    1.20 +
    1.21 +void
    1.22  HIRTranslator::visitGlobal(HGlobal *global)
    1.23  {
    1.24      __ getglobal(global->sym());