OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1721 Register value = ToRegister(instr->value()); | 1721 Register value = ToRegister(instr->value()); |
1722 if (encoding == String::ONE_BYTE_ENCODING) { | 1722 if (encoding == String::ONE_BYTE_ENCODING) { |
1723 __ movb(operand, value); | 1723 __ movb(operand, value); |
1724 } else { | 1724 } else { |
1725 __ movw(operand, value); | 1725 __ movw(operand, value); |
1726 } | 1726 } |
1727 } | 1727 } |
1728 } | 1728 } |
1729 | 1729 |
1730 | 1730 |
1731 void LCodeGen::DoThrow(LThrow* instr) { | |
1732 __ push(ToRegister(instr->value())); | |
1733 ASSERT(ToRegister(instr->context()).is(rsi)); | |
1734 CallRuntime(Runtime::kThrow, 1, instr); | |
1735 | |
1736 if (FLAG_debug_code) { | |
1737 Comment("Unreachable code."); | |
1738 __ int3(); | |
1739 } | |
1740 } | |
1741 | |
1742 | |
1743 void LCodeGen::DoAddI(LAddI* instr) { | 1731 void LCodeGen::DoAddI(LAddI* instr) { |
1744 LOperand* left = instr->left(); | 1732 LOperand* left = instr->left(); |
1745 LOperand* right = instr->right(); | 1733 LOperand* right = instr->right(); |
1746 | 1734 |
1747 Representation target_rep = instr->hydrogen()->representation(); | 1735 Representation target_rep = instr->hydrogen()->representation(); |
1748 bool is_q = target_rep.IsSmi() || target_rep.IsExternal(); | 1736 bool is_q = target_rep.IsSmi() || target_rep.IsExternal(); |
1749 | 1737 |
1750 if (LAddI::UseLea(instr->hydrogen()) && !left->Equals(instr->result())) { | 1738 if (LAddI::UseLea(instr->hydrogen()) && !left->Equals(instr->result())) { |
1751 if (right->IsConstantOperand()) { | 1739 if (right->IsConstantOperand()) { |
1752 int32_t offset = ToInteger32(LConstantOperand::cast(right)); | 1740 int32_t offset = ToInteger32(LConstantOperand::cast(right)); |
(...skipping 3840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5593 FixedArray::kHeaderSize - kPointerSize)); | 5581 FixedArray::kHeaderSize - kPointerSize)); |
5594 __ bind(&done); | 5582 __ bind(&done); |
5595 } | 5583 } |
5596 | 5584 |
5597 | 5585 |
5598 #undef __ | 5586 #undef __ |
5599 | 5587 |
5600 } } // namespace v8::internal | 5588 } } // namespace v8::internal |
5601 | 5589 |
5602 #endif // V8_TARGET_ARCH_X64 | 5590 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |