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

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

Issue 2277443009: Populate relocation information correctly for RelocatableInt32Constants. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 | test/mjsunit/wasm/grow-memory.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/x64/code-generator-x64.cc
diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc
index e6429d98c931a8474f5927f177b21ba2d56a7fb6..9777c799a5dd13bf5a68ee1b1901cdba80976ef6 100644
--- a/src/compiler/x64/code-generator-x64.cc
+++ b/src/compiler/x64/code-generator-x64.cc
@@ -2458,7 +2458,11 @@ void CodeGenerator::AssembleMove(InstructionOperand* source,
if (value == 0) {
__ xorl(dst, dst);
} else {
- __ movl(dst, Immediate(value));
+ if (src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) {
titzer 2016/08/26 08:21:10 Why not if src.rmode() != RelocInfo::kNone?
gdeepti 2016/08/30 08:53:05 My rationale for this is that it should be a delib
+ __ movl(dst, Immediate(value, src.rmode()));
+ } else {
+ __ movl(dst, Immediate(value));
+ }
}
}
break;
« no previous file with comments | « no previous file | test/mjsunit/wasm/grow-memory.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698