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

Side by Side Diff: src/x64/assembler-x64.cc

Issue 2834027: X64: A number of small tweaks and fixes. (Closed)
Patch Set: Created 10 years, 5 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
« no previous file with comments | « no previous file | src/x64/codegen-x64.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1545 matching lines...) Expand 10 before | Expand all | Expand 10 after
1556 emit_rex_64(dst); 1556 emit_rex_64(dst);
1557 emit(0xB8 | dst.low_bits()); 1557 emit(0xB8 | dst.low_bits());
1558 emitq(reinterpret_cast<uintptr_t>(value.location()), mode); 1558 emitq(reinterpret_cast<uintptr_t>(value.location()), mode);
1559 } 1559 }
1560 } 1560 }
1561 1561
1562 1562
1563 void Assembler::movsxbq(Register dst, const Operand& src) { 1563 void Assembler::movsxbq(Register dst, const Operand& src) {
1564 EnsureSpace ensure_space(this); 1564 EnsureSpace ensure_space(this);
1565 last_pc_ = pc_; 1565 last_pc_ = pc_;
1566 emit_rex_32(dst, src); 1566 emit_rex_64(dst, src);
1567 emit(0x0F); 1567 emit(0x0F);
1568 emit(0xBE); 1568 emit(0xBE);
1569 emit_operand(dst, src); 1569 emit_operand(dst, src);
1570 } 1570 }
1571 1571
1572 1572
1573 void Assembler::movsxwq(Register dst, const Operand& src) { 1573 void Assembler::movsxwq(Register dst, const Operand& src) {
1574 EnsureSpace ensure_space(this); 1574 EnsureSpace ensure_space(this);
1575 last_pc_ = pc_; 1575 last_pc_ = pc_;
1576 emit_rex_64(dst, src); 1576 emit_rex_64(dst, src);
(...skipping 17 matching lines...) Expand all
1594 last_pc_ = pc_; 1594 last_pc_ = pc_;
1595 emit_rex_64(dst, src); 1595 emit_rex_64(dst, src);
1596 emit(0x63); 1596 emit(0x63);
1597 emit_operand(dst, src); 1597 emit_operand(dst, src);
1598 } 1598 }
1599 1599
1600 1600
1601 void Assembler::movzxbq(Register dst, const Operand& src) { 1601 void Assembler::movzxbq(Register dst, const Operand& src) {
1602 EnsureSpace ensure_space(this); 1602 EnsureSpace ensure_space(this);
1603 last_pc_ = pc_; 1603 last_pc_ = pc_;
1604 emit_rex_64(dst, src); 1604 emit_optional_rex_32(dst, src);
1605 emit(0x0F); 1605 emit(0x0F);
1606 emit(0xB6); 1606 emit(0xB6);
1607 emit_operand(dst, src); 1607 emit_operand(dst, src);
1608 } 1608 }
1609 1609
1610 1610
1611 void Assembler::movzxbl(Register dst, const Operand& src) { 1611 void Assembler::movzxbl(Register dst, const Operand& src) {
1612 EnsureSpace ensure_space(this); 1612 EnsureSpace ensure_space(this);
1613 last_pc_ = pc_; 1613 last_pc_ = pc_;
1614 emit_optional_rex_32(dst, src); 1614 emit_optional_rex_32(dst, src);
1615 emit(0x0F); 1615 emit(0x0F);
1616 emit(0xB6); 1616 emit(0xB6);
1617 emit_operand(dst, src); 1617 emit_operand(dst, src);
1618 } 1618 }
1619 1619
1620 1620
1621 void Assembler::movzxwq(Register dst, const Operand& src) { 1621 void Assembler::movzxwq(Register dst, const Operand& src) {
1622 EnsureSpace ensure_space(this); 1622 EnsureSpace ensure_space(this);
1623 last_pc_ = pc_; 1623 last_pc_ = pc_;
1624 emit_rex_64(dst, src); 1624 emit_optional_rex_32(dst, src);
1625 emit(0x0F); 1625 emit(0x0F);
1626 emit(0xB7); 1626 emit(0xB7);
1627 emit_operand(dst, src); 1627 emit_operand(dst, src);
1628 } 1628 }
1629 1629
1630 1630
1631 void Assembler::movzxwl(Register dst, const Operand& src) { 1631 void Assembler::movzxwl(Register dst, const Operand& src) {
1632 EnsureSpace ensure_space(this); 1632 EnsureSpace ensure_space(this);
1633 last_pc_ = pc_; 1633 last_pc_ = pc_;
1634 emit_optional_rex_32(dst, src); 1634 emit_optional_rex_32(dst, src);
(...skipping 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after
2955 // specially coded on x64 means that it is a relative 32 bit address, as used 2955 // specially coded on x64 means that it is a relative 32 bit address, as used
2956 // by branch instructions. 2956 // by branch instructions.
2957 return (1 << rmode_) & kApplyMask; 2957 return (1 << rmode_) & kApplyMask;
2958 } 2958 }
2959 2959
2960 2960
2961 2961
2962 } } // namespace v8::internal 2962 } } // namespace v8::internal
2963 2963
2964 #endif // V8_TARGET_ARCH_X64 2964 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698