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

Side by Side Diff: src/x87/disasm-x87.cc

Issue 1276113002: Security: disable nontemporals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « src/ia32/disasm-ia32.cc ('k') | test/cctest/test-assembler-arm64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 <assert.h> 5 #include <assert.h>
6 #include <stdarg.h> 6 #include <stdarg.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include "src/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 if (*data == 0x17) { 1277 if (*data == 0x17) {
1278 data++; 1278 data++;
1279 int mod, regop, rm; 1279 int mod, regop, rm;
1280 get_modrm(*data, &mod, &regop, &rm); 1280 get_modrm(*data, &mod, &regop, &rm);
1281 AppendToBuffer("ptest %s,%s", 1281 AppendToBuffer("ptest %s,%s",
1282 NameOfXMMRegister(regop), 1282 NameOfXMMRegister(regop),
1283 NameOfXMMRegister(rm)); 1283 NameOfXMMRegister(rm));
1284 data++; 1284 data++;
1285 } else if (*data == 0x2A) { 1285 } else if (*data == 0x2A) {
1286 // movntdqa 1286 // movntdqa
1287 data++; 1287 UnimplementedInstruction();
1288 int mod, regop, rm;
1289 get_modrm(*data, &mod, &regop, &rm);
1290 AppendToBuffer("movntdqa %s,", NameOfXMMRegister(regop));
1291 data += PrintRightOperand(data);
1292 } else { 1288 } else {
1293 UnimplementedInstruction(); 1289 UnimplementedInstruction();
1294 } 1290 }
1295 } else if (*data == 0x3A) { 1291 } else if (*data == 0x3A) {
1296 data++; 1292 data++;
1297 if (*data == 0x0B) { 1293 if (*data == 0x0B) {
1298 data++; 1294 data++;
1299 int mod, regop, rm; 1295 int mod, regop, rm;
1300 get_modrm(*data, &mod, &regop, &rm); 1296 get_modrm(*data, &mod, &regop, &rm);
1301 int8_t imm8 = static_cast<int8_t>(data[1]); 1297 int8_t imm8 = static_cast<int8_t>(data[1]);
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 get_modrm(*data, &mod, &regop, &rm); 1459 get_modrm(*data, &mod, &regop, &rm);
1464 AppendToBuffer("pand %s,%s", 1460 AppendToBuffer("pand %s,%s",
1465 NameOfXMMRegister(regop), 1461 NameOfXMMRegister(regop),
1466 NameOfXMMRegister(rm)); 1462 NameOfXMMRegister(rm));
1467 data++; 1463 data++;
1468 } else if (*data == 0xE7) { 1464 } else if (*data == 0xE7) {
1469 data++; 1465 data++;
1470 int mod, regop, rm; 1466 int mod, regop, rm;
1471 get_modrm(*data, &mod, &regop, &rm); 1467 get_modrm(*data, &mod, &regop, &rm);
1472 if (mod == 3) { 1468 if (mod == 3) {
1473 AppendToBuffer("movntdq "); 1469 // movntdq
1474 data += PrintRightOperand(data); 1470 UnimplementedInstruction();
1475 AppendToBuffer(",%s", NameOfXMMRegister(regop));
1476 } else { 1471 } else {
1477 UnimplementedInstruction(); 1472 UnimplementedInstruction();
1478 } 1473 }
1479 } else if (*data == 0xEF) { 1474 } else if (*data == 0xEF) {
1480 data++; 1475 data++;
1481 int mod, regop, rm; 1476 int mod, regop, rm;
1482 get_modrm(*data, &mod, &regop, &rm); 1477 get_modrm(*data, &mod, &regop, &rm);
1483 AppendToBuffer("pxor %s,%s", 1478 AppendToBuffer("pxor %s,%s",
1484 NameOfXMMRegister(regop), 1479 NameOfXMMRegister(regop),
1485 NameOfXMMRegister(rm)); 1480 NameOfXMMRegister(rm));
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
1804 fprintf(f, " "); 1799 fprintf(f, " ");
1805 } 1800 }
1806 fprintf(f, " %s\n", buffer.start()); 1801 fprintf(f, " %s\n", buffer.start());
1807 } 1802 }
1808 } 1803 }
1809 1804
1810 1805
1811 } // namespace disasm 1806 } // namespace disasm
1812 1807
1813 #endif // V8_TARGET_ARCH_X87 1808 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/ia32/disasm-ia32.cc ('k') | test/cctest/test-assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698