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

Unified Diff: src/compiler/ppc/code-generator-ppc.cc

Issue 1851823002: Revert of PPC: [compiler] Add relocatable pointer constants for wasm memory references. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/ppc/code-generator-ppc.cc
diff --git a/src/compiler/ppc/code-generator-ppc.cc b/src/compiler/ppc/code-generator-ppc.cc
index 55ddf7278ef60e658c9a76de57ca2ca30fc8dd84..6f1e5881eb46668bd241326d333f3451abcc7b3a 100644
--- a/src/compiler/ppc/code-generator-ppc.cc
+++ b/src/compiler/ppc/code-generator-ppc.cc
@@ -1848,26 +1848,10 @@
destination->IsRegister() ? g.ToRegister(destination) : kScratchReg;
switch (src.type()) {
case Constant::kInt32:
-#if !V8_TARGET_ARCH_PPC64
- if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) {
- __ mov(dst, Operand(src.ToInt32(), src.rmode()));
- } else {
-#endif
- __ mov(dst, Operand(src.ToInt32()));
-#if !V8_TARGET_ARCH_PPC64
- }
-#endif
+ __ mov(dst, Operand(src.ToInt32()));
break;
case Constant::kInt64:
-#if V8_TARGET_ARCH_PPC64
- if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE) {
- __ mov(dst, Operand(src.ToInt64(), src.rmode()));
- } else {
-#endif
- __ mov(dst, Operand(src.ToInt64()));
-#if V8_TARGET_ARCH_PPC64
- }
-#endif
+ __ mov(dst, Operand(src.ToInt64()));
break;
case Constant::kFloat32:
__ Move(dst,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698