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

Unified Diff: src/mips/assembler-mips.h

Issue 258993002: Simplified CPU/CpuFeatures a bit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: src/mips/assembler-mips.h
diff --git a/src/mips/assembler-mips.h b/src/mips/assembler-mips.h
index e4729b2dd428a239670aaa317d7ccc2f37e8239a..8c186c14b0d7258175c35ff611b476d19f121925 100644
--- a/src/mips/assembler-mips.h
+++ b/src/mips/assembler-mips.h
@@ -425,12 +425,10 @@ class CpuFeatures : public AllStatic {
public:
// Detect features of the target CPU. Set safe defaults if the serializer
// is enabled (snapshots must be portable).
- static void Probe();
+ static void Probe(bool serializer_enabled);
// A special case for printing target and features, which we want to do
// before initializing the isolate
- static void SetHintCreatingSnapshot();
- static void ProbeWithoutIsolate();
// Check whether a feature is supported by the target CPU.
static bool IsSupported(CpuFeature f) {
@@ -459,10 +457,9 @@ class CpuFeatures : public AllStatic {
(cross_compile_ & mask) == mask;
}
- private:
- static void Probe(bool serializer_enabled);
- static bool hint_creating_snapshot_;
+ static bool SupportsCrankshaft() { return CpuFeatures::IsSupported(FPU); }
+ private:
static bool Check(CpuFeature f, unsigned set) {
return (set & flag2set(f)) != 0;
}
« src/arm/assembler-arm.cc ('K') | « src/isolate.cc ('k') | src/mips/assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698