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

Unified Diff: courgette/adjustment_method_2.cc

Issue 2476863004: [Courgette] AssemblyProgram: Serialize data to single raw buffer, instead of storing pointer of obj… (Closed)
Patch Set: Sync and merge. Created 4 years, 1 month 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 | « courgette/adjustment_method.cc ('k') | courgette/assembly_program.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/adjustment_method_2.cc
diff --git a/courgette/adjustment_method_2.cc b/courgette/adjustment_method_2.cc
index b5fbb7c610fabe2b8c08f3edabce4b6c957983f8..4593c7f7d5b32c6f523b8c582404d8b18540e366 100644
--- a/courgette/adjustment_method_2.cc
+++ b/courgette/adjustment_method_2.cc
@@ -1259,10 +1259,10 @@ class Adjuster : public AdjustmentMethod {
AssemblyProgram::LabelHandler rel32_handler = base::Bind(
&Adjuster::ReferenceLabel, base::Unretained(this), rel32, is_model);
- program->HandleInstructionLabels({{ABS32, abs32_handler},
- {ABS64, abs32_handler},
- {REL32, rel32_handler},
- {REL32ARM, rel32_handler}});
+ program->HandleInstructionLabels({{AssemblyOp::ABS32, abs32_handler},
+ {AssemblyOp::ABS64, abs32_handler},
+ {AssemblyOp::REL32, rel32_handler},
+ {AssemblyOp::REL32ARM, rel32_handler}});
// TODO(sra): we could simply append all the labels in index order to
// incorporate some costing for entropy (bigger deltas) that will be
« no previous file with comments | « courgette/adjustment_method.cc ('k') | courgette/assembly_program.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698