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

Unified Diff: unittest/AssemblerX8632/ControlFlow.cpp

Issue 1428443002: Enhance address mode recovery (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Streamline absolute addressing support (rip-relative on x64) Created 5 years, 2 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: unittest/AssemblerX8632/ControlFlow.cpp
diff --git a/unittest/AssemblerX8632/ControlFlow.cpp b/unittest/AssemblerX8632/ControlFlow.cpp
index 35adf072c304ed14b1ab19cbeed9a237a1c62de9..b325bfdcaba264fe62e3a5cd54cb2f98d32e63c9 100644
--- a/unittest/AssemblerX8632/ControlFlow.cpp
+++ b/unittest/AssemblerX8632/ControlFlow.cpp
@@ -133,7 +133,8 @@ TEST_F(AssemblerX8632Test, CallAddr) {
__ hlt();
__ hlt();
__ mov(IceType_i32, GPRRegister::Encoded_Reg_eax, Immediate(0xf1f2f300));
- __ call(Address(GPRRegister::Encoded_Reg_esp, 0));
+ static constexpr AssemblerFixup *Fixup = nullptr;
Jim Stichnoth 2015/10/27 22:19:52 Is there some place you could put a single instanc
sehr 2015/10/27 23:24:05 Added a NoFixup constexpr to the interface of Asse
+ __ call(Address(GPRRegister::Encoded_Reg_esp, 0, Fixup));
__ popl(GPRRegister::Encoded_Reg_edx);
AssembledTest test = assemble();

Powered by Google App Engine
This is Rietveld 408576698