diff options
Diffstat (limited to 'deps/v8/src/machine-type.h')
-rw-r--r-- | deps/v8/src/machine-type.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/deps/v8/src/machine-type.h b/deps/v8/src/machine-type.h index 844c956e7b..a59aced36e 100644 --- a/deps/v8/src/machine-type.h +++ b/deps/v8/src/machine-type.h @@ -79,28 +79,16 @@ class MachineType { return semantic() == MachineSemantic::kUint32 || semantic() == MachineSemantic::kUint64; } - static MachineRepresentation PointerRepresentation() { return (kPointerSize == 4) ? MachineRepresentation::kWord32 : MachineRepresentation::kWord64; } - static MachineType Pointer() { - return MachineType(PointerRepresentation(), MachineSemantic::kNone); + static MachineType UintPtr() { + return (kPointerSize == 4) ? Uint32() : Uint64(); } static MachineType IntPtr() { return (kPointerSize == 4) ? Int32() : Int64(); } - static MachineType Float32() { - return MachineType(MachineRepresentation::kFloat32, - MachineSemantic::kNumber); - } - static MachineType Float64() { - return MachineType(MachineRepresentation::kFloat64, - MachineSemantic::kNumber); - } - static MachineType Simd128() { - return MachineType(MachineRepresentation::kSimd128, MachineSemantic::kNone); - } static MachineType Int8() { return MachineType(MachineRepresentation::kWord8, MachineSemantic::kInt32); } @@ -128,6 +116,20 @@ class MachineType { return MachineType(MachineRepresentation::kWord64, MachineSemantic::kUint64); } + static MachineType Float32() { + return MachineType(MachineRepresentation::kFloat32, + MachineSemantic::kNumber); + } + static MachineType Float64() { + return MachineType(MachineRepresentation::kFloat64, + MachineSemantic::kNumber); + } + static MachineType Simd128() { + return MachineType(MachineRepresentation::kSimd128, MachineSemantic::kNone); + } + static MachineType Pointer() { + return MachineType(PointerRepresentation(), MachineSemantic::kNone); + } static MachineType TaggedPointer() { return MachineType(MachineRepresentation::kTaggedPointer, MachineSemantic::kAny); |