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

Unified Diff: src/machine-type.h

Issue 2087483003: [compiler] Introduce a simple store-store elimination, disabled by default. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@p1
Patch Set: Pull, with no conflicts Created 4 years, 6 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/machine-type.h
diff --git a/src/machine-type.h b/src/machine-type.h
index 08786100b05c2ceaf88001c48ce871fc26499da8..3bea9568ee0325cf214b0be21fb23d8e2fb61426 100644
--- a/src/machine-type.h
+++ b/src/machine-type.h
@@ -66,6 +66,26 @@ class MachineType {
return semantic() == MachineSemantic::kUint32 ||
semantic() == MachineSemantic::kUint64;
}
+ bool IsWidestSize() {
+ switch (representation()) {
+ case MachineRepresentation::kWord64:
+ case MachineRepresentation::kFloat64:
+ case MachineRepresentation::kTagged:
+ return true;
+ case MachineRepresentation::kNone:
+ case MachineRepresentation::kBit:
+ case MachineRepresentation::kWord8:
+ case MachineRepresentation::kWord16:
+ case MachineRepresentation::kWord32:
+ case MachineRepresentation::kFloat32:
+ return false;
+ default:
+ break;
+ }
+ // kSimd128 is not in use yet.
+ UNREACHABLE();
+ return false;
+ }
static MachineRepresentation PointerRepresentation() {
return (kPointerSize == 4) ? MachineRepresentation::kWord32

Powered by Google App Engine
This is Rietveld 408576698