| OLD | NEW |
| 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 #ifndef COURGETTE_ASSEMBLY_PROGRAM_H_ | 5 #ifndef COURGETTE_ASSEMBLY_PROGRAM_H_ |
| 6 #define COURGETTE_ASSEMBLY_PROGRAM_H_ | 6 #define COURGETTE_ASSEMBLY_PROGRAM_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 | 14 |
| 15 #include "courgette/image_info.h" | 15 #include "courgette/disassembler.h" |
| 16 #include "courgette/memory_allocator.h" | 16 #include "courgette/memory_allocator.h" |
| 17 | 17 |
| 18 namespace courgette { | 18 namespace courgette { |
| 19 | 19 |
| 20 class EncodedProgram; | 20 class EncodedProgram; |
| 21 class Instruction; | 21 class Instruction; |
| 22 | 22 |
| 23 typedef NoThrowBuffer<Instruction*> InstructionVector; | 23 typedef NoThrowBuffer<Instruction*> InstructionVector; |
| 24 | 24 |
| 25 // A Label is a symbolic reference to an address. Unlike a conventional | 25 // A Label is a symbolic reference to an address. Unlike a conventional |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // We have separate label spaces for addresses referenced by rel32 labels and | 131 // We have separate label spaces for addresses referenced by rel32 labels and |
| 132 // abs32 labels. This is somewhat arbitrary. | 132 // abs32 labels. This is somewhat arbitrary. |
| 133 RVAToLabel rel32_labels_; | 133 RVAToLabel rel32_labels_; |
| 134 RVAToLabel abs32_labels_; | 134 RVAToLabel abs32_labels_; |
| 135 | 135 |
| 136 DISALLOW_COPY_AND_ASSIGN(AssemblyProgram); | 136 DISALLOW_COPY_AND_ASSIGN(AssemblyProgram); |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 } // namespace courgette | 139 } // namespace courgette |
| 140 #endif // COURGETTE_ASSEMBLY_PROGRAM_H_ | 140 #endif // COURGETTE_ASSEMBLY_PROGRAM_H_ |
| OLD | NEW |