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

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

Issue 736623002: [x64] Recognize MOVSXWL. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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
« 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1394 1394
1395 void Assembler::movsxbq(Register dst, const Operand& src) { 1395 void Assembler::movsxbq(Register dst, const Operand& src) {
1396 EnsureSpace ensure_space(this); 1396 EnsureSpace ensure_space(this);
1397 emit_rex_64(dst, src); 1397 emit_rex_64(dst, src);
1398 emit(0x0F); 1398 emit(0x0F);
1399 emit(0xBE); 1399 emit(0xBE);
1400 emit_operand(dst, src); 1400 emit_operand(dst, src);
1401 } 1401 }
1402 1402
1403 1403
1404 void Assembler::movsxwl(Register dst, Register src) {
1405 EnsureSpace ensure_space(this);
1406 emit_optional_rex_32(dst, src);
1407 emit(0x0F);
1408 emit(0xBF);
1409 emit_modrm(dst, src);
1410 }
1411
1412
1404 void Assembler::movsxwl(Register dst, const Operand& src) { 1413 void Assembler::movsxwl(Register dst, const Operand& src) {
1405 EnsureSpace ensure_space(this); 1414 EnsureSpace ensure_space(this);
1406 emit_optional_rex_32(dst, src); 1415 emit_optional_rex_32(dst, src);
1407 emit(0x0F); 1416 emit(0x0F);
1408 emit(0xBF); 1417 emit(0xBF);
1409 emit_operand(dst, src); 1418 emit_operand(dst, src);
1410 } 1419 }
1411 1420
1412 1421
1413 void Assembler::movsxwq(Register dst, const Operand& src) { 1422 void Assembler::movsxwq(Register dst, const Operand& src) {
(...skipping 1747 matching lines...) Expand 10 before | Expand all | Expand 10 after
3161 3170
3162 3171
3163 bool RelocInfo::IsInConstantPool() { 3172 bool RelocInfo::IsInConstantPool() {
3164 return false; 3173 return false;
3165 } 3174 }
3166 3175
3167 3176
3168 } } // namespace v8::internal 3177 } } // namespace v8::internal
3169 3178
3170 #endif // V8_TARGET_ARCH_X64 3179 #endif // V8_TARGET_ARCH_X64
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