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

Unified Diff: src/compiler/instruction.cc

Issue 1759383003: [compiler] Add relocatable pointer constants for wasm memory references. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix mips/mips64 compile Created 4 years, 10 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/compiler/instruction.cc
diff --git a/src/compiler/instruction.cc b/src/compiler/instruction.cc
index 05c6215c74c569d40aef8867c0f9010dc25ca85c..942dff39b7a8af9b7fb81a0fded31826310f0775 100644
--- a/src/compiler/instruction.cc
+++ b/src/compiler/instruction.cc
@@ -504,6 +504,14 @@ std::ostream& operator<<(std::ostream& os,
Constant::Constant(int32_t v) : type_(kInt32), value_(v) {}
+Constant::Constant(RelocatablePtrConstantInfo info)
+#ifdef V8_HOST_ARCH_32_BIT
+ : type_(kInt32), value_(info.value()), rmode_(info.rmode()) {
+}
+#else
+ : type_(kInt64), value_(info.value()), rmode_(info.rmode()) {
+}
+#endif
std::ostream& operator<<(std::ostream& os, const Constant& constant) {
switch (constant.type()) {

Powered by Google App Engine
This is Rietveld 408576698