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

Side by Side Diff: src/assembler.h

Issue 358363002: Move platform abstraction to base library (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 5 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 | Annotate | Revision Log
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 static inline bool SupportsCrankshaft(); 182 static inline bool SupportsCrankshaft();
183 183
184 static inline unsigned cache_line_size() { 184 static inline unsigned cache_line_size() {
185 ASSERT(cache_line_size_ != 0); 185 ASSERT(cache_line_size_ != 0);
186 return cache_line_size_; 186 return cache_line_size_;
187 } 187 }
188 188
189 static void PrintTarget(); 189 static void PrintTarget();
190 static void PrintFeatures(); 190 static void PrintFeatures();
191 191
192 // Flush instruction cache.
193 static void FlushICache(void* start, size_t size);
194
192 private: 195 private:
193 // Platform-dependent implementation. 196 // Platform-dependent implementation.
194 static void ProbeImpl(bool cross_compile); 197 static void ProbeImpl(bool cross_compile);
195 198
196 static unsigned supported_; 199 static unsigned supported_;
197 static unsigned cache_line_size_; 200 static unsigned cache_line_size_;
198 static bool initialized_; 201 static bool initialized_;
199 friend class ExternalReference; 202 friend class ExternalReference;
200 DISALLOW_COPY_AND_ASSIGN(CpuFeatures); 203 DISALLOW_COPY_AND_ASSIGN(CpuFeatures);
201 }; 204 };
(...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after
1150 1153
1151 private: 1154 private:
1152 int32_t multiplier_; 1155 int32_t multiplier_;
1153 int32_t shift_; 1156 int32_t shift_;
1154 }; 1157 };
1155 1158
1156 1159
1157 } } // namespace v8::internal 1160 } } // namespace v8::internal
1158 1161
1159 #endif // V8_ASSEMBLER_H_ 1162 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/arm64/simulator-arm64.cc ('k') | src/assembler.cc » ('j') | src/base/cpu.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698