| 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 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1476 | 1476 |
| 1477 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | 1477 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
| 1478 LOperand* object = UseFixed(instr->value(), a0); | 1478 LOperand* object = UseFixed(instr->value(), a0); |
| 1479 LDateField* result = | 1479 LDateField* result = |
| 1480 new(zone()) LDateField(object, FixedTemp(a1), instr->index()); | 1480 new(zone()) LDateField(object, FixedTemp(a1), instr->index()); |
| 1481 return MarkAsCall(DefineFixed(result, v0), instr); | 1481 return MarkAsCall(DefineFixed(result, v0), instr); |
| 1482 } | 1482 } |
| 1483 | 1483 |
| 1484 | 1484 |
| 1485 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1485 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
| 1486 LOperand* value = UseRegisterAtStart(instr->index()); | 1486 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); |
| 1487 LOperand* length = UseRegister(instr->length()); | 1487 LOperand* length = UseRegister(instr->length()); |
| 1488 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); | 1488 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); |
| 1489 } | 1489 } |
| 1490 | 1490 |
| 1491 | 1491 |
| 1492 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 1492 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
| 1493 // The control instruction marking the end of a block that completed | 1493 // The control instruction marking the end of a block that completed |
| 1494 // abruptly (e.g., threw an exception). There is nothing specific to do. | 1494 // abruptly (e.g., threw an exception). There is nothing specific to do. |
| 1495 return NULL; | 1495 return NULL; |
| 1496 } | 1496 } |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1769 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); | 1769 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); |
| 1770 } | 1770 } |
| 1771 | 1771 |
| 1772 | 1772 |
| 1773 LInstruction* LChunkBuilder::DoLoadKeyedFastElement( | 1773 LInstruction* LChunkBuilder::DoLoadKeyedFastElement( |
| 1774 HLoadKeyedFastElement* instr) { | 1774 HLoadKeyedFastElement* instr) { |
| 1775 ASSERT(instr->representation().IsTagged()); | 1775 ASSERT(instr->representation().IsTagged()); |
| 1776 ASSERT(instr->key()->representation().IsInteger32() || | 1776 ASSERT(instr->key()->representation().IsInteger32() || |
| 1777 instr->key()->representation().IsTagged()); | 1777 instr->key()->representation().IsTagged()); |
| 1778 LOperand* obj = UseRegisterAtStart(instr->object()); | 1778 LOperand* obj = UseRegisterAtStart(instr->object()); |
| 1779 LOperand* key = UseRegisterAtStart(instr->key()); | 1779 LOperand* key = UseRegisterOrConstantAtStart(instr->key()); |
| 1780 LLoadKeyedFastElement* result = new(zone()) LLoadKeyedFastElement(obj, key); | 1780 LLoadKeyedFastElement* result = new(zone()) LLoadKeyedFastElement(obj, key); |
| 1781 if (instr->RequiresHoleCheck()) AssignEnvironment(result); | 1781 if (instr->RequiresHoleCheck()) AssignEnvironment(result); |
| 1782 return DefineAsRegister(result); | 1782 return DefineAsRegister(result); |
| 1783 } | 1783 } |
| 1784 | 1784 |
| 1785 | 1785 |
| 1786 LInstruction* LChunkBuilder::DoLoadKeyedFastDoubleElement( | 1786 LInstruction* LChunkBuilder::DoLoadKeyedFastDoubleElement( |
| 1787 HLoadKeyedFastDoubleElement* instr) { | 1787 HLoadKeyedFastDoubleElement* instr) { |
| 1788 ASSERT(instr->representation().IsDouble()); | 1788 ASSERT(instr->representation().IsDouble()); |
| 1789 ASSERT(instr->key()->representation().IsInteger32() || | 1789 ASSERT(instr->key()->representation().IsInteger32() || |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2220 | 2220 |
| 2221 | 2221 |
| 2222 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2222 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2223 LOperand* object = UseRegister(instr->object()); | 2223 LOperand* object = UseRegister(instr->object()); |
| 2224 LOperand* index = UseRegister(instr->index()); | 2224 LOperand* index = UseRegister(instr->index()); |
| 2225 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2225 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2226 } | 2226 } |
| 2227 | 2227 |
| 2228 | 2228 |
| 2229 } } // namespace v8::internal | 2229 } } // namespace v8::internal |
| OLD | NEW |