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

Unified Diff: courgette/assembly_program.cc

Issue 22728002: Collapsed Courgette instructions that copy file data to the patch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved len calculation Created 7 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 | courgette/disassembler_elf_32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/assembly_program.cc
diff --git a/courgette/assembly_program.cc b/courgette/assembly_program.cc
index f577b989fee46d1a9fcb91dcbfd45a4f23b52b2e..021de59326c2c0c3ca5efaf48691ae086ba0fc5b 100644
--- a/courgette/assembly_program.cc
+++ b/courgette/assembly_program.cc
@@ -422,6 +422,7 @@ EncodedProgram* AssemblyProgram::Encode() const {
const uint8* byte_values =
static_cast<BytesInstruction*>(instruction)->byte_values();
uint32 len = static_cast<BytesInstruction*>(instruction)->len();
+
if (!encoded->AddCopy(len, byte_values))
return NULL;
break;
« no previous file with comments | « no previous file | courgette/disassembler_elf_32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698