| 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 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1779 | 1779 |
| 1780 | 1780 |
| 1781 void MacroAssembler::AllocateAsciiString(Register result, | 1781 void MacroAssembler::AllocateAsciiString(Register result, |
| 1782 Register length, | 1782 Register length, |
| 1783 Register scratch1, | 1783 Register scratch1, |
| 1784 Register scratch2, | 1784 Register scratch2, |
| 1785 Register scratch3, | 1785 Register scratch3, |
| 1786 Label* gc_required) { | 1786 Label* gc_required) { |
| 1787 // Calculate the number of bytes needed for the characters in the string while | 1787 // Calculate the number of bytes needed for the characters in the string while |
| 1788 // observing object alignment. | 1788 // observing object alignment. |
| 1789 ASSERT((SeqAsciiString::kHeaderSize & kObjectAlignmentMask) == 0); | 1789 ASSERT((SeqOneByteString::kHeaderSize & kObjectAlignmentMask) == 0); |
| 1790 ASSERT(kCharSize == 1); | 1790 ASSERT(kCharSize == 1); |
| 1791 add(scratch1, length, | 1791 add(scratch1, length, |
| 1792 Operand(kObjectAlignmentMask + SeqAsciiString::kHeaderSize)); | 1792 Operand(kObjectAlignmentMask + SeqOneByteString::kHeaderSize)); |
| 1793 and_(scratch1, scratch1, Operand(~kObjectAlignmentMask)); | 1793 and_(scratch1, scratch1, Operand(~kObjectAlignmentMask)); |
| 1794 | 1794 |
| 1795 // Allocate ASCII string in new space. | 1795 // Allocate ASCII string in new space. |
| 1796 AllocateInNewSpace(scratch1, | 1796 AllocateInNewSpace(scratch1, |
| 1797 result, | 1797 result, |
| 1798 scratch2, | 1798 scratch2, |
| 1799 scratch3, | 1799 scratch3, |
| 1800 gc_required, | 1800 gc_required, |
| 1801 TAG_OBJECT); | 1801 TAG_OBJECT); |
| 1802 | 1802 |
| (...skipping 2081 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3884 void CodePatcher::EmitCondition(Condition cond) { | 3884 void CodePatcher::EmitCondition(Condition cond) { |
| 3885 Instr instr = Assembler::instr_at(masm_.pc_); | 3885 Instr instr = Assembler::instr_at(masm_.pc_); |
| 3886 instr = (instr & ~kCondMask) | cond; | 3886 instr = (instr & ~kCondMask) | cond; |
| 3887 masm_.emit(instr); | 3887 masm_.emit(instr); |
| 3888 } | 3888 } |
| 3889 | 3889 |
| 3890 | 3890 |
| 3891 } } // namespace v8::internal | 3891 } } // namespace v8::internal |
| 3892 | 3892 |
| 3893 #endif // V8_TARGET_ARCH_ARM | 3893 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |