OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef RUNTIME_VM_CONSTANTS_DBC_H_ | 5 #ifndef RUNTIME_VM_CONSTANTS_DBC_H_ |
6 #define RUNTIME_VM_CONSTANTS_DBC_H_ | 6 #define RUNTIME_VM_CONSTANTS_DBC_H_ |
7 | 7 |
| 8 #include "platform/assert.h" |
8 #include "platform/globals.h" | 9 #include "platform/globals.h" |
9 #include "platform/assert.h" | |
10 #include "platform/utils.h" | 10 #include "platform/utils.h" |
11 | 11 |
12 | |
13 namespace dart { | 12 namespace dart { |
14 | 13 |
15 // clang-format off | 14 // clang-format off |
16 // List of Dart Bytecode instructions. | 15 // List of Dart Bytecode instructions. |
17 // | 16 // |
18 // INTERPRETER STATE | 17 // INTERPRETER STATE |
19 // | 18 // |
20 // current frame info (see stack_frame_dbc.h for layout) | 19 // current frame info (see stack_frame_dbc.h for layout) |
21 // v-----^-----v | 20 // v-----^-----v |
22 // ~----+----~ ~----+-------+-------+-~ ~-+-------+-------+-~ | 21 // ~----+----~ ~----+-------+-------+-~ ~-+-------+-------+-~ |
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 | 993 |
995 // After a comparison, the condition NEXT_IS_TRUE means the following | 994 // After a comparison, the condition NEXT_IS_TRUE means the following |
996 // instruction is executed if the comparison is true and skipped over overwise. | 995 // instruction is executed if the comparison is true and skipped over overwise. |
997 // Condition NEXT_IS_FALSE means the following instruction is executed if the | 996 // Condition NEXT_IS_FALSE means the following instruction is executed if the |
998 // comparison is false and skipped over otherwise. | 997 // comparison is false and skipped over otherwise. |
999 enum Condition { NEXT_IS_TRUE, NEXT_IS_FALSE, INVALID_CONDITION }; | 998 enum Condition { NEXT_IS_TRUE, NEXT_IS_FALSE, INVALID_CONDITION }; |
1000 | 999 |
1001 } // namespace dart | 1000 } // namespace dart |
1002 | 1001 |
1003 #endif // RUNTIME_VM_CONSTANTS_DBC_H_ | 1002 #endif // RUNTIME_VM_CONSTANTS_DBC_H_ |
OLD | NEW |