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 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 void pop(const Operand& dst); | 506 void pop(const Operand& dst); |
507 | 507 |
508 void enter(Immediate size); | 508 void enter(Immediate size); |
509 void leave(); | 509 void leave(); |
510 | 510 |
511 // Moves | 511 // Moves |
512 void movb(Register dst, const Operand& src); | 512 void movb(Register dst, const Operand& src); |
513 void movb(Register dst, Immediate imm); | 513 void movb(Register dst, Immediate imm); |
514 void movb(const Operand& dst, Register src); | 514 void movb(const Operand& dst, Register src); |
515 | 515 |
| 516 // Move the low 16 bits of a 64-bit register value to a 16-bit |
| 517 // memory location. |
| 518 void movw(const Operand& dst, Register src); |
| 519 |
516 void movl(Register dst, Register src); | 520 void movl(Register dst, Register src); |
517 void movl(Register dst, const Operand& src); | 521 void movl(Register dst, const Operand& src); |
518 void movl(const Operand& dst, Register src); | 522 void movl(const Operand& dst, Register src); |
519 void movl(const Operand& dst, Immediate imm); | 523 void movl(const Operand& dst, Immediate imm); |
520 // Load a 32-bit immediate value, zero-extended to 64 bits. | 524 // Load a 32-bit immediate value, zero-extended to 64 bits. |
521 void movl(Register dst, Immediate imm32); | 525 void movl(Register dst, Immediate imm32); |
522 | 526 |
523 // Move 64 bit register value to 64-bit memory location. | 527 // Move 64 bit register value to 64-bit memory location. |
524 void movq(const Operand& dst, Register src); | 528 void movq(const Operand& dst, Register src); |
525 // Move 64 bit memory location to 64-bit register value. | 529 // Move 64 bit memory location to 64-bit register value. |
526 void movq(Register dst, const Operand& src); | 530 void movq(Register dst, const Operand& src); |
527 void movq(Register dst, Register src); | 531 void movq(Register dst, Register src); |
528 // Sign extends immediate 32-bit value to 64 bits. | 532 // Sign extends immediate 32-bit value to 64 bits. |
529 void movq(Register dst, Immediate x); | 533 void movq(Register dst, Immediate x); |
530 // Move the offset of the label location relative to the current | 534 // Move the offset of the label location relative to the current |
531 // position (after the move) to the destination. | 535 // position (after the move) to the destination. |
532 void movl(const Operand& dst, Label* src); | 536 void movl(const Operand& dst, Label* src); |
533 | 537 |
534 // Move sign extended immediate to memory location. | 538 // Move sign extended immediate to memory location. |
535 void movq(const Operand& dst, Immediate value); | 539 void movq(const Operand& dst, Immediate value); |
536 // New x64 instructions to load a 64-bit immediate into a register. | 540 // New x64 instructions to load a 64-bit immediate into a register. |
537 // All 64-bit immediates must have a relocation mode. | 541 // All 64-bit immediates must have a relocation mode. |
538 void movq(Register dst, void* ptr, RelocInfo::Mode rmode); | 542 void movq(Register dst, void* ptr, RelocInfo::Mode rmode); |
539 void movq(Register dst, int64_t value, RelocInfo::Mode rmode); | 543 void movq(Register dst, int64_t value, RelocInfo::Mode rmode); |
540 void movq(Register dst, const char* s, RelocInfo::Mode rmode); | 544 void movq(Register dst, const char* s, RelocInfo::Mode rmode); |
541 // Moves the address of the external reference into the register. | 545 // Moves the address of the external reference into the register. |
542 void movq(Register dst, ExternalReference ext); | 546 void movq(Register dst, ExternalReference ext); |
543 void movq(Register dst, Handle<Object> handle, RelocInfo::Mode rmode); | 547 void movq(Register dst, Handle<Object> handle, RelocInfo::Mode rmode); |
544 | 548 |
| 549 void movsxbq(Register dst, const Operand& src); |
| 550 void movsxwq(Register dst, const Operand& src); |
545 void movsxlq(Register dst, Register src); | 551 void movsxlq(Register dst, Register src); |
546 void movsxlq(Register dst, const Operand& src); | 552 void movsxlq(Register dst, const Operand& src); |
547 void movzxbq(Register dst, const Operand& src); | 553 void movzxbq(Register dst, const Operand& src); |
548 void movzxbl(Register dst, const Operand& src); | 554 void movzxbl(Register dst, const Operand& src); |
| 555 void movzxwq(Register dst, const Operand& src); |
549 void movzxwl(Register dst, const Operand& src); | 556 void movzxwl(Register dst, const Operand& src); |
550 | 557 |
551 // New x64 instruction to load from an immediate 64-bit pointer into RAX. | 558 // New x64 instruction to load from an immediate 64-bit pointer into RAX. |
552 void load_rax(void* ptr, RelocInfo::Mode rmode); | 559 void load_rax(void* ptr, RelocInfo::Mode rmode); |
553 void load_rax(ExternalReference ext); | 560 void load_rax(ExternalReference ext); |
554 | 561 |
555 // Conditional moves. | 562 // Conditional moves. |
556 void cmovq(Condition cc, Register dst, Register src); | 563 void cmovq(Condition cc, Register dst, Register src); |
557 void cmovq(Condition cc, Register dst, const Operand& src); | 564 void cmovq(Condition cc, Register dst, const Operand& src); |
558 void cmovl(Condition cc, Register dst, Register src); | 565 void cmovl(Condition cc, Register dst, Register src); |
(...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1355 private: | 1362 private: |
1356 Assembler* assembler_; | 1363 Assembler* assembler_; |
1357 #ifdef DEBUG | 1364 #ifdef DEBUG |
1358 int space_before_; | 1365 int space_before_; |
1359 #endif | 1366 #endif |
1360 }; | 1367 }; |
1361 | 1368 |
1362 } } // namespace v8::internal | 1369 } } // namespace v8::internal |
1363 | 1370 |
1364 #endif // V8_X64_ASSEMBLER_X64_H_ | 1371 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |