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 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1752 } | 1752 } |
1753 __ bind(&runtime); | 1753 __ bind(&runtime); |
1754 __ PrepareCallCFunction(2, scratch); | 1754 __ PrepareCallCFunction(2, scratch); |
1755 __ mov(r1, Operand(index)); | 1755 __ mov(r1, Operand(index)); |
1756 __ CallCFunction(ExternalReference::get_date_field_function(isolate()), 2); | 1756 __ CallCFunction(ExternalReference::get_date_field_function(isolate()), 2); |
1757 __ bind(&done); | 1757 __ bind(&done); |
1758 } | 1758 } |
1759 } | 1759 } |
1760 | 1760 |
1761 | 1761 |
| 1762 void LCodeGen::DoSeqStringSetChar(LSeqStringSetChar* instr) { |
| 1763 Register string = ToRegister(instr->string()); |
| 1764 Register index = ToRegister(instr->index()); |
| 1765 Register value = ToRegister(instr->value()); |
| 1766 SeqStringSetCharGenerator::Generate( |
| 1767 masm(), instr->is_one_byte(), string, index, value); |
| 1768 } |
| 1769 |
| 1770 |
1762 void LCodeGen::DoBitNotI(LBitNotI* instr) { | 1771 void LCodeGen::DoBitNotI(LBitNotI* instr) { |
1763 Register input = ToRegister(instr->value()); | 1772 Register input = ToRegister(instr->value()); |
1764 Register result = ToRegister(instr->result()); | 1773 Register result = ToRegister(instr->result()); |
1765 __ mvn(result, Operand(input)); | 1774 __ mvn(result, Operand(input)); |
1766 } | 1775 } |
1767 | 1776 |
1768 | 1777 |
1769 void LCodeGen::DoThrow(LThrow* instr) { | 1778 void LCodeGen::DoThrow(LThrow* instr) { |
1770 Register input_reg = EmitLoadRegister(instr->value(), ip); | 1779 Register input_reg = EmitLoadRegister(instr->value(), ip); |
1771 __ push(input_reg); | 1780 __ push(input_reg); |
(...skipping 4012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5784 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 5793 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
5785 __ ldr(result, FieldMemOperand(scratch, | 5794 __ ldr(result, FieldMemOperand(scratch, |
5786 FixedArray::kHeaderSize - kPointerSize)); | 5795 FixedArray::kHeaderSize - kPointerSize)); |
5787 __ bind(&done); | 5796 __ bind(&done); |
5788 } | 5797 } |
5789 | 5798 |
5790 | 5799 |
5791 #undef __ | 5800 #undef __ |
5792 | 5801 |
5793 } } // namespace v8::internal | 5802 } } // namespace v8::internal |
OLD | NEW |