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 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1185 return (buffer_ + buffer_size_) - reloc_info_writer.pos(); | 1185 return (buffer_ + buffer_size_) - reloc_info_writer.pos(); |
1186 } | 1186 } |
1187 | 1187 |
1188 // Avoid overflows for displacements etc. | 1188 // Avoid overflows for displacements etc. |
1189 static const int kMaximalBufferSize = 512*MB; | 1189 static const int kMaximalBufferSize = 512*MB; |
1190 | 1190 |
1191 byte byte_at(int pos) { return buffer_[pos]; } | 1191 byte byte_at(int pos) { return buffer_[pos]; } |
1192 void set_byte_at(int pos, byte value) { buffer_[pos] = value; } | 1192 void set_byte_at(int pos, byte value) { buffer_[pos] = value; } |
1193 | 1193 |
1194 // Allocate a constant pool of the correct size for the generated code. | 1194 // Allocate a constant pool of the correct size for the generated code. |
1195 MaybeObject* AllocateConstantPool(Heap* heap); | 1195 Handle<ConstantPoolArray> NewConstantPool(Isolate* isolate); |
1196 | 1196 |
1197 // Generate the constant pool for the generated code. | 1197 // Generate the constant pool for the generated code. |
1198 void PopulateConstantPool(ConstantPoolArray* constant_pool); | 1198 void PopulateConstantPool(ConstantPoolArray* constant_pool); |
1199 | 1199 |
1200 protected: | 1200 protected: |
1201 void emit_sse_operand(XMMRegister reg, const Operand& adr); | 1201 void emit_sse_operand(XMMRegister reg, const Operand& adr); |
1202 void emit_sse_operand(XMMRegister dst, XMMRegister src); | 1202 void emit_sse_operand(XMMRegister dst, XMMRegister src); |
1203 void emit_sse_operand(Register dst, XMMRegister src); | 1203 void emit_sse_operand(Register dst, XMMRegister src); |
1204 void emit_sse_operand(XMMRegister dst, Register src); | 1204 void emit_sse_operand(XMMRegister dst, Register src); |
1205 | 1205 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1290 private: | 1290 private: |
1291 Assembler* assembler_; | 1291 Assembler* assembler_; |
1292 #ifdef DEBUG | 1292 #ifdef DEBUG |
1293 int space_before_; | 1293 int space_before_; |
1294 #endif | 1294 #endif |
1295 }; | 1295 }; |
1296 | 1296 |
1297 } } // namespace v8::internal | 1297 } } // namespace v8::internal |
1298 | 1298 |
1299 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1299 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
OLD | NEW |