| 267 | } |
| 268 | |
| 269 | void Marshaller::swap(int leftIndex, int rightIndex) { |
| 270 | auto resolvedLeftIndex = convertIndexOrError(leftIndex); |
| 271 | if (!_exceptionTracker) { |
| 272 | return; |
| 273 | } |
| 274 | auto resolvedRightIndex = convertIndexOrError(rightIndex); |
| 275 | if (!_exceptionTracker) { |
| 276 | return; |
| 277 | } |
| 278 | |
| 279 | std::swap(_stack[resolvedLeftIndex], _stack[resolvedRightIndex]); |
| 280 | } |
| 281 | |
| 282 | ValueType Marshaller::getType(int index) { |
| 283 | return getOrUndefinedAsRef(index).getType(); |