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 1636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1647 } | 1647 } |
1648 | 1648 |
1649 | 1649 |
1650 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1650 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
1651 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); | 1651 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); |
1652 LOperand* length = Use(instr->length()); | 1652 LOperand* length = Use(instr->length()); |
1653 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); | 1653 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); |
1654 } | 1654 } |
1655 | 1655 |
1656 | 1656 |
| 1657 LInstruction* LChunkBuilder::DoBoundsCheckBaseIndexInformation( |
| 1658 HBoundsCheckBaseIndexInformation* instr) { |
| 1659 UNREACHABLE(); |
| 1660 return NULL; |
| 1661 } |
| 1662 |
| 1663 |
1657 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 1664 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
1658 // The control instruction marking the end of a block that completed | 1665 // The control instruction marking the end of a block that completed |
1659 // abruptly (e.g., threw an exception). There is nothing specific to do. | 1666 // abruptly (e.g., threw an exception). There is nothing specific to do. |
1660 return NULL; | 1667 return NULL; |
1661 } | 1668 } |
1662 | 1669 |
1663 | 1670 |
1664 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { | 1671 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { |
1665 LOperand* value = UseFixed(instr->value(), rax); | 1672 LOperand* value = UseFixed(instr->value(), rax); |
1666 return MarkAsCall(new(zone()) LThrow(value), instr); | 1673 return MarkAsCall(new(zone()) LThrow(value), instr); |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2402 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2409 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2403 LOperand* object = UseRegister(instr->object()); | 2410 LOperand* object = UseRegister(instr->object()); |
2404 LOperand* index = UseTempRegister(instr->index()); | 2411 LOperand* index = UseTempRegister(instr->index()); |
2405 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2412 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2406 } | 2413 } |
2407 | 2414 |
2408 | 2415 |
2409 } } // namespace v8::internal | 2416 } } // namespace v8::internal |
2410 | 2417 |
2411 #endif // V8_TARGET_ARCH_X64 | 2418 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |