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

Unified Diff: src/IceAssembler.cpp

Issue 1341423002: Reflow comments to use the full width. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix spelling and rebase Created 5 years, 3 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 | « src/IceAssembler.h ('k') | src/IceAssemblerX86Base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceAssembler.cpp
diff --git a/src/IceAssembler.cpp b/src/IceAssembler.cpp
index 5c1760b46313aa6c9b26af6e6406ec0948f7ee81..9c77dce75ef6747631300d818058b309faa2e736 100644
--- a/src/IceAssembler.cpp
+++ b/src/IceAssembler.cpp
@@ -48,13 +48,13 @@ AssemblerFixup *AssemblerBuffer::createFixup(FixupKind Kind,
}
void AssemblerBuffer::EnsureCapacity::validate(AssemblerBuffer *buffer) {
- // In debug mode, we save the assembler buffer along with the gap
- // size before we start emitting to the buffer. This allows us to
- // check that any single generated instruction doesn't overflow the
- // limit implied by the minimum gap size.
+ // In debug mode, we save the assembler buffer along with the gap size before
+ // we start emitting to the buffer. This allows us to check that any single
+ // generated instruction doesn't overflow the limit implied by the minimum
+ // gap size.
Gap = computeGap();
- // Make sure that extending the capacity leaves a big enough gap
- // for any kind of instruction.
+ // Make sure that extending the capacity leaves a big enough gap for any kind
+ // of instruction.
assert(Gap >= kMinimumGap);
// Mark the buffer as having ensured the capacity.
assert(!buffer->hasEnsuredCapacity()); // Cannot nest.
@@ -64,8 +64,8 @@ void AssemblerBuffer::EnsureCapacity::validate(AssemblerBuffer *buffer) {
AssemblerBuffer::EnsureCapacity::~EnsureCapacity() {
// Unmark the buffer, so we cannot emit after this.
Buffer->HasEnsuredCapacity = false;
- // Make sure the generated instruction doesn't take up more
- // space than the minimum gap.
+ // Make sure the generated instruction doesn't take up more space than the
+ // minimum gap.
intptr_t delta = Gap - computeGap();
(void)delta;
assert(delta <= kMinimumGap);
@@ -133,9 +133,9 @@ void Assembler::emitIASBytes(GlobalContext *Ctx) const {
}
Str << "\t.long ";
// For PCRel fixups, we write the pc-offset from a symbol into the Buffer
- // (e.g., -4), but we don't represent that in the fixup's offset.
- // Otherwise the fixup holds the true offset, and so does the Buffer.
- // Just load the offset from the buffer.
+ // (e.g., -4), but we don't represent that in the fixup's offset. Otherwise
+ // the fixup holds the true offset, and so does the Buffer. Just load the
+ // offset from the buffer.
NextFixup->emit(Ctx, Buffer.load<RelocOffsetT>(NextFixupLoc));
if (fixupIsPCRel(NextFixup->kind()))
Str << " - .";
« no previous file with comments | « src/IceAssembler.h ('k') | src/IceAssemblerX86Base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698