OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |