Changeset 2794fff


Ignore:
Timestamp:
Jul 15, 2015, 3:14:14 PM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
893256d
Parents:
145f1fc
Message:

started adding some of the basic code for constructors and destructors

Location:
src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    r145f1fc r2794fff  
    238238             
    239239                                  case OT_CALL:
    240                                         // there are no intrinsic definitions of the function call operator
     240                                  case OT_CTOR:
     241                                  case OT_DTOR:
     242                                        // there are no intrinsic definitions of the function call operator or constructors or destructors
    241243                                        assert( false );
    242244                                        break;
  • src/CodeGen/OperatorTable.cc

    r145f1fc r2794fff  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jun 23 17:41:14 2015
    13 // Update Count     : 5
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Wed Jun 24 16:17:34 2015
     13// Update Count     : 7
    1414//
    1515
     
    2121                const OperatorInfo tableValues[] = {
    2222                        {       "?[?]",         "",             "_operator_index",                              OT_INDEX                        },
     23                        {       "?{}",          "",             "_constructor",                                 OT_CTOR                         },
     24                        {       "-?{}",         "",             "_destructor",                                  OT_DTOR                         }, // -?{}, !?{}, $?{}, ??{}, ?destroy, ?delete
    2325                        {       "?()",          "",             "_operator_call",                               OT_CALL                         },
    2426                        {       "?++",          "++",   "_operator_postincr",                   OT_POSTFIXASSIGN        },
  • src/CodeGen/OperatorTable.h

    r145f1fc r2794fff  
    99// Author           : Richard C. Bilson
    1010// Created On       : Mon May 18 07:44:20 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jun 23 16:09:27 2015
    13 // Update Count     : 3
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Wed Jun 24 16:17:57 2015
     13// Update Count     : 5
    1414//
    1515
     
    2222        enum OperatorType {
    2323                OT_INDEX,
     24                OT_CTOR,
     25                OT_DTOR,
    2426                OT_CALL,
    2527                OT_PREFIX,
  • src/MakeLibCfa.cc

    r145f1fc r2794fff  
    99// Author           : Richard C. Bilson
    1010// Created On       : Sat May 16 10:33:33 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jun 26 16:52:59 2015
    13 // Update Count     : 14
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Fri Jul 03 18:11:37 2015
     13// Update Count     : 18
    1414//
    1515
     
    7777                                break;
    7878                        }
     79                  case CodeGen::OT_CTOR:
     80                  case CodeGen::OT_DTOR:
    7981                  case CodeGen::OT_CONSTANT:
    8082                  case CodeGen::OT_LABELADDRESS:
  • src/Parser/ParseNode.h

    r145f1fc r2794fff  
    99// Author           : Rodolfo G. Esteves
    1010// Created On       : Sat May 16 13:28:16 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Jul  2 17:57:05 2015
    13 // Update Count     : 84
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Fri Jul 03 18:11:50 2015
     13// Update Count     : 85
    1414//
    1515
     
    162162                                Assign, MulAssn, DivAssn, ModAssn, PlusAssn, MinusAssn, LSAssn, RSAssn, AndAssn,
    163163                                ERAssn, OrAssn, Index, FieldSel, PFieldSel, Range,
    164                                 UnPlus, UnMinus, AddressOf, PointTo, Neg, BitNeg, Incr, IncrPost, Decr, DecrPost, LabelAddress
     164                                UnPlus, UnMinus, AddressOf, PointTo, Neg, BitNeg, Incr, IncrPost, Decr, DecrPost, LabelAddress,
     165                                Ctor, Dtor,
    165166        };
    166167
Note: See TracChangeset for help on using the changeset viewer.