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

Side by Side Diff: src/ia32/assembler-ia32.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/assembler-ia32.h ('k') | src/ia32/disasm-ia32.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 2307 matching lines...) Expand 10 before | Expand all | Expand 10 after
2318 2318
2319 void Assembler::movdqu(XMMRegister dst, const Operand& src) { 2319 void Assembler::movdqu(XMMRegister dst, const Operand& src) {
2320 EnsureSpace ensure_space(this); 2320 EnsureSpace ensure_space(this);
2321 EMIT(0xF3); 2321 EMIT(0xF3);
2322 EMIT(0x0F); 2322 EMIT(0x0F);
2323 EMIT(0x6F); 2323 EMIT(0x6F);
2324 emit_sse_operand(dst, src); 2324 emit_sse_operand(dst, src);
2325 } 2325 }
2326 2326
2327 2327
2328 void Assembler::movntdqa(XMMRegister dst, const Operand& src) {
2329 DCHECK(IsEnabled(SSE4_1));
2330 EnsureSpace ensure_space(this);
2331 EMIT(0x66);
2332 EMIT(0x0F);
2333 EMIT(0x38);
2334 EMIT(0x2A);
2335 emit_sse_operand(dst, src);
2336 }
2337
2338
2339 void Assembler::movntdq(const Operand& dst, XMMRegister src) {
2340 EnsureSpace ensure_space(this);
2341 EMIT(0x66);
2342 EMIT(0x0F);
2343 EMIT(0xE7);
2344 emit_sse_operand(src, dst);
2345 }
2346
2347
2348 void Assembler::prefetch(const Operand& src, int level) { 2328 void Assembler::prefetch(const Operand& src, int level) {
2349 DCHECK(is_uint2(level)); 2329 DCHECK(is_uint2(level));
2350 EnsureSpace ensure_space(this); 2330 EnsureSpace ensure_space(this);
2351 EMIT(0x0F); 2331 EMIT(0x0F);
2352 EMIT(0x18); 2332 EMIT(0x18);
2353 // Emit hint number in Reg position of RegR/M. 2333 // Emit hint number in Reg position of RegR/M.
2354 XMMRegister code = XMMRegister::from_code(level); 2334 XMMRegister code = XMMRegister::from_code(level);
2355 emit_sse_operand(code, src); 2335 emit_sse_operand(code, src);
2356 } 2336 }
2357 2337
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
2968 fflush(coverage_log); 2948 fflush(coverage_log);
2969 } 2949 }
2970 } 2950 }
2971 2951
2972 #endif 2952 #endif
2973 2953
2974 } // namespace internal 2954 } // namespace internal
2975 } // namespace v8 2955 } // namespace v8
2976 2956
2977 #endif // V8_TARGET_ARCH_IA32 2957 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/disasm-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698