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

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

Issue 11852007: Optimize the emitted instruction of random function for X64 (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 11 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/x64/assembler-x64.h ('k') | src/x64/lithium-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after
1639 1639
1640 void Assembler::movzxwl(Register dst, const Operand& src) { 1640 void Assembler::movzxwl(Register dst, const Operand& src) {
1641 EnsureSpace ensure_space(this); 1641 EnsureSpace ensure_space(this);
1642 emit_optional_rex_32(dst, src); 1642 emit_optional_rex_32(dst, src);
1643 emit(0x0F); 1643 emit(0x0F);
1644 emit(0xB7); 1644 emit(0xB7);
1645 emit_operand(dst, src); 1645 emit_operand(dst, src);
1646 } 1646 }
1647 1647
1648 1648
1649 void Assembler::movzxwl(Register dst, Register src) {
1650 EnsureSpace ensure_space(this);
1651 emit_optional_rex_32(dst, src);
1652 emit(0x0F);
1653 emit(0xB7);
1654 emit_modrm(dst, src);
1655 }
1656
1657
1649 void Assembler::repmovsb() { 1658 void Assembler::repmovsb() {
1650 EnsureSpace ensure_space(this); 1659 EnsureSpace ensure_space(this);
1651 emit(0xF3); 1660 emit(0xF3);
1652 emit(0xA4); 1661 emit(0xA4);
1653 } 1662 }
1654 1663
1655 1664
1656 void Assembler::repmovsw() { 1665 void Assembler::repmovsw() {
1657 EnsureSpace ensure_space(this); 1666 EnsureSpace ensure_space(this);
1658 emit(0x66); // Operand size override. 1667 emit(0x66); // Operand size override.
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after
3041 bool RelocInfo::IsCodedSpecially() { 3050 bool RelocInfo::IsCodedSpecially() {
3042 // The deserializer needs to know whether a pointer is specially coded. Being 3051 // The deserializer needs to know whether a pointer is specially coded. Being
3043 // specially coded on x64 means that it is a relative 32 bit address, as used 3052 // specially coded on x64 means that it is a relative 32 bit address, as used
3044 // by branch instructions. 3053 // by branch instructions.
3045 return (1 << rmode_) & kApplyMask; 3054 return (1 << rmode_) & kApplyMask;
3046 } 3055 }
3047 3056
3048 } } // namespace v8::internal 3057 } } // namespace v8::internal
3049 3058
3050 #endif // V8_TARGET_ARCH_X64 3059 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698