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/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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 // catch handler. | 524 // catch handler. |
525 // | 525 // |
526 // - InstantiateType D | 526 // - InstantiateType D |
527 // | 527 // |
528 // Instantiate type PP[D] with instantiator type arguments SP[0]. | 528 // Instantiate type PP[D] with instantiator type arguments SP[0]. |
529 // | 529 // |
530 // - InstantiateTypeArgumentsTOS D | 530 // - InstantiateTypeArgumentsTOS D |
531 // | 531 // |
532 // Instantiate type arguments PP[D] with instantiator SP[0]. | 532 // Instantiate type arguments PP[D] with instantiator SP[0]. |
533 // | 533 // |
534 // - InstanceOf A | 534 // - InstanceOf |
535 // | 535 // |
536 // Test if instance SP[-3] with type arguments SP[-2] is (A = 0) or is not | 536 // Test if instance SP[-3] with type arguments SP[-2] is a subtype of SP[-1] |
537 // (A = 1) a subtype of SP[-1] using SubtypeTestCache SP[0], with result | 537 // using SubtypeTestCache SP[0], with result placed at top of stack. |
538 // placed at top of stack. | |
539 // | 538 // |
540 // - AssertAssignable A, D | 539 // - AssertAssignable A, D |
541 // | 540 // |
542 // Assert that SP[-3] is assignable to variable named SP[0] of type | 541 // Assert that SP[-3] is assignable to variable named SP[0] of type |
543 // SP[-1] with type arguments SP[-2] using SubtypeTestCache PP[D]. | 542 // SP[-1] with type arguments SP[-2] using SubtypeTestCache PP[D]. |
544 // If A is 1, then the instance may be a Smi. | 543 // If A is 1, then the instance may be a Smi. |
545 // | 544 // |
546 // - BadTypeError | 545 // - BadTypeError |
547 // | 546 // |
548 // If SP[-3] is non-null, throws a BadType error by calling into the runtime. | 547 // If SP[-3] is non-null, throws a BadType error by calling into the runtime. |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 V(EntryOptional, A_B_C, num, num, num) \ | 801 V(EntryOptional, A_B_C, num, num, num) \ |
803 V(EntryOptimized, A_D, num, num, ___) \ | 802 V(EntryOptimized, A_D, num, num, ___) \ |
804 V(Frame, D, num, ___, ___) \ | 803 V(Frame, D, num, ___, ___) \ |
805 V(SetFrame, A, num, ___, num) \ | 804 V(SetFrame, A, num, ___, num) \ |
806 V(AllocateContext, D, num, ___, ___) \ | 805 V(AllocateContext, D, num, ___, ___) \ |
807 V(AllocateUninitializedContext, A_D, reg, num, ___) \ | 806 V(AllocateUninitializedContext, A_D, reg, num, ___) \ |
808 V(CloneContext, 0, ___, ___, ___) \ | 807 V(CloneContext, 0, ___, ___, ___) \ |
809 V(MoveSpecial, A_D, reg, num, ___) \ | 808 V(MoveSpecial, A_D, reg, num, ___) \ |
810 V(InstantiateType, D, lit, ___, ___) \ | 809 V(InstantiateType, D, lit, ___, ___) \ |
811 V(InstantiateTypeArgumentsTOS, A_D, num, lit, ___) \ | 810 V(InstantiateTypeArgumentsTOS, A_D, num, lit, ___) \ |
812 V(InstanceOf, A, num, ___, ___) \ | 811 V(InstanceOf, 0, ___, ___, ___) \ |
813 V(BadTypeError, 0, ___, ___, ___) \ | 812 V(BadTypeError, 0, ___, ___, ___) \ |
814 V(AssertAssignable, A_D, num, lit, ___) \ | 813 V(AssertAssignable, A_D, num, lit, ___) \ |
815 V(AssertBoolean, A, num, ___, ___) \ | 814 V(AssertBoolean, A, num, ___, ___) \ |
816 V(TestSmi, A_D, reg, reg, ___) \ | 815 V(TestSmi, A_D, reg, reg, ___) \ |
817 V(TestCids, A_D, reg, num, ___) \ | 816 V(TestCids, A_D, reg, num, ___) \ |
818 V(CheckSmi, A, reg, ___, ___) \ | 817 V(CheckSmi, A, reg, ___, ___) \ |
819 V(CheckEitherNonSmi, A_D, reg, reg, ___) \ | 818 V(CheckEitherNonSmi, A_D, reg, reg, ___) \ |
820 V(CheckClassId, A_D, reg, num, ___) \ | 819 V(CheckClassId, A_D, reg, num, ___) \ |
821 V(CheckDenseSwitch, A_D, reg, num, ___) \ | 820 V(CheckDenseSwitch, A_D, reg, num, ___) \ |
822 V(CheckCids, A_B_C, reg, num, num) \ | 821 V(CheckCids, A_B_C, reg, num, num) \ |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 | 962 |
964 // After a comparison, the condition NEXT_IS_TRUE means the following | 963 // After a comparison, the condition NEXT_IS_TRUE means the following |
965 // instruction is executed if the comparision is true and skipped over overwise. | 964 // instruction is executed if the comparision is true and skipped over overwise. |
966 // Conidition NEXT_IS_FALSE means the following instruction is executed if the | 965 // Conidition NEXT_IS_FALSE means the following instruction is executed if the |
967 // comparison is false and skipped over otherwise. | 966 // comparison is false and skipped over otherwise. |
968 enum Condition { NEXT_IS_TRUE, NEXT_IS_FALSE }; | 967 enum Condition { NEXT_IS_TRUE, NEXT_IS_FALSE }; |
969 | 968 |
970 } // namespace dart | 969 } // namespace dart |
971 | 970 |
972 #endif // RUNTIME_VM_CONSTANTS_DBC_H_ | 971 #endif // RUNTIME_VM_CONSTANTS_DBC_H_ |
OLD | NEW |