| 248 | } |
| 249 | |
| 250 | BfMethodState* BfMethodState::GetMethodStateForLocal(BfLocalVariable* localVar) |
| 251 | { |
| 252 | auto checkMethodState = this; |
| 253 | while (checkMethodState != NULL) |
| 254 | { |
| 255 | if ((localVar->mLocalVarIdx < checkMethodState->mLocals.size()) && |
| 256 | (checkMethodState->mLocals[localVar->mLocalVarIdx] == localVar)) |
| 257 | return checkMethodState; |
| 258 | checkMethodState = checkMethodState->mPrevMethodState; |
| 259 | } |
| 260 | |
| 261 | BF_FATAL("Failed to find method state for localvar"); |
| 262 | return NULL; |
| 263 | } |
| 264 | |
| 265 | void BfMethodState::LocalDefined(BfLocalVariable* localVar, int fieldIdx, BfLocalVarAssignKind assignKind, bool isFromDeferredAssignData) |
| 266 | { |
no test coverage detected