| Index: src/x64/lithium-x64.cc
|
| diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc
|
| index f5f2879afd3ec8f836d37b578bc9a5e383d9f46f..e2c23d2d028d7c1be5d76e3c0c796d5cd4db4abc 100644
|
| --- a/src/x64/lithium-x64.cc
|
| +++ b/src/x64/lithium-x64.cc
|
| @@ -1742,6 +1742,25 @@ LInstruction* LChunkBuilder::DoCheckMap(HCheckMap* instr) {
|
| }
|
|
|
|
|
| +LInstruction* LChunkBuilder::DoClampToUint8(HClampToUint8* instr) {
|
| + HValue* value = instr->value();
|
| + Representation rep = value->representation();
|
| + LOperand* reg = UseRegister(value);
|
| + if (rep.IsDouble()) {
|
| + return DefineAsRegister(new LClampDoubleToUint8(reg,
|
| + TempRegister()));
|
| + } else if (rep.IsInteger32()) {
|
| + return DefineSameAsFirst(new LClampIToUint8(reg));
|
| + } else {
|
| + ASSERT(rep.IsTagged());
|
| + LClampTaggedToUint8* result = new LClampTaggedToUint8(reg,
|
| + TempRegister(),
|
| + FixedTemp(xmm1));
|
| + return AssignEnvironment(DefineSameAsFirst(result));
|
| + }
|
| +}
|
| +
|
| +
|
| LInstruction* LChunkBuilder::DoReturn(HReturn* instr) {
|
| return new LReturn(UseFixed(instr->value(), rax));
|
| }
|
|
|