| 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 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1970 DefineAsRegister(new(zone()) LDoubleToI(value, temp))); | 1970 DefineAsRegister(new(zone()) LDoubleToI(value, temp))); |
| 1971 } | 1971 } |
| 1972 } else if (from.IsInteger32()) { | 1972 } else if (from.IsInteger32()) { |
| 1973 info()->MarkAsDeferredCalling(); | 1973 info()->MarkAsDeferredCalling(); |
| 1974 if (to.IsTagged()) { | 1974 if (to.IsTagged()) { |
| 1975 HValue* val = instr->value(); | 1975 HValue* val = instr->value(); |
| 1976 LOperand* value = UseRegister(val); | 1976 LOperand* value = UseRegister(val); |
| 1977 if (val->HasRange() && val->range()->IsInSmiRange()) { | 1977 if (val->HasRange() && val->range()->IsInSmiRange()) { |
| 1978 return DefineSameAsFirst(new(zone()) LSmiTag(value)); | 1978 return DefineSameAsFirst(new(zone()) LSmiTag(value)); |
| 1979 } else if (val->CheckFlag(HInstruction::kUint32)) { | 1979 } else if (val->CheckFlag(HInstruction::kUint32)) { |
| 1980 LNumberTagU* result = new(zone()) LNumberTagU(value); | 1980 LOperand* temp = CpuFeatures::IsSupported(SSE2) ? FixedTemp(xmm1) |
| 1981 : NULL; |
| 1982 LNumberTagU* result = new(zone()) LNumberTagU(value, temp); |
| 1981 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); | 1983 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); |
| 1982 } else { | 1984 } else { |
| 1983 LNumberTagI* result = new(zone()) LNumberTagI(value); | 1985 LNumberTagI* result = new(zone()) LNumberTagI(value); |
| 1984 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); | 1986 return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); |
| 1985 } | 1987 } |
| 1986 } else { | 1988 } else { |
| 1987 ASSERT(to.IsDouble()); | 1989 ASSERT(to.IsDouble()); |
| 1988 if (instr->value()->CheckFlag(HInstruction::kUint32)) { | 1990 if (instr->value()->CheckFlag(HInstruction::kUint32)) { |
| 1989 LOperand* temp = FixedTemp(xmm1); | 1991 LOperand* temp = FixedTemp(xmm1); |
| 1990 return DefineAsRegister( | 1992 return DefineAsRegister( |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2771 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2773 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2772 LOperand* object = UseRegister(instr->object()); | 2774 LOperand* object = UseRegister(instr->object()); |
| 2773 LOperand* index = UseTempRegister(instr->index()); | 2775 LOperand* index = UseTempRegister(instr->index()); |
| 2774 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2776 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2775 } | 2777 } |
| 2776 | 2778 |
| 2777 | 2779 |
| 2778 } } // namespace v8::internal | 2780 } } // namespace v8::internal |
| 2779 | 2781 |
| 2780 #endif // V8_TARGET_ARCH_IA32 | 2782 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |