add Compiler::truncateThenExtend

This commit is contained in:
Joshua Warner
2014-05-01 11:43:10 -06:00
parent 99fa560257
commit 26d8e8aa1f
3 changed files with 23 additions and 2 deletions

View File

@ -107,6 +107,11 @@ class Compiler {
virtual void checkBounds(Operand* object, unsigned lengthOffset,
Operand* index, intptr_t handler) = 0;
virtual Operand* truncateThenExtend(ir::SignExtendMode signExtend,
ir::Type extendType,
ir::Type truncateType,
Operand* src) = 0;
virtual void store(ir::Type srcType,
Operand* src,
Operand* dst) = 0;