| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #include "src/shared/assert.h" | 5 #include "src/shared/assert.h" |
| 6 | 6 |
| 7 #include "src/vm/program_info_block.h" | 7 #include "src/vm/program_info_block.h" |
| 8 #include "src/vm/program_relocator.h" | 8 #include "src/vm/program_relocator.h" |
| 9 | 9 |
| 10 #ifdef VERBOSE | 10 #ifdef VERBOSE |
| 11 #define DEBUG_PRINT(...) fprintf(stderr, __VA_ARGS__) | 11 #define DEBUG_PRINT(...) fprintf(stderr, __VA_ARGS__) |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 program_info->PopulateFromProgram(target_program); | 157 program_info->PopulateFromProgram(target_program); |
| 158 | 158 |
| 159 free(target_program); | 159 free(target_program); |
| 160 | 160 |
| 161 DEBUG_PRINT("Relocation complete, result is %d bytes...\n", target.length()); | 161 DEBUG_PRINT("Relocation complete, result is %d bytes...\n", target.length()); |
| 162 | 162 |
| 163 return total_size; | 163 return total_size; |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace fletch | 166 } // namespace fletch |
| OLD | NEW |