OLD | NEW |
1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 <stdio.h> | 5 #include <stdio.h> |
6 #include <stdarg.h> | 6 #include <stdarg.h> |
7 | 7 |
8 #include "src/shared/assert.h" | 8 #include "src/shared/assert.h" |
9 #include "src/shared/bytecodes.h" | 9 #include "src/shared/bytecodes.h" |
10 #include "src/shared/utils.h" | 10 #include "src/shared/utils.h" |
11 | 11 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 bcp -= delta; | 107 bcp -= delta; |
108 uint8* previous = NULL; | 108 uint8* previous = NULL; |
109 while (bcp != current_bcp) { | 109 while (bcp != current_bcp) { |
110 previous = bcp; | 110 previous = bcp; |
111 bcp += Bytecode::Size(static_cast<Opcode>(*bcp)); | 111 bcp += Bytecode::Size(static_cast<Opcode>(*bcp)); |
112 } | 112 } |
113 return previous; | 113 return previous; |
114 } | 114 } |
115 | 115 |
116 } // namespace fletch | 116 } // namespace fletch |
OLD | NEW |