| 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 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1574 } | 1574 } |
| 1575 | 1575 |
| 1576 | 1576 |
| 1577 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { | 1577 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { |
| 1578 LOperand* object = UseFixed(instr->value(), rax); | 1578 LOperand* object = UseFixed(instr->value(), rax); |
| 1579 LDateField* result = new(zone()) LDateField(object, instr->index()); | 1579 LDateField* result = new(zone()) LDateField(object, instr->index()); |
| 1580 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); | 1580 return MarkAsCall(DefineFixed(result, rax), instr, CAN_DEOPTIMIZE_EAGERLY); |
| 1581 } | 1581 } |
| 1582 | 1582 |
| 1583 | 1583 |
| 1584 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { |
| 1585 LOperand* string = UseRegister(instr->string()); |
| 1586 LOperand* index = UseRegister(instr->index()); |
| 1587 ASSERT(rcx.is_byte_register()); |
| 1588 LOperand* value = UseFixed(instr->value(), rcx); |
| 1589 LSeqStringSetChar* result = |
| 1590 new(zone()) LSeqStringSetChar(instr->is_one_byte(), string, index, value); |
| 1591 return DefineSameAsFirst(result); |
| 1592 } |
| 1593 |
| 1594 |
| 1584 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1595 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
| 1585 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); | 1596 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); |
| 1586 LOperand* length = Use(instr->length()); | 1597 LOperand* length = Use(instr->length()); |
| 1587 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); | 1598 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); |
| 1588 } | 1599 } |
| 1589 | 1600 |
| 1590 | 1601 |
| 1591 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 1602 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
| 1592 // The control instruction marking the end of a block that completed | 1603 // The control instruction marking the end of a block that completed |
| 1593 // abruptly (e.g., threw an exception). There is nothing specific to do. | 1604 // abruptly (e.g., threw an exception). There is nothing specific to do. |
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2291 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2302 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2292 LOperand* object = UseRegister(instr->object()); | 2303 LOperand* object = UseRegister(instr->object()); |
| 2293 LOperand* index = UseTempRegister(instr->index()); | 2304 LOperand* index = UseTempRegister(instr->index()); |
| 2294 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2305 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2295 } | 2306 } |
| 2296 | 2307 |
| 2297 | 2308 |
| 2298 } } // namespace v8::internal | 2309 } } // namespace v8::internal |
| 2299 | 2310 |
| 2300 #endif // V8_TARGET_ARCH_X64 | 2311 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |