| 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 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1180 int relocation_writer_size() { | 1180 int relocation_writer_size() { |
| 1181 return (buffer_ + buffer_size_) - reloc_info_writer.pos(); | 1181 return (buffer_ + buffer_size_) - reloc_info_writer.pos(); |
| 1182 } | 1182 } |
| 1183 | 1183 |
| 1184 // Avoid overflows for displacements etc. | 1184 // Avoid overflows for displacements etc. |
| 1185 static const int kMaximalBufferSize = 512*MB; | 1185 static const int kMaximalBufferSize = 512*MB; |
| 1186 | 1186 |
| 1187 byte byte_at(int pos) { return buffer_[pos]; } | 1187 byte byte_at(int pos) { return buffer_[pos]; } |
| 1188 void set_byte_at(int pos, byte value) { buffer_[pos] = value; } | 1188 void set_byte_at(int pos, byte value) { buffer_[pos] = value; } |
| 1189 | 1189 |
| 1190 // Generate the constant pool for the generated code. |
| 1191 void PopulateConstantPool(ConstantPoolArray* constant_pool); |
| 1192 |
| 1190 protected: | 1193 protected: |
| 1191 void emit_sse_operand(XMMRegister reg, const Operand& adr); | 1194 void emit_sse_operand(XMMRegister reg, const Operand& adr); |
| 1192 void emit_sse_operand(XMMRegister dst, XMMRegister src); | 1195 void emit_sse_operand(XMMRegister dst, XMMRegister src); |
| 1193 void emit_sse_operand(Register dst, XMMRegister src); | 1196 void emit_sse_operand(Register dst, XMMRegister src); |
| 1194 void emit_sse_operand(XMMRegister dst, Register src); | 1197 void emit_sse_operand(XMMRegister dst, Register src); |
| 1195 | 1198 |
| 1196 byte* addr_at(int pos) { return buffer_ + pos; } | 1199 byte* addr_at(int pos) { return buffer_ + pos; } |
| 1197 | 1200 |
| 1198 | 1201 |
| 1199 private: | 1202 private: |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1280 private: | 1283 private: |
| 1281 Assembler* assembler_; | 1284 Assembler* assembler_; |
| 1282 #ifdef DEBUG | 1285 #ifdef DEBUG |
| 1283 int space_before_; | 1286 int space_before_; |
| 1284 #endif | 1287 #endif |
| 1285 }; | 1288 }; |
| 1286 | 1289 |
| 1287 } } // namespace v8::internal | 1290 } } // namespace v8::internal |
| 1288 | 1291 |
| 1289 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1292 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
| OLD | NEW |