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

Unified Diff: src/IceAssembler.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: Fix nit. 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
« no previous file with comments | « src/DartARM32/assembler_arm.cc ('k') | src/IceAssembler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceAssembler.h
diff --git a/src/IceAssembler.h b/src/IceAssembler.h
index d80e3d26e9b4f4f1b8d2a09e06e4539efb7993b7..d2e9578ffe2d2a613fff1b76e907f282d15a2263 100644
--- a/src/IceAssembler.h
+++ b/src/IceAssembler.h
@@ -32,6 +32,8 @@
namespace Ice {
+class Assembler;
+
/// A Label can be in one of three states:
/// - Unused.
/// - Linked, unplaced and tracking the position of branches to the label.
@@ -82,11 +84,7 @@ public:
assert(isBound());
}
- void linkTo(intptr_t position) {
- assert(!isBound());
- Position = position + kWordSize;
- assert(isLinked());
- }
+ void linkTo(const Assembler &Asm, intptr_t position);
protected:
intptr_t Position = 0;
« no previous file with comments | « src/DartARM32/assembler_arm.cc ('k') | src/IceAssembler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698