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

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

Issue 71163006: Merge bleeding_edge r17376:17693. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Fix all.gyp Created 7 years, 1 month 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/i18n.js ('k') | src/ia32/assembler-ia32.cc » ('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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 728
729 // Moves 729 // Moves
730 void mov_b(Register dst, Register src) { mov_b(dst, Operand(src)); } 730 void mov_b(Register dst, Register src) { mov_b(dst, Operand(src)); }
731 void mov_b(Register dst, const Operand& src); 731 void mov_b(Register dst, const Operand& src);
732 void mov_b(Register dst, int8_t imm8) { mov_b(Operand(dst), imm8); } 732 void mov_b(Register dst, int8_t imm8) { mov_b(Operand(dst), imm8); }
733 void mov_b(const Operand& dst, int8_t imm8); 733 void mov_b(const Operand& dst, int8_t imm8);
734 void mov_b(const Operand& dst, Register src); 734 void mov_b(const Operand& dst, Register src);
735 735
736 void mov_w(Register dst, const Operand& src); 736 void mov_w(Register dst, const Operand& src);
737 void mov_w(const Operand& dst, Register src); 737 void mov_w(const Operand& dst, Register src);
738 void mov_w(const Operand& dst, int16_t imm16);
738 739
739 void mov(Register dst, int32_t imm32); 740 void mov(Register dst, int32_t imm32);
740 void mov(Register dst, const Immediate& x); 741 void mov(Register dst, const Immediate& x);
741 void mov(Register dst, Handle<Object> handle); 742 void mov(Register dst, Handle<Object> handle);
742 void mov(Register dst, const Operand& src); 743 void mov(Register dst, const Operand& src);
743 void mov(Register dst, Register src); 744 void mov(Register dst, Register src);
744 void mov(const Operand& dst, const Immediate& x); 745 void mov(const Operand& dst, const Immediate& x);
745 void mov(const Operand& dst, Handle<Object> handle); 746 void mov(const Operand& dst, Handle<Object> handle);
746 void mov(const Operand& dst, Register src); 747 void mov(const Operand& dst, Register src);
747 748
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 void fwait(); 1011 void fwait();
1011 void fnclex(); 1012 void fnclex();
1012 1013
1013 void frndint(); 1014 void frndint();
1014 1015
1015 void sahf(); 1016 void sahf();
1016 void setcc(Condition cc, Register reg); 1017 void setcc(Condition cc, Register reg);
1017 1018
1018 void cpuid(); 1019 void cpuid();
1019 1020
1021 // SSE instructions
1022 void andps(XMMRegister dst, XMMRegister src);
1023 void xorps(XMMRegister dst, XMMRegister src);
1024 void orps(XMMRegister dst, XMMRegister src);
1025
1020 // SSE2 instructions 1026 // SSE2 instructions
1021 void cvttss2si(Register dst, const Operand& src); 1027 void cvttss2si(Register dst, const Operand& src);
1022 void cvttsd2si(Register dst, const Operand& src); 1028 void cvttsd2si(Register dst, const Operand& src);
1023 void cvtsd2si(Register dst, XMMRegister src); 1029 void cvtsd2si(Register dst, XMMRegister src);
1024 1030
1025 void cvtsi2sd(XMMRegister dst, Register src) { cvtsi2sd(dst, Operand(src)); } 1031 void cvtsi2sd(XMMRegister dst, Register src) { cvtsi2sd(dst, Operand(src)); }
1026 void cvtsi2sd(XMMRegister dst, const Operand& src); 1032 void cvtsi2sd(XMMRegister dst, const Operand& src);
1027 void cvtss2sd(XMMRegister dst, XMMRegister src); 1033 void cvtss2sd(XMMRegister dst, XMMRegister src);
1028 void cvtsd2ss(XMMRegister dst, XMMRegister src); 1034 void cvtsd2ss(XMMRegister dst, XMMRegister src);
1029 1035
1030 void addsd(XMMRegister dst, XMMRegister src); 1036 void addsd(XMMRegister dst, XMMRegister src);
1031 void addsd(XMMRegister dst, const Operand& src); 1037 void addsd(XMMRegister dst, const Operand& src);
1032 void subsd(XMMRegister dst, XMMRegister src); 1038 void subsd(XMMRegister dst, XMMRegister src);
1033 void mulsd(XMMRegister dst, XMMRegister src); 1039 void mulsd(XMMRegister dst, XMMRegister src);
1034 void mulsd(XMMRegister dst, const Operand& src); 1040 void mulsd(XMMRegister dst, const Operand& src);
1035 void divsd(XMMRegister dst, XMMRegister src); 1041 void divsd(XMMRegister dst, XMMRegister src);
1036 void xorpd(XMMRegister dst, XMMRegister src); 1042 void xorpd(XMMRegister dst, XMMRegister src);
1037 void xorps(XMMRegister dst, XMMRegister src);
1038 void sqrtsd(XMMRegister dst, XMMRegister src); 1043 void sqrtsd(XMMRegister dst, XMMRegister src);
1039 1044
1040 void andpd(XMMRegister dst, XMMRegister src); 1045 void andpd(XMMRegister dst, XMMRegister src);
1041 void orpd(XMMRegister dst, XMMRegister src); 1046 void orpd(XMMRegister dst, XMMRegister src);
1042 1047
1043 void ucomisd(XMMRegister dst, XMMRegister src); 1048 void ucomisd(XMMRegister dst, XMMRegister src);
1044 void ucomisd(XMMRegister dst, const Operand& src); 1049 void ucomisd(XMMRegister dst, const Operand& src);
1045 1050
1046 enum RoundingMode { 1051 enum RoundingMode {
1047 kRoundToNearest = 0x0, 1052 kRoundToNearest = 0x0,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 1155
1151 PositionsRecorder* positions_recorder() { return &positions_recorder_; } 1156 PositionsRecorder* positions_recorder() { return &positions_recorder_; }
1152 1157
1153 int relocation_writer_size() { 1158 int relocation_writer_size() {
1154 return (buffer_ + buffer_size_) - reloc_info_writer.pos(); 1159 return (buffer_ + buffer_size_) - reloc_info_writer.pos();
1155 } 1160 }
1156 1161
1157 // Avoid overflows for displacements etc. 1162 // Avoid overflows for displacements etc.
1158 static const int kMaximalBufferSize = 512*MB; 1163 static const int kMaximalBufferSize = 512*MB;
1159 1164
1160 byte byte_at(int pos) { return buffer_[pos]; } 1165 byte byte_at(int pos) { return buffer_[pos]; }
1161 void set_byte_at(int pos, byte value) { buffer_[pos] = value; } 1166 void set_byte_at(int pos, byte value) { buffer_[pos] = value; }
1162 1167
1163 protected: 1168 protected:
1164 void emit_sse_operand(XMMRegister reg, const Operand& adr); 1169 void emit_sse_operand(XMMRegister reg, const Operand& adr);
1165 void emit_sse_operand(XMMRegister dst, XMMRegister src); 1170 void emit_sse_operand(XMMRegister dst, XMMRegister src);
1166 void emit_sse_operand(Register dst, XMMRegister src); 1171 void emit_sse_operand(Register dst, XMMRegister src);
1167 void emit_sse_operand(XMMRegister dst, Register src); 1172 void emit_sse_operand(XMMRegister dst, Register src);
1168 1173
1169 byte* addr_at(int pos) { return buffer_ + pos; } 1174 byte* addr_at(int pos) { return buffer_ + pos; }
1170 1175
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 private: 1258 private:
1254 Assembler* assembler_; 1259 Assembler* assembler_;
1255 #ifdef DEBUG 1260 #ifdef DEBUG
1256 int space_before_; 1261 int space_before_;
1257 #endif 1262 #endif
1258 }; 1263 };
1259 1264
1260 } } // namespace v8::internal 1265 } } // namespace v8::internal
1261 1266
1262 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1267 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/i18n.js ('k') | src/ia32/assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698