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 1633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1644 return NULL; | 1644 return NULL; |
1645 } | 1645 } |
1646 | 1646 |
1647 | 1647 |
1648 LInstruction* LChunkBuilder::DoChange(HChange* instr) { | 1648 LInstruction* LChunkBuilder::DoChange(HChange* instr) { |
1649 Representation from = instr->from(); | 1649 Representation from = instr->from(); |
1650 Representation to = instr->to(); | 1650 Representation to = instr->to(); |
1651 if (from.IsTagged()) { | 1651 if (from.IsTagged()) { |
1652 if (to.IsDouble()) { | 1652 if (to.IsDouble()) { |
1653 LOperand* value = UseRegister(instr->value()); | 1653 LOperand* value = UseRegister(instr->value()); |
1654 LNumberUntagD* res = new LNumberUntagD(value); | 1654 LNumberUntagD* res = |
| 1655 new LNumberUntagD(value, instr->deoptimize_on_undefined()); |
1655 return AssignEnvironment(DefineAsRegister(res)); | 1656 return AssignEnvironment(DefineAsRegister(res)); |
1656 } else { | 1657 } else { |
1657 ASSERT(to.IsInteger32()); | 1658 ASSERT(to.IsInteger32()); |
1658 LOperand* value = UseRegister(instr->value()); | 1659 LOperand* value = UseRegister(instr->value()); |
1659 bool needs_check = !instr->value()->type().IsSmi(); | 1660 bool needs_check = !instr->value()->type().IsSmi(); |
1660 LInstruction* res = NULL; | 1661 LInstruction* res = NULL; |
1661 if (!needs_check) { | 1662 if (!needs_check) { |
1662 res = DefineSameAsFirst(new LSmiUntag(value, needs_check)); | 1663 res = DefineSameAsFirst(new LSmiUntag(value, needs_check)); |
1663 } else { | 1664 } else { |
1664 LOperand* temp1 = TempRegister(); | 1665 LOperand* temp1 = TempRegister(); |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2226 | 2227 |
2227 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2228 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
2228 LOperand* key = UseRegisterAtStart(instr->key()); | 2229 LOperand* key = UseRegisterAtStart(instr->key()); |
2229 LOperand* object = UseRegisterAtStart(instr->object()); | 2230 LOperand* object = UseRegisterAtStart(instr->object()); |
2230 LIn* result = new LIn(key, object); | 2231 LIn* result = new LIn(key, object); |
2231 return MarkAsCall(DefineFixed(result, r0), instr); | 2232 return MarkAsCall(DefineFixed(result, r0), instr); |
2232 } | 2233 } |
2233 | 2234 |
2234 | 2235 |
2235 } } // namespace v8::internal | 2236 } } // namespace v8::internal |
OLD | NEW |