summaryrefslogtreecommitdiff
path: root/deps/v8/src/runtime/runtime-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/runtime/runtime-utils.h')
-rw-r--r--deps/v8/src/runtime/runtime-utils.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/deps/v8/src/runtime/runtime-utils.h b/deps/v8/src/runtime/runtime-utils.h
index ded2c090c8..c673b5a155 100644
--- a/deps/v8/src/runtime/runtime-utils.h
+++ b/deps/v8/src/runtime/runtime-utils.h
@@ -162,6 +162,22 @@ static inline ObjectPair MakePair(Object* x, Object* y) {
}
#endif
+
+// A mechanism to return a triple of Object pointers. In all calling
+// conventions, a struct of two pointers is returned in memory,
+// allocated by the caller, and passed as a pointer in a hidden first parameter.
+struct ObjectTriple {
+ Object* x;
+ Object* y;
+ Object* z;
+};
+
+static inline ObjectTriple MakeTriple(Object* x, Object* y, Object* z) {
+ ObjectTriple result = {x, y, z};
+ // ObjectTriple is assigned to a hidden first argument.
+ return result;
+}
+
} // namespace internal
} // namespace v8