| 210 | //========================================================================== |
| 211 | |
| 212 | unsigned VMFunctionBuilder::GetConstantInt(int val) |
| 213 | { |
| 214 | unsigned int *locp = IntConstantMap.CheckKey(val); |
| 215 | if (locp != NULL) |
| 216 | { |
| 217 | return *locp; |
| 218 | } |
| 219 | else |
| 220 | { |
| 221 | unsigned loc = IntConstantList.Push(val); |
| 222 | IntConstantMap.Insert(val, loc); |
| 223 | return loc; |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | //========================================================================== |
| 228 | // |
no test coverage detected