| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1607 if (to.IsDouble()) { | 1607 if (to.IsDouble()) { |
| 1608 LOperand* value = UseRegister(instr->value()); | 1608 LOperand* value = UseRegister(instr->value()); |
| 1609 LNumberUntagD* res = new LNumberUntagD(value); | 1609 LNumberUntagD* res = new LNumberUntagD(value); |
| 1610 return AssignEnvironment(DefineAsRegister(res)); | 1610 return AssignEnvironment(DefineAsRegister(res)); |
| 1611 } else { | 1611 } else { |
| 1612 ASSERT(to.IsInteger32()); | 1612 ASSERT(to.IsInteger32()); |
| 1613 LOperand* value = UseRegister(instr->value()); | 1613 LOperand* value = UseRegister(instr->value()); |
| 1614 bool needs_check = !instr->value()->type().IsSmi(); | 1614 bool needs_check = !instr->value()->type().IsSmi(); |
| 1615 if (needs_check) { | 1615 if (needs_check) { |
| 1616 LOperand* xmm_temp = | 1616 LOperand* xmm_temp = |
| 1617 (instr->CanTruncateToInt32() && CpuFeatures::IsSupported(SSE3)) | 1617 (instr->CanTruncateToInt32() && |
| 1618 Isolate::Current()->cpu_features()->IsSupported(SSE3)) |
| 1618 ? NULL | 1619 ? NULL |
| 1619 : FixedTemp(xmm1); | 1620 : FixedTemp(xmm1); |
| 1620 LTaggedToI* res = new LTaggedToI(value, xmm_temp); | 1621 LTaggedToI* res = new LTaggedToI(value, xmm_temp); |
| 1621 return AssignEnvironment(DefineSameAsFirst(res)); | 1622 return AssignEnvironment(DefineSameAsFirst(res)); |
| 1622 } else { | 1623 } else { |
| 1623 return DefineSameAsFirst(new LSmiUntag(value, needs_check)); | 1624 return DefineSameAsFirst(new LSmiUntag(value, needs_check)); |
| 1624 } | 1625 } |
| 1625 } | 1626 } |
| 1626 } else if (from.IsDouble()) { | 1627 } else if (from.IsDouble()) { |
| 1627 if (to.IsTagged()) { | 1628 if (to.IsTagged()) { |
| (...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2057 | 2058 |
| 2058 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2059 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2059 HEnvironment* outer = current_block_->last_environment()->outer(); | 2060 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 2060 current_block_->UpdateEnvironment(outer); | 2061 current_block_->UpdateEnvironment(outer); |
| 2061 return NULL; | 2062 return NULL; |
| 2062 } | 2063 } |
| 2063 | 2064 |
| 2064 } } // namespace v8::internal | 2065 } } // namespace v8::internal |
| 2065 | 2066 |
| 2066 #endif // V8_TARGET_ARCH_X64 | 2067 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |