| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/encoded_program.h" | 5 #include "courgette/encoded_program.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/env_var.h" | 12 #include "base/env_var.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
| 15 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 16 | 16 #include "base/utf_string_conversions.h" |
| 17 #include "courgette/courgette.h" | 17 #include "courgette/courgette.h" |
| 18 #include "courgette/streams.h" | 18 #include "courgette/streams.h" |
| 19 | 19 |
| 20 namespace courgette { | 20 namespace courgette { |
| 21 | 21 |
| 22 // Stream indexes. | 22 // Stream indexes. |
| 23 const int kStreamMisc = 0; | 23 const int kStreamMisc = 0; |
| 24 const int kStreamOps = 1; | 24 const int kStreamOps = 1; |
| 25 const int kStreamBytes = 2; | 25 const int kStreamBytes = 2; |
| 26 const int kStreamAbs32Indexes = 3; | 26 const int kStreamAbs32Indexes = 3; |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 if (assembled) | 560 if (assembled) |
| 561 return C_OK; | 561 return C_OK; |
| 562 return C_ASSEMBLY_FAILED; | 562 return C_ASSEMBLY_FAILED; |
| 563 } | 563 } |
| 564 | 564 |
| 565 void DeleteEncodedProgram(EncodedProgram* encoded) { | 565 void DeleteEncodedProgram(EncodedProgram* encoded) { |
| 566 delete encoded; | 566 delete encoded; |
| 567 } | 567 } |
| 568 | 568 |
| 569 } // end namespace | 569 } // end namespace |
| OLD | NEW |