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 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1161 byte byte_at(int pos) { return buffer_[pos]; } | 1161 byte byte_at(int pos) { return buffer_[pos]; } |
1162 void set_byte_at(int pos, byte value) { buffer_[pos] = value; } | 1162 void set_byte_at(int pos, byte value) { buffer_[pos] = value; } |
1163 | 1163 |
1164 protected: | 1164 protected: |
1165 void movsd(XMMRegister dst, const Operand& src); | 1165 void movsd(XMMRegister dst, const Operand& src); |
1166 void movsd(const Operand& dst, XMMRegister src); | 1166 void movsd(const Operand& dst, XMMRegister src); |
1167 | 1167 |
1168 void emit_sse_operand(XMMRegister reg, const Operand& adr); | 1168 void emit_sse_operand(XMMRegister reg, const Operand& adr); |
1169 void emit_sse_operand(XMMRegister dst, XMMRegister src); | 1169 void emit_sse_operand(XMMRegister dst, XMMRegister src); |
1170 void emit_sse_operand(Register dst, XMMRegister src); | 1170 void emit_sse_operand(Register dst, XMMRegister src); |
| 1171 void emit_sse_operand(XMMRegister dst, Register src); |
1171 | 1172 |
1172 byte* addr_at(int pos) { return buffer_ + pos; } | 1173 byte* addr_at(int pos) { return buffer_ + pos; } |
1173 | 1174 |
1174 | 1175 |
1175 private: | 1176 private: |
1176 uint32_t long_at(int pos) { | 1177 uint32_t long_at(int pos) { |
1177 return *reinterpret_cast<uint32_t*>(addr_at(pos)); | 1178 return *reinterpret_cast<uint32_t*>(addr_at(pos)); |
1178 } | 1179 } |
1179 void long_at_put(int pos, uint32_t x) { | 1180 void long_at_put(int pos, uint32_t x) { |
1180 *reinterpret_cast<uint32_t*>(addr_at(pos)) = x; | 1181 *reinterpret_cast<uint32_t*>(addr_at(pos)) = x; |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1256 private: | 1257 private: |
1257 Assembler* assembler_; | 1258 Assembler* assembler_; |
1258 #ifdef DEBUG | 1259 #ifdef DEBUG |
1259 int space_before_; | 1260 int space_before_; |
1260 #endif | 1261 #endif |
1261 }; | 1262 }; |
1262 | 1263 |
1263 } } // namespace v8::internal | 1264 } } // namespace v8::internal |
1264 | 1265 |
1265 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1266 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
OLD | NEW |