| 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 VM_CONSTANTS_DBC_H_ | 5 #ifndef VM_CONSTANTS_DBC_H_ |
| 6 #define VM_CONSTANTS_DBC_H_ | 6 #define VM_CONSTANTS_DBC_H_ |
| 7 | 7 |
| 8 #include "platform/globals.h" | 8 #include "platform/globals.h" |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "platform/utils.h" | 10 #include "platform/utils.h" |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 // - Op1, Op2, Op2 specify operand meaning. Possible values: | 522 // - Op1, Op2, Op2 specify operand meaning. Possible values: |
| 523 // | 523 // |
| 524 // ___ ignored / non-existent operand | 524 // ___ ignored / non-existent operand |
| 525 // num immediate operand | 525 // num immediate operand |
| 526 // lit constant literal from object pool | 526 // lit constant literal from object pool |
| 527 // reg register (unsigned FP relative local) | 527 // reg register (unsigned FP relative local) |
| 528 // xeg x-register (signed FP relative local) | 528 // xeg x-register (signed FP relative local) |
| 529 // tgt jump target relative to the PC of the current instruction | 529 // tgt jump target relative to the PC of the current instruction |
| 530 // | 530 // |
| 531 // TODO(vegorov) jump targets should be encoded relative to PC of the next | 531 // TODO(vegorov) jump targets should be encoded relative to PC of the next |
| 532 // instruction because PC is incremeted immediately after fetch | 532 // instruction because PC is incremented immediately after fetch |
| 533 // and before decoding. | 533 // and before decoding. |
| 534 // | 534 // |
| 535 #define BYTECODES_LIST(V) \ | 535 #define BYTECODES_LIST(V) \ |
| 536 V(Trap, 0, ___, ___, ___) \ | 536 V(Trap, 0, ___, ___, ___) \ |
| 537 V(Nop, A_D, num, lit, ___) \ | 537 V(Nop, A_D, num, lit, ___) \ |
| 538 V(Compile, 0, ___, ___, ___) \ | 538 V(Compile, 0, ___, ___, ___) \ |
| 539 V(HotCheck, A_D, num, num, ___) \ | 539 V(HotCheck, A_D, num, num, ___) \ |
| 540 V(Intrinsic, A, num, ___, ___) \ | 540 V(Intrinsic, A, num, ___, ___) \ |
| 541 V(Drop1, 0, ___, ___, ___) \ | 541 V(Drop1, 0, ___, ___, ___) \ |
| 542 V(DropR, A, num, ___, ___) \ | 542 V(DropR, A, num, ___, ___) \ |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 | 778 |
| 779 // After a comparison, the condition NEXT_IS_TRUE means the following | 779 // After a comparison, the condition NEXT_IS_TRUE means the following |
| 780 // instruction is executed if the comparision is true and skipped over overwise. | 780 // instruction is executed if the comparision is true and skipped over overwise. |
| 781 // Conidition NEXT_IS_FALSE means the following instruction is executed if the | 781 // Conidition NEXT_IS_FALSE means the following instruction is executed if the |
| 782 // comparison is false and skipped over otherwise. | 782 // comparison is false and skipped over otherwise. |
| 783 enum Condition { NEXT_IS_TRUE, NEXT_IS_FALSE }; | 783 enum Condition { NEXT_IS_TRUE, NEXT_IS_FALSE }; |
| 784 | 784 |
| 785 } // namespace dart | 785 } // namespace dart |
| 786 | 786 |
| 787 #endif // VM_CONSTANTS_DBC_H_ | 787 #endif // VM_CONSTANTS_DBC_H_ |
| OLD | NEW |