| 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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 // an instruction or relocation information. | 967 // an instruction or relocation information. |
| 968 inline bool overflow() const { return pc_ >= reloc_info_writer.pos() - kGap; } | 968 inline bool overflow() const { return pc_ >= reloc_info_writer.pos() - kGap; } |
| 969 | 969 |
| 970 // Get the number of bytes available in the buffer. | 970 // Get the number of bytes available in the buffer. |
| 971 inline int available_space() const { return reloc_info_writer.pos() - pc_; } | 971 inline int available_space() const { return reloc_info_writer.pos() - pc_; } |
| 972 | 972 |
| 973 static bool IsNop(Address addr) { return *addr == 0x90; } | 973 static bool IsNop(Address addr) { return *addr == 0x90; } |
| 974 | 974 |
| 975 PositionsRecorder* positions_recorder() { return &positions_recorder_; } | 975 PositionsRecorder* positions_recorder() { return &positions_recorder_; } |
| 976 | 976 |
| 977 int relocation_writer_size() { |
| 978 return (buffer_ + buffer_size_) - reloc_info_writer.pos(); |
| 979 } |
| 980 |
| 977 // Avoid overflows for displacements etc. | 981 // Avoid overflows for displacements etc. |
| 978 static const int kMaximalBufferSize = 512*MB; | 982 static const int kMaximalBufferSize = 512*MB; |
| 979 static const int kMinimalBufferSize = 4*KB; | 983 static const int kMinimalBufferSize = 4*KB; |
| 980 | 984 |
| 981 protected: | 985 protected: |
| 982 void movsd(XMMRegister dst, const Operand& src); | 986 void movsd(XMMRegister dst, const Operand& src); |
| 983 void movsd(const Operand& dst, XMMRegister src); | 987 void movsd(const Operand& dst, XMMRegister src); |
| 984 | 988 |
| 985 void emit_sse_operand(XMMRegister reg, const Operand& adr); | 989 void emit_sse_operand(XMMRegister reg, const Operand& adr); |
| 986 void emit_sse_operand(XMMRegister dst, XMMRegister src); | 990 void emit_sse_operand(XMMRegister dst, XMMRegister src); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1081 private: | 1085 private: |
| 1082 Assembler* assembler_; | 1086 Assembler* assembler_; |
| 1083 #ifdef DEBUG | 1087 #ifdef DEBUG |
| 1084 int space_before_; | 1088 int space_before_; |
| 1085 #endif | 1089 #endif |
| 1086 }; | 1090 }; |
| 1087 | 1091 |
| 1088 } } // namespace v8::internal | 1092 } } // namespace v8::internal |
| 1089 | 1093 |
| 1090 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 1094 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
| OLD | NEW |