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 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1601 } | 1601 } |
1602 | 1602 |
1603 | 1603 |
1604 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1604 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
1605 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); | 1605 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); |
1606 LOperand* length = UseRegister(instr->length()); | 1606 LOperand* length = UseRegister(instr->length()); |
1607 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); | 1607 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); |
1608 } | 1608 } |
1609 | 1609 |
1610 | 1610 |
| 1611 LInstruction* LChunkBuilder::DoBoundsCheckBaseIndexInformation( |
| 1612 HBoundsCheckBaseIndexInformation* instr) { |
| 1613 UNREACHABLE(); |
| 1614 return NULL; |
| 1615 } |
| 1616 |
| 1617 |
1611 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 1618 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
1612 // The control instruction marking the end of a block that completed | 1619 // The control instruction marking the end of a block that completed |
1613 // abruptly (e.g., threw an exception). There is nothing specific to do. | 1620 // abruptly (e.g., threw an exception). There is nothing specific to do. |
1614 return NULL; | 1621 return NULL; |
1615 } | 1622 } |
1616 | 1623 |
1617 | 1624 |
1618 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { | 1625 LInstruction* LChunkBuilder::DoThrow(HThrow* instr) { |
1619 LOperand* value = UseFixed(instr->value(), a0); | 1626 LOperand* value = UseFixed(instr->value(), a0); |
1620 return MarkAsCall(new(zone()) LThrow(value), instr); | 1627 return MarkAsCall(new(zone()) LThrow(value), instr); |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2362 | 2369 |
2363 | 2370 |
2364 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2371 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2365 LOperand* object = UseRegister(instr->object()); | 2372 LOperand* object = UseRegister(instr->object()); |
2366 LOperand* index = UseRegister(instr->index()); | 2373 LOperand* index = UseRegister(instr->index()); |
2367 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2374 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2368 } | 2375 } |
2369 | 2376 |
2370 | 2377 |
2371 } } // namespace v8::internal | 2378 } } // namespace v8::internal |
OLD | NEW |