| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 case greater_equal: | 320 case greater_equal: |
| 321 return less_equal; | 321 return less_equal; |
| 322 case less_equal: | 322 case less_equal: |
| 323 return greater_equal; | 323 return greater_equal; |
| 324 default: | 324 default: |
| 325 return cc; | 325 return cc; |
| 326 }; | 326 }; |
| 327 } | 327 } |
| 328 | 328 |
| 329 | 329 |
| 330 enum Hint { | |
| 331 no_hint = 0, | |
| 332 not_taken = 0x2e, | |
| 333 taken = 0x3e | |
| 334 }; | |
| 335 | |
| 336 // The result of negating a hint is as if the corresponding condition | |
| 337 // were negated by NegateCondition. That is, no_hint is mapped to | |
| 338 // itself and not_taken and taken are mapped to each other. | |
| 339 inline Hint NegateHint(Hint hint) { | |
| 340 return (hint == no_hint) | |
| 341 ? no_hint | |
| 342 : ((hint == not_taken) ? taken : not_taken); | |
| 343 } | |
| 344 | |
| 345 | |
| 346 // ----------------------------------------------------------------------------- | 330 // ----------------------------------------------------------------------------- |
| 347 // Machine instruction Immediates | 331 // Machine instruction Immediates |
| 348 | 332 |
| 349 class Immediate BASE_EMBEDDED { | 333 class Immediate BASE_EMBEDDED { |
| 350 public: | 334 public: |
| 351 explicit Immediate(int32_t value) : value_(value) {} | 335 explicit Immediate(int32_t value) : value_(value) {} |
| 352 | 336 |
| 353 private: | 337 private: |
| 354 int32_t value_; | 338 int32_t value_; |
| 355 | 339 |
| (...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1207 | 1191 |
| 1208 // Jump near absolute indirect (r64) | 1192 // Jump near absolute indirect (r64) |
| 1209 void jmp(Register adr); | 1193 void jmp(Register adr); |
| 1210 | 1194 |
| 1211 // Jump near absolute indirect (m64) | 1195 // Jump near absolute indirect (m64) |
| 1212 void jmp(const Operand& src); | 1196 void jmp(const Operand& src); |
| 1213 | 1197 |
| 1214 // Conditional jumps | 1198 // Conditional jumps |
| 1215 void j(Condition cc, | 1199 void j(Condition cc, |
| 1216 Label* L, | 1200 Label* L, |
| 1217 Hint hint, | |
| 1218 Label::Distance distance = Label::kFar); | 1201 Label::Distance distance = Label::kFar); |
| 1219 void j(Condition cc, Label* L, Label::Distance distance = Label::kFar) { | |
| 1220 j(cc, L, no_hint, distance); | |
| 1221 } | |
| 1222 void j(Condition cc, Handle<Code> target, RelocInfo::Mode rmode); | 1202 void j(Condition cc, Handle<Code> target, RelocInfo::Mode rmode); |
| 1223 | 1203 |
| 1224 // Floating-point operations | 1204 // Floating-point operations |
| 1225 void fld(int i); | 1205 void fld(int i); |
| 1226 | 1206 |
| 1227 void fld1(); | 1207 void fld1(); |
| 1228 void fldz(); | 1208 void fldz(); |
| 1229 void fldpi(); | 1209 void fldpi(); |
| 1230 void fldln2(); | 1210 void fldln2(); |
| 1231 | 1211 |
| (...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1644 private: | 1624 private: |
| 1645 Assembler* assembler_; | 1625 Assembler* assembler_; |
| 1646 #ifdef DEBUG | 1626 #ifdef DEBUG |
| 1647 int space_before_; | 1627 int space_before_; |
| 1648 #endif | 1628 #endif |
| 1649 }; | 1629 }; |
| 1650 | 1630 |
| 1651 } } // namespace v8::internal | 1631 } } // namespace v8::internal |
| 1652 | 1632 |
| 1653 #endif // V8_X64_ASSEMBLER_X64_H_ | 1633 #endif // V8_X64_ASSEMBLER_X64_H_ |
| OLD | NEW |