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

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

Issue 150002: * Add missing imul instruction on Intel.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « src/x64/assembler-x64.h ('k') | no next file » | 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 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 743
744 void Assembler::idiv(Register src) { 744 void Assembler::idiv(Register src) {
745 EnsureSpace ensure_space(this); 745 EnsureSpace ensure_space(this);
746 last_pc_ = pc_; 746 last_pc_ = pc_;
747 emit_rex_64(src); 747 emit_rex_64(src);
748 emit(0xF7); 748 emit(0xF7);
749 emit_modrm(0x7, src); 749 emit_modrm(0x7, src);
750 } 750 }
751 751
752 752
753 void Assembler::imul(Register src) {
754 EnsureSpace ensure_space(this);
755 last_pc_ = pc_;
756 emit_rex_64(src);
757 emit(0xF7);
758 emit_modrm(0x5, src);
759 }
760
761
753 void Assembler::imul(Register dst, Register src) { 762 void Assembler::imul(Register dst, Register src) {
754 EnsureSpace ensure_space(this); 763 EnsureSpace ensure_space(this);
755 last_pc_ = pc_; 764 last_pc_ = pc_;
756 emit_rex_64(dst, src); 765 emit_rex_64(dst, src);
757 emit(0x0F); 766 emit(0x0F);
758 emit(0xAF); 767 emit(0xAF);
759 emit_modrm(dst, src); 768 emit_modrm(dst, src);
760 } 769 }
761 770
762 771
(...skipping 1351 matching lines...) Expand 10 before | Expand all | Expand 10 after
2114 bool BreakLocationIterator::IsDebugBreakAtReturn() { 2123 bool BreakLocationIterator::IsDebugBreakAtReturn() {
2115 UNIMPLEMENTED(); 2124 UNIMPLEMENTED();
2116 return false; 2125 return false;
2117 } 2126 }
2118 2127
2119 void BreakLocationIterator::SetDebugBreakAtReturn() { 2128 void BreakLocationIterator::SetDebugBreakAtReturn() {
2120 UNIMPLEMENTED(); 2129 UNIMPLEMENTED();
2121 } 2130 }
2122 2131
2123 } } // namespace v8::internal 2132 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698