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

Unified Diff: src/assembler-ia32.cc

Issue 16450: Use unspilled virtual frames when compiling compare operations.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 12 years 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 side-by-side diff with in-line comments
Download patch
Index: src/assembler-ia32.cc
===================================================================
--- src/assembler-ia32.cc (revision 1019)
+++ src/assembler-ia32.cc (working copy)
@@ -743,6 +743,21 @@
}
+void Assembler::xchg(Register dst, Register src) {
+ EnsureSpace ensure_space(this);
+ last_pc_ = pc_;
+ if (src.is(eax) || dst.is(eax)) { // Single-byte encoding
+ if (dst.is(eax)) {
+ dst = src; // No need to copy eax to src, we assume src is eax.
Kevin Millikin (Chromium) 2008/12/29 09:05:38 More straightforward: EMIT(0x90 | (dst.is(eax) ? s
William Hesse 2008/12/29 11:47:42 Done.
+ }
+ EMIT(0x90 | dst.code());
+ } else {
+ EMIT(0x87);
+ EMIT(0xC0 | src.code() << 3 | dst.code());
+ }
+}
+
+
void Assembler::adc(Register dst, int32_t imm32) {
EnsureSpace ensure_space(this);
last_pc_ = pc_;
« no previous file with comments | « src/assembler-ia32.h ('k') | src/codegen-ia32.cc » ('j') | src/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698