| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1687 if (to.IsDouble()) { | 1687 if (to.IsDouble()) { |
| 1688 LOperand* value = UseRegister(instr->value()); | 1688 LOperand* value = UseRegister(instr->value()); |
| 1689 LInstruction* res = new LNumberUntagD(value); | 1689 LInstruction* res = new LNumberUntagD(value); |
| 1690 return AssignEnvironment(DefineAsRegister(res)); | 1690 return AssignEnvironment(DefineAsRegister(res)); |
| 1691 } else { | 1691 } else { |
| 1692 ASSERT(to.IsInteger32()); | 1692 ASSERT(to.IsInteger32()); |
| 1693 LOperand* value = UseRegister(instr->value()); | 1693 LOperand* value = UseRegister(instr->value()); |
| 1694 bool needs_check = !instr->value()->type().IsSmi(); | 1694 bool needs_check = !instr->value()->type().IsSmi(); |
| 1695 if (needs_check) { | 1695 if (needs_check) { |
| 1696 LOperand* xmm_temp = | 1696 LOperand* xmm_temp = |
| 1697 (instr->CanTruncateToInt32() && !CpuFeatures::IsSupported(SSE3)) | 1697 (instr->CanTruncateToInt32() && CpuFeatures::IsSupported(SSE3)) |
| 1698 ? NULL | 1698 ? NULL |
| 1699 : FixedTemp(xmm1); | 1699 : FixedTemp(xmm1); |
| 1700 LInstruction* res = new LTaggedToI(value, xmm_temp); | 1700 LInstruction* res = new LTaggedToI(value, xmm_temp); |
| 1701 return AssignEnvironment(DefineSameAsFirst(res)); | 1701 return AssignEnvironment(DefineSameAsFirst(res)); |
| 1702 } else { | 1702 } else { |
| 1703 return DefineSameAsFirst(new LSmiUntag(value, needs_check)); | 1703 return DefineSameAsFirst(new LSmiUntag(value, needs_check)); |
| 1704 } | 1704 } |
| 1705 } | 1705 } |
| 1706 } else if (from.IsDouble()) { | 1706 } else if (from.IsDouble()) { |
| 1707 if (to.IsTagged()) { | 1707 if (to.IsTagged()) { |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2087 void LPointerMap::PrintTo(StringStream* stream) const { | 2087 void LPointerMap::PrintTo(StringStream* stream) const { |
| 2088 stream->Add("{"); | 2088 stream->Add("{"); |
| 2089 for (int i = 0; i < pointer_operands_.length(); ++i) { | 2089 for (int i = 0; i < pointer_operands_.length(); ++i) { |
| 2090 if (i != 0) stream->Add(";"); | 2090 if (i != 0) stream->Add(";"); |
| 2091 pointer_operands_[i]->PrintTo(stream); | 2091 pointer_operands_[i]->PrintTo(stream); |
| 2092 } | 2092 } |
| 2093 stream->Add("} @%d", position()); | 2093 stream->Add("} @%d", position()); |
| 2094 } | 2094 } |
| 2095 | 2095 |
| 2096 } } // namespace v8::internal | 2096 } } // namespace v8::internal |
| OLD | NEW |