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

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

Issue 11748013: Merged r13260, r13266, r13268, r13270, r13274 into 3.15 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.15
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/disasm-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 2933 matching lines...) Expand 10 before | Expand all | Expand 10 after
2944 void Assembler::movmskpd(Register dst, XMMRegister src) { 2944 void Assembler::movmskpd(Register dst, XMMRegister src) {
2945 EnsureSpace ensure_space(this); 2945 EnsureSpace ensure_space(this);
2946 emit(0x66); 2946 emit(0x66);
2947 emit_optional_rex_32(dst, src); 2947 emit_optional_rex_32(dst, src);
2948 emit(0x0f); 2948 emit(0x0f);
2949 emit(0x50); 2949 emit(0x50);
2950 emit_sse_operand(dst, src); 2950 emit_sse_operand(dst, src);
2951 } 2951 }
2952 2952
2953 2953
2954 void Assembler::movmskps(Register dst, XMMRegister src) {
2955 EnsureSpace ensure_space(this);
2956 emit_optional_rex_32(dst, src);
2957 emit(0x0f);
2958 emit(0x50);
2959 emit_sse_operand(dst, src);
2960 }
2961
2962
2954 void Assembler::emit_sse_operand(XMMRegister reg, const Operand& adr) { 2963 void Assembler::emit_sse_operand(XMMRegister reg, const Operand& adr) {
2955 Register ireg = { reg.code() }; 2964 Register ireg = { reg.code() };
2956 emit_operand(ireg, adr); 2965 emit_operand(ireg, adr);
2957 } 2966 }
2958 2967
2959 2968
2960 void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) { 2969 void Assembler::emit_sse_operand(XMMRegister dst, XMMRegister src) {
2961 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits()); 2970 emit(0xC0 | (dst.low_bits() << 3) | src.low_bits());
2962 } 2971 }
2963 2972
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
3031 bool RelocInfo::IsCodedSpecially() { 3040 bool RelocInfo::IsCodedSpecially() {
3032 // The deserializer needs to know whether a pointer is specially coded. Being 3041 // The deserializer needs to know whether a pointer is specially coded. Being
3033 // specially coded on x64 means that it is a relative 32 bit address, as used 3042 // specially coded on x64 means that it is a relative 32 bit address, as used
3034 // by branch instructions. 3043 // by branch instructions.
3035 return (1 << rmode_) & kApplyMask; 3044 return (1 << rmode_) & kApplyMask;
3036 } 3045 }
3037 3046
3038 } } // namespace v8::internal 3047 } } // namespace v8::internal
3039 3048
3040 #endif // V8_TARGET_ARCH_X64 3049 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.h ('k') | src/x64/disasm-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698