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

Side by Side Diff: src/assembler.cc

Issue 1995483002: [arm][arm64] Remove COHERENT_CACHE support (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/arm64/assembler-arm64.cc ('k') | src/globals.h » ('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 are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 } 194 }
195 195
196 196
197 AssemblerBase::~AssemblerBase() { 197 AssemblerBase::~AssemblerBase() {
198 if (own_buffer_) DeleteArray(buffer_); 198 if (own_buffer_) DeleteArray(buffer_);
199 } 199 }
200 200
201 201
202 void AssemblerBase::FlushICache(Isolate* isolate, void* start, size_t size) { 202 void AssemblerBase::FlushICache(Isolate* isolate, void* start, size_t size) {
203 if (size == 0) return; 203 if (size == 0) return;
204 if (CpuFeatures::IsSupported(COHERENT_CACHE)) return;
205 204
206 #if defined(USE_SIMULATOR) 205 #if defined(USE_SIMULATOR)
207 Simulator::FlushICache(isolate->simulator_i_cache(), start, size); 206 Simulator::FlushICache(isolate->simulator_i_cache(), start, size);
208 #else 207 #else
209 CpuFeatures::FlushICache(start, size); 208 CpuFeatures::FlushICache(start, size);
210 #endif // USE_SIMULATOR 209 #endif // USE_SIMULATOR
211 } 210 }
212 211
213 212
214 void AssemblerBase::Print() { 213 void AssemblerBase::Print() {
(...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after
2089 2088
2090 2089
2091 void Assembler::DataAlign(int m) { 2090 void Assembler::DataAlign(int m) {
2092 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 2091 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
2093 while ((pc_offset() & (m - 1)) != 0) { 2092 while ((pc_offset() & (m - 1)) != 0) {
2094 db(0); 2093 db(0);
2095 } 2094 }
2096 } 2095 }
2097 } // namespace internal 2096 } // namespace internal
2098 } // namespace v8 2097 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64.cc ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698