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

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

Issue 1947833002: X87: [Atomics] Make Atomics.store a builtin using TF. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/x87/assembler-x87.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 (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 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 } 545 }
546 } 546 }
547 547
548 548
549 void Assembler::xchg(Register dst, const Operand& src) { 549 void Assembler::xchg(Register dst, const Operand& src) {
550 EnsureSpace ensure_space(this); 550 EnsureSpace ensure_space(this);
551 EMIT(0x87); 551 EMIT(0x87);
552 emit_operand(dst, src); 552 emit_operand(dst, src);
553 } 553 }
554 554
555 void Assembler::xchg_b(Register reg, const Operand& op) {
556 EnsureSpace ensure_space(this);
557 EMIT(0x86);
558 emit_operand(reg, op);
559 }
560
561 void Assembler::xchg_w(Register reg, const Operand& op) {
562 EnsureSpace ensure_space(this);
563 EMIT(0x66);
564 EMIT(0x87);
565 emit_operand(reg, op);
566 }
555 567
556 void Assembler::adc(Register dst, int32_t imm32) { 568 void Assembler::adc(Register dst, int32_t imm32) {
557 EnsureSpace ensure_space(this); 569 EnsureSpace ensure_space(this);
558 emit_arith(2, Operand(dst), Immediate(imm32)); 570 emit_arith(2, Operand(dst), Immediate(imm32));
559 } 571 }
560 572
561 573
562 void Assembler::adc(Register dst, const Operand& src) { 574 void Assembler::adc(Register dst, const Operand& src) {
563 EnsureSpace ensure_space(this); 575 EnsureSpace ensure_space(this);
564 EMIT(0x13); 576 EMIT(0x13);
(...skipping 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after
2172 fflush(coverage_log); 2184 fflush(coverage_log);
2173 } 2185 }
2174 } 2186 }
2175 2187
2176 #endif 2188 #endif
2177 2189
2178 } // namespace internal 2190 } // namespace internal
2179 } // namespace v8 2191 } // namespace v8
2180 2192
2181 #endif // V8_TARGET_ARCH_X87 2193 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x87/assembler-x87.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698