comparison gen/llvmhelpers.h @ 440:d8dc221d3db7

Insert array bound checks for slices.
author Christian Kamm <kamm incasoftware de>
date Wed, 30 Jul 2008 19:02:13 +0200
parents 47b64d06eb9f
children 76078c8ab5b9
comparison
equal deleted inserted replaced
439:47b64d06eb9f 440:d8dc221d3db7
12 void DtoDeleteArray(DValue* arr); 12 void DtoDeleteArray(DValue* arr);
13 13
14 // assertion generator 14 // assertion generator
15 void DtoAssert(Loc* loc, DValue* msg); 15 void DtoAssert(Loc* loc, DValue* msg);
16 // array boundary check generator 16 // array boundary check generator
17 void DtoArrayBoundsCheck(Loc& loc, DValue* arr, DValue* index); 17 void DtoArrayBoundsCheck(Loc& loc, DValue* arr, DValue* index, bool isslice);
18 18
19 // return the LabelStatement from the current function with the given identifier or NULL if not found 19 // return the LabelStatement from the current function with the given identifier or NULL if not found
20 LabelStatement* DtoLabelStatement(Identifier* ident); 20 LabelStatement* DtoLabelStatement(Identifier* ident);
21 // emit goto 21 // emit goto
22 void DtoGoto(Loc* loc, Identifier* target, EnclosingHandler* enclosingtryfinally, TryFinallyStatement* sourcetf); 22 void DtoGoto(Loc* loc, Identifier* target, EnclosingHandler* enclosingtryfinally, TryFinallyStatement* sourcetf);