Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: src/ia32/assembler-ia32.h

Issue 6542062: Merge revisions 6894 and 6895 to the 3.0 branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.0/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/assembler.cc ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/assembler.cc ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698