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