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

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

Issue 1617503003: [Atomics] code stubs for atomic operations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: call code stub from TF Created 4 years, 10 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
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 2117 matching lines...) Expand 10 before | Expand all | Expand 10 after
2128 emit(al | B24 | B21 | (imm16 >> 4)*B8 | BKPT | (imm16 & 0xf)); 2128 emit(al | B24 | B21 | (imm16 >> 4)*B8 | BKPT | (imm16 & 0xf));
2129 } 2129 }
2130 2130
2131 2131
2132 void Assembler::svc(uint32_t imm24, Condition cond) { 2132 void Assembler::svc(uint32_t imm24, Condition cond) {
2133 DCHECK(is_uint24(imm24)); 2133 DCHECK(is_uint24(imm24));
2134 emit(cond | 15*B24 | imm24); 2134 emit(cond | 15*B24 | imm24);
2135 } 2135 }
2136 2136
2137 2137
2138 void Assembler::dmb(BarrierOption option) {
2139 emit(kSpecialCondition | 0x57ff*B12 | 5*B4 | option);
2140 }
2141
2142
2143 void Assembler::dsb(BarrierOption option) {
2144 emit(kSpecialCondition | 0x57ff*B12 | 4*B4 | option);
2145 }
2146
2147
2148 void Assembler::isb(BarrierOption option) {
2149 emit(kSpecialCondition | 0x57ff*B12 | 6*B4 | option);
2150 }
2151
2152
2138 // Coprocessor instructions. 2153 // Coprocessor instructions.
2139 void Assembler::cdp(Coprocessor coproc, 2154 void Assembler::cdp(Coprocessor coproc,
2140 int opcode_1, 2155 int opcode_1,
2141 CRegister crd, 2156 CRegister crd,
2142 CRegister crn, 2157 CRegister crn,
2143 CRegister crm, 2158 CRegister crm,
2144 int opcode_2, 2159 int opcode_2,
2145 Condition cond) { 2160 Condition cond) {
2146 DCHECK(is_uint4(opcode_1) && is_uint3(opcode_2)); 2161 DCHECK(is_uint4(opcode_1) && is_uint3(opcode_2));
2147 emit(cond | B27 | B26 | B25 | (opcode_1 & 15)*B20 | crn.code()*B16 | 2162 emit(cond | B27 | B26 | B25 | (opcode_1 & 15)*B20 | crn.code()*B16 |
(...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after
4111 DCHECK(is_uint12(offset)); 4126 DCHECK(is_uint12(offset));
4112 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset)); 4127 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset));
4113 } 4128 }
4114 } 4129 }
4115 4130
4116 4131
4117 } // namespace internal 4132 } // namespace internal
4118 } // namespace v8 4133 } // namespace v8
4119 4134
4120 #endif // V8_TARGET_ARCH_ARM 4135 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.h ('k') | src/arm/code-stubs-arm.cc » ('j') | src/arm/code-stubs-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698