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

Unified Diff: src/IceAssemblerX86BaseImpl.h

Issue 1511653002: Fix problems with sandboxing and the ARM integrated assembler. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Lift pass information into linkTo() and nearLinkTo(). Created 5 years 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/IceAssemblerX86BaseImpl.h
diff --git a/src/IceAssemblerX86BaseImpl.h b/src/IceAssemblerX86BaseImpl.h
index f48529aca8df95e16e09d97c0104df2871c68769..b1844454455d5c90484d7580d58f6521e705facd 100644
--- a/src/IceAssemblerX86BaseImpl.h
+++ b/src/IceAssemblerX86BaseImpl.h
@@ -3404,8 +3404,7 @@ void AssemblerX86Base<Machine>::emitLabelLink(Label *Label) {
assert(!Label->isBound());
intptr_t Position = Buffer.size();
emitInt32(Label->Position);
- if (!getPreliminary())
- Label->linkTo(Position);
+ Label->linkTo(*this, Position);
}
template <class Machine>
@@ -3413,8 +3412,7 @@ void AssemblerX86Base<Machine>::emitNearLabelLink(Label *label) {
assert(!label->isBound());
intptr_t position = Buffer.size();
emitUint8(0);
- if (!getPreliminary())
- label->nearLinkTo(position);
+ label->nearLinkTo(*this, position);
}
template <class Machine>
« src/IceAssembler.h ('K') | « src/IceAssemblerX86Base.h ('k') | src/IceInstARM32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698