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

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

Issue 6576030: X64 Crankshaft: Implement Math.abs on x64 lithium. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 10 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 2977 matching lines...) Expand 10 before | Expand all | Expand 10 after
2988 EnsureSpace ensure_space(this); 2988 EnsureSpace ensure_space(this);
2989 last_pc_ = pc_; 2989 last_pc_ = pc_;
2990 emit(0xF2); 2990 emit(0xF2);
2991 emit_optional_rex_32(dst, src); 2991 emit_optional_rex_32(dst, src);
2992 emit(0x0F); 2992 emit(0x0F);
2993 emit(0x5E); 2993 emit(0x5E);
2994 emit_sse_operand(dst, src); 2994 emit_sse_operand(dst, src);
2995 } 2995 }
2996 2996
2997 2997
2998 void Assembler::andpd(XMMRegister dst, XMMRegister src) {
2999 EnsureSpace ensure_space(this);
3000 last_pc_ = pc_;
3001 emit(0x66);
3002 emit_optional_rex_32(dst, src);
3003 emit(0x0F);
3004 emit(0x54);
3005 emit_sse_operand(dst, src);
3006 }
3007
3008
3009 void Assembler::orpd(XMMRegister dst, XMMRegister src) {
3010 EnsureSpace ensure_space(this);
3011 last_pc_ = pc_;
3012 emit(0x66);
3013 emit_optional_rex_32(dst, src);
3014 emit(0x0F);
3015 emit(0x56);
3016 emit_sse_operand(dst, src);
3017 }
3018
3019
2998 void Assembler::xorpd(XMMRegister dst, XMMRegister src) { 3020 void Assembler::xorpd(XMMRegister dst, XMMRegister src) {
2999 EnsureSpace ensure_space(this); 3021 EnsureSpace ensure_space(this);
3000 last_pc_ = pc_; 3022 last_pc_ = pc_;
3001 emit(0x66); 3023 emit(0x66);
3002 emit_optional_rex_32(dst, src); 3024 emit_optional_rex_32(dst, src);
3003 emit(0x0F); 3025 emit(0x0F);
3004 emit(0x57); 3026 emit(0x57);
3005 emit_sse_operand(dst, src); 3027 emit_sse_operand(dst, src);
3006 } 3028 }
3007 3029
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
3131 // specially coded on x64 means that it is a relative 32 bit address, as used 3153 // specially coded on x64 means that it is a relative 32 bit address, as used
3132 // by branch instructions. 3154 // by branch instructions.
3133 return (1 << rmode_) & kApplyMask; 3155 return (1 << rmode_) & kApplyMask;
3134 } 3156 }
3135 3157
3136 3158
3137 3159
3138 } } // namespace v8::internal 3160 } } // namespace v8::internal
3139 3161
3140 #endif // V8_TARGET_ARCH_X64 3162 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/disasm-x64.cc » ('j') | src/x64/lithium-codegen-x64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698