comparison src/share/vm/adlc/filebuff.hpp @ 415:4d9884b01ba6

6754519: don't emit flag fixup for NaN when condition being tested doesn't need it Reviewed-by: kvn, rasbold
author never
date Tue, 28 Oct 2008 09:31:30 -0700
parents 3e82d72933d0
children ad8c8ca4ab0f 284d0af00d53
comparison
equal deleted inserted replaced
407:ebfd4ae89bf6 415:4d9884b01ba6
49 char *_bufmax; // A pointer to the buffer end sentinal 49 char *_bufmax; // A pointer to the buffer end sentinal
50 char *_bufeol; // A pointer to the last complete line end 50 char *_bufeol; // A pointer to the last complete line end
51 51
52 int _err; // Error flag for file seek/read operations 52 int _err; // Error flag for file seek/read operations
53 long _filepos; // Current offset from start of file 53 long _filepos; // Current offset from start of file
54 int _linenum;
54 55
55 ArchDesc& _AD; // Reference to Architecture Description 56 ArchDesc& _AD; // Reference to Architecture Description
56 57
57 // Error reporting function 58 // Error reporting function
58 void file_error(int flag, int linenum, const char *fmt, ...); 59 void file_error(int flag, int linenum, const char *fmt, ...);
64 ~FileBuff(); // Destructor 65 ~FileBuff(); // Destructor
65 66
66 // This returns a pointer to the start of the current line in the buffer, 67 // This returns a pointer to the start of the current line in the buffer,
67 // and increments bufeol and filepos to point at the end of that line. 68 // and increments bufeol and filepos to point at the end of that line.
68 char *get_line(void); 69 char *get_line(void);
70 int linenum() const { return _linenum; }
69 71
70 // This converts a pointer into the buffer to a file offset. It only works 72 // This converts a pointer into the buffer to a file offset. It only works
71 // when the pointer is valid (i.e. just obtained from getline()). 73 // when the pointer is valid (i.e. just obtained from getline()).
72 int getoff(const char *s) { return _bufoff+(int)(s-_buf); } 74 int getoff(const char *s) { return _bufoff+(int)(s-_buf); }
73 }; 75 };