| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 } | 1668 } |
| 1669 | 1669 |
| 1670 | 1670 |
| 1671 void Assembler::cfc1(Register rt, FPUControlRegister fs) { | 1671 void Assembler::cfc1(Register rt, FPUControlRegister fs) { |
| 1672 GenInstrRegister(COP1, CFC1, rt, fs); | 1672 GenInstrRegister(COP1, CFC1, rt, fs); |
| 1673 } | 1673 } |
| 1674 | 1674 |
| 1675 | 1675 |
| 1676 void Assembler::DoubleAsTwoUInt32(double d, uint32_t* lo, uint32_t* hi) { | 1676 void Assembler::DoubleAsTwoUInt32(double d, uint32_t* lo, uint32_t* hi) { |
| 1677 uint64_t i; | 1677 uint64_t i; |
| 1678 OS::MemCopy(&i, &d, 8); | 1678 MemCopy(&i, &d, 8); |
| 1679 | 1679 |
| 1680 *lo = i & 0xffffffff; | 1680 *lo = i & 0xffffffff; |
| 1681 *hi = i >> 32; | 1681 *hi = i >> 32; |
| 1682 } | 1682 } |
| 1683 | 1683 |
| 1684 | 1684 |
| 1685 // Arithmetic. | 1685 // Arithmetic. |
| 1686 | 1686 |
| 1687 void Assembler::add_d(FPURegister fd, FPURegister fs, FPURegister ft) { | 1687 void Assembler::add_d(FPURegister fd, FPURegister fs, FPURegister ft) { |
| 1688 GenInstrRegister(COP1, D, ft, fs, fd, ADD_D); | 1688 GenInstrRegister(COP1, D, ft, fs, fd, ADD_D); |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1983 | 1983 |
| 1984 // Set up new buffer. | 1984 // Set up new buffer. |
| 1985 desc.buffer = NewArray<byte>(desc.buffer_size); | 1985 desc.buffer = NewArray<byte>(desc.buffer_size); |
| 1986 | 1986 |
| 1987 desc.instr_size = pc_offset(); | 1987 desc.instr_size = pc_offset(); |
| 1988 desc.reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); | 1988 desc.reloc_size = (buffer_ + buffer_size_) - reloc_info_writer.pos(); |
| 1989 | 1989 |
| 1990 // Copy the data. | 1990 // Copy the data. |
| 1991 int pc_delta = desc.buffer - buffer_; | 1991 int pc_delta = desc.buffer - buffer_; |
| 1992 int rc_delta = (desc.buffer + desc.buffer_size) - (buffer_ + buffer_size_); | 1992 int rc_delta = (desc.buffer + desc.buffer_size) - (buffer_ + buffer_size_); |
| 1993 OS::MemMove(desc.buffer, buffer_, desc.instr_size); | 1993 MemMove(desc.buffer, buffer_, desc.instr_size); |
| 1994 OS::MemMove(reloc_info_writer.pos() + rc_delta, | 1994 MemMove(reloc_info_writer.pos() + rc_delta, reloc_info_writer.pos(), |
| 1995 reloc_info_writer.pos(), desc.reloc_size); | 1995 desc.reloc_size); |
| 1996 | 1996 |
| 1997 // Switch buffers. | 1997 // Switch buffers. |
| 1998 DeleteArray(buffer_); | 1998 DeleteArray(buffer_); |
| 1999 buffer_ = desc.buffer; | 1999 buffer_ = desc.buffer; |
| 2000 buffer_size_ = desc.buffer_size; | 2000 buffer_size_ = desc.buffer_size; |
| 2001 pc_ += pc_delta; | 2001 pc_ += pc_delta; |
| 2002 reloc_info_writer.Reposition(reloc_info_writer.pos() + rc_delta, | 2002 reloc_info_writer.Reposition(reloc_info_writer.pos() + rc_delta, |
| 2003 reloc_info_writer.last_pc() + pc_delta); | 2003 reloc_info_writer.last_pc() + pc_delta); |
| 2004 | 2004 |
| 2005 // Relocate runtime entries. | 2005 // Relocate runtime entries. |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2312 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { | 2312 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { |
| 2313 // No out-of-line constant pool support. | 2313 // No out-of-line constant pool support. |
| 2314 ASSERT(!FLAG_enable_ool_constant_pool); | 2314 ASSERT(!FLAG_enable_ool_constant_pool); |
| 2315 return; | 2315 return; |
| 2316 } | 2316 } |
| 2317 | 2317 |
| 2318 | 2318 |
| 2319 } } // namespace v8::internal | 2319 } } // namespace v8::internal |
| 2320 | 2320 |
| 2321 #endif // V8_TARGET_ARCH_MIPS | 2321 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |