Index: src/code-stubs.cc |
diff --git a/src/code-stubs.cc b/src/code-stubs.cc |
index 2b71716dc3f037bb8eea080b80ba2f5671e7ab13..f681c92401d9ac4cd62132760090dda0a9c07ef0 100644 |
--- a/src/code-stubs.cc |
+++ b/src/code-stubs.cc |
@@ -5854,5 +5854,21 @@ Representation RepresentationFromType(Type* type) { |
return Representation::Tagged(); |
} |
+Representation RepresentationFromMachineType(MachineType type) { |
+ if (type == MachineType::Int32()) { |
+ return Representation::Integer32(); |
+ } |
+ |
+ if (type == MachineType::TaggedSigned()) { |
+ return Representation::Smi(); |
+ } |
+ |
+ if (type == MachineType::Pointer()) { |
+ return Representation::External(); |
+ } |
+ |
+ return Representation::Tagged(); |
+} |
+ |
} // namespace internal |
} // namespace v8 |