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

Unified Diff: src/code-stubs.cc

Issue 2301883002: CallInterfaceDescriptor should use MachineType (Closed)
Patch Set: Remove unneeded zone in the isolate. Created 4 years, 3 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/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698