Mercurial > hg > truffle
comparison src/cpu/x86/vm/assembler_x86.cpp @ 9060:cc32ccaaf47f
8003310: Enable -Wunused-function when compiling with gcc
Summary: Add the -Wunused-function flag and remove a number of unused functions.
Reviewed-by: dholmes, coleenp, kvn
author | mikael |
---|---|
date | Thu, 04 Apr 2013 10:01:26 -0700 |
parents | 91a23b11d8dc |
children | 89e4d67fdd2a b800986664f4 |
comparison
equal
deleted
inserted
replaced
9059:17bf4d428955 | 9060:cc32ccaaf47f |
---|---|
205 } | 205 } |
206 emit_int32(data); | 206 emit_int32(data); |
207 } | 207 } |
208 | 208 |
209 static int encode(Register r) { | 209 static int encode(Register r) { |
210 int enc = r->encoding(); | |
211 if (enc >= 8) { | |
212 enc -= 8; | |
213 } | |
214 return enc; | |
215 } | |
216 | |
217 static int encode(XMMRegister r) { | |
218 int enc = r->encoding(); | 210 int enc = r->encoding(); |
219 if (enc >= 8) { | 211 if (enc >= 8) { |
220 enc -= 8; | 212 enc -= 8; |
221 } | 213 } |
222 return enc; | 214 return enc; |