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

Side by Side Diff: courgette/adjustment_method.cc

Issue 8166013: Further refactoring, move ImageInfo into Disassembler/DisassemblerWin32X86. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebase over other changes, fix nit. Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | courgette/adjustment_method_2.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "courgette/adjustment_method.h" 5 #include "courgette/adjustment_method.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/string_number_conversions.h" 16 #include "base/string_number_conversions.h"
17 #include "base/stringprintf.h" 17 #include "base/stringprintf.h"
18 #include "courgette/assembly_program.h" 18 #include "courgette/assembly_program.h"
19 #include "courgette/courgette.h" 19 #include "courgette/courgette.h"
20 #include "courgette/encoded_program.h" 20 #include "courgette/encoded_program.h"
21 #include "courgette/image_info.h"
22 21
23 namespace courgette { 22 namespace courgette {
24 23
25 //////////////////////////////////////////////////////////////////////////////// 24 ////////////////////////////////////////////////////////////////////////////////
26 25
27 class NullAdjustmentMethod : public AdjustmentMethod { 26 class NullAdjustmentMethod : public AdjustmentMethod {
28 bool Adjust(const AssemblyProgram& model, AssemblyProgram* program) { 27 bool Adjust(const AssemblyProgram& model, AssemblyProgram* program) {
29 return true; 28 return true;
30 } 29 }
31 }; 30 };
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 AdjustmentMethod* method = AdjustmentMethod::MakeProductionAdjustmentMethod(); 684 AdjustmentMethod* method = AdjustmentMethod::MakeProductionAdjustmentMethod();
686 bool ok = method->Adjust(model, program); 685 bool ok = method->Adjust(model, program);
687 method->Destroy(); 686 method->Destroy();
688 if (ok) 687 if (ok)
689 return C_OK; 688 return C_OK;
690 else 689 else
691 return C_ADJUSTMENT_FAILED; 690 return C_ADJUSTMENT_FAILED;
692 } 691 }
693 692
694 } // namespace courgette 693 } // namespace courgette
OLDNEW
« no previous file with comments | « no previous file | courgette/adjustment_method_2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698