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

Unified Diff: src/arm64/cpu-arm64.h

Issue 271623002: Revert "Arm64: Ensure that csp is always aligned to 16 byte values even if jssp is not." and "Arm64… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/arm64/cpu-arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm64/cpu-arm64.h
diff --git a/src/arm64/cpu-arm64.h b/src/arm64/cpu-arm64.h
index 11e629c636d5da9e19c2844acc67db0761090df2..0b7a7d7f1feab31931c1dd3207350c607b3a57f7 100644
--- a/src/arm64/cpu-arm64.h
+++ b/src/arm64/cpu-arm64.h
@@ -24,9 +24,11 @@ class CpuFeatures : public AllStatic {
// Check whether a feature is supported by the target CPU.
static bool IsSupported(CpuFeature f) {
ASSERT(initialized_);
- return Check(f, supported_);
+ // There are no optional features for ARM64.
+ return false;
};
+ // There are no optional features for ARM64.
static bool IsSafeForSnapshot(Isolate* isolate, CpuFeature f) {
return IsSupported(f);
}
@@ -38,13 +40,16 @@ class CpuFeatures : public AllStatic {
static unsigned supported_;
static bool VerifyCrossCompiling() {
- return cross_compile_ == 0;
+ // There are no optional features for ARM64.
+ ASSERT(cross_compile_ == 0);
+ return true;
}
static bool VerifyCrossCompiling(CpuFeature f) {
- unsigned mask = flag2set(f);
- return cross_compile_ == 0 ||
- (cross_compile_ & mask) == mask;
+ // There are no optional features for ARM64.
+ USE(f);
+ ASSERT(cross_compile_ == 0);
+ return true;
}
static bool SupportsCrankshaft() { return true; }
@@ -54,17 +59,9 @@ class CpuFeatures : public AllStatic {
static bool initialized_;
#endif
- static unsigned found_by_runtime_probing_only_;
+ // This isn't used (and is always 0), but it is required by V8.
static unsigned cross_compile_;
- static bool Check(CpuFeature f, unsigned set) {
- return (set & flag2set(f)) != 0;
- }
-
- static unsigned flag2set(CpuFeature f) {
- return 1u << f;
- }
-
friend class PlatformFeatureScope;
DISALLOW_COPY_AND_ASSIGN(CpuFeatures);
};
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/arm64/cpu-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698