| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2017 DefineAsRegister(new(zone()) LDoubleToI(value, temp))); | 2017 DefineAsRegister(new(zone()) LDoubleToI(value, temp))); |
| 2018 } | 2018 } |
| 2019 } else if (from.IsInteger32()) { | 2019 } else if (from.IsInteger32()) { |
| 2020 info()->MarkAsDeferredCalling(); | 2020 info()->MarkAsDeferredCalling(); |
| 2021 if (to.IsTagged()) { | 2021 if (to.IsTagged()) { |
| 2022 HValue* val = instr->value(); | 2022 HValue* val = instr->value(); |
| 2023 LOperand* value = UseRegister(val); | 2023 LOperand* value = UseRegister(val); |
| 2024 if (val->HasRange() && val->range()->IsInSmiRange()) { | 2024 if (val->HasRange() && val->range()->IsInSmiRange()) { |
| 2025 return DefineSameAsFirst(new(zone()) LSmiTag(value)); | 2025 return DefineSameAsFirst(new(zone()) LSmiTag(value)); |
| 2026 } else if (val->CheckFlag(HInstruction::kUint32)) { | 2026 } else if (val->CheckFlag(HInstruction::kUint32)) { |
| 2027 LNumberTagU* result = new(zone()) LNumberTagU(value); | 2027 LOperand* temp = CpuFeatures::IsSupported(SSE2) ? FixedTemp(xmm1) |
| 2028 : NULL; |
| 2029 LNumberTagU* result = new(zone()) LNumberTagU(value, temp); |
| 2028 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); | 2030 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); |
| 2029 } else { | 2031 } else { |
| 2030 LNumberTagI* result = new(zone()) LNumberTagI(value); | 2032 LNumberTagI* result = new(zone()) LNumberTagI(value); |
| 2031 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); | 2033 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); |
| 2032 } | 2034 } |
| 2033 } else if (to.IsSmi()) { | 2035 } else if (to.IsSmi()) { |
| 2034 HValue* val = instr->value(); | 2036 HValue* val = instr->value(); |
| 2035 LOperand* value = UseRegister(val); | 2037 LOperand* value = UseRegister(val); |
| 2036 LInstruction* result = | 2038 LInstruction* result = |
| 2037 DefineSameAsFirst(new(zone()) LInteger32ToSmi(value)); | 2039 DefineSameAsFirst(new(zone()) LInteger32ToSmi(value)); |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2797 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2799 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2798 LOperand* object = UseRegister(instr->object()); | 2800 LOperand* object = UseRegister(instr->object()); |
| 2799 LOperand* index = UseTempRegister(instr->index()); | 2801 LOperand* index = UseTempRegister(instr->index()); |
| 2800 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2802 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2801 } | 2803 } |
| 2802 | 2804 |
| 2803 | 2805 |
| 2804 } } // namespace v8::internal | 2806 } } // namespace v8::internal |
| 2805 | 2807 |
| 2806 #endif // V8_TARGET_ARCH_IA32 | 2808 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |