Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: runtime/vm/constants_dbc.h

Issue 2748073002: Revert "VM: Simplify lowering of is-tests." (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/constant_propagator.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 534 // - InstanceOf A
535 // 535 //
536 // Test if instance SP[-3] with type arguments SP[-2] is a subtype of SP[-1] 536 // Test if instance SP[-3] with type arguments SP[-2] is (A = 0) or is not
537 // using SubtypeTestCache SP[0], with result placed at top of stack. 537 // (A = 1) a subtype of SP[-1] using SubtypeTestCache SP[0], with result
538 // placed at top of stack.
538 // 539 //
539 // - AssertAssignable A, D 540 // - AssertAssignable A, D
540 // 541 //
541 // Assert that SP[-3] is assignable to variable named SP[0] of type 542 // Assert that SP[-3] is assignable to variable named SP[0] of type
542 // SP[-1] with type arguments SP[-2] using SubtypeTestCache PP[D]. 543 // SP[-1] with type arguments SP[-2] using SubtypeTestCache PP[D].
543 // If A is 1, then the instance may be a Smi. 544 // If A is 1, then the instance may be a Smi.
544 // 545 //
545 // - BadTypeError 546 // - BadTypeError
546 // 547 //
547 // If SP[-3] is non-null, throws a BadType error by calling into the runtime. 548 // 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
801 V(EntryOptional, A_B_C, num, num, num) \ 802 V(EntryOptional, A_B_C, num, num, num) \
802 V(EntryOptimized, A_D, num, num, ___) \ 803 V(EntryOptimized, A_D, num, num, ___) \
803 V(Frame, D, num, ___, ___) \ 804 V(Frame, D, num, ___, ___) \
804 V(SetFrame, A, num, ___, num) \ 805 V(SetFrame, A, num, ___, num) \
805 V(AllocateContext, D, num, ___, ___) \ 806 V(AllocateContext, D, num, ___, ___) \
806 V(AllocateUninitializedContext, A_D, reg, num, ___) \ 807 V(AllocateUninitializedContext, A_D, reg, num, ___) \
807 V(CloneContext, 0, ___, ___, ___) \ 808 V(CloneContext, 0, ___, ___, ___) \
808 V(MoveSpecial, A_D, reg, num, ___) \ 809 V(MoveSpecial, A_D, reg, num, ___) \
809 V(InstantiateType, D, lit, ___, ___) \ 810 V(InstantiateType, D, lit, ___, ___) \
810 V(InstantiateTypeArgumentsTOS, A_D, num, lit, ___) \ 811 V(InstantiateTypeArgumentsTOS, A_D, num, lit, ___) \
811 V(InstanceOf, 0, ___, ___, ___) \ 812 V(InstanceOf, A, num, ___, ___) \
812 V(BadTypeError, 0, ___, ___, ___) \ 813 V(BadTypeError, 0, ___, ___, ___) \
813 V(AssertAssignable, A_D, num, lit, ___) \ 814 V(AssertAssignable, A_D, num, lit, ___) \
814 V(AssertBoolean, A, num, ___, ___) \ 815 V(AssertBoolean, A, num, ___, ___) \
815 V(TestSmi, A_D, reg, reg, ___) \ 816 V(TestSmi, A_D, reg, reg, ___) \
816 V(TestCids, A_D, reg, num, ___) \ 817 V(TestCids, A_D, reg, num, ___) \
817 V(CheckSmi, A, reg, ___, ___) \ 818 V(CheckSmi, A, reg, ___, ___) \
818 V(CheckEitherNonSmi, A_D, reg, reg, ___) \ 819 V(CheckEitherNonSmi, A_D, reg, reg, ___) \
819 V(CheckClassId, A_D, reg, num, ___) \ 820 V(CheckClassId, A_D, reg, num, ___) \
820 V(CheckDenseSwitch, A_D, reg, num, ___) \ 821 V(CheckDenseSwitch, A_D, reg, num, ___) \
821 V(CheckCids, A_B_C, reg, num, num) \ 822 V(CheckCids, A_B_C, reg, num, num) \
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 963
963 // After a comparison, the condition NEXT_IS_TRUE means the following 964 // After a comparison, the condition NEXT_IS_TRUE means the following
964 // instruction is executed if the comparision is true and skipped over overwise. 965 // instruction is executed if the comparision is true and skipped over overwise.
965 // Conidition NEXT_IS_FALSE means the following instruction is executed if the 966 // Conidition NEXT_IS_FALSE means the following instruction is executed if the
966 // comparison is false and skipped over otherwise. 967 // comparison is false and skipped over otherwise.
967 enum Condition { NEXT_IS_TRUE, NEXT_IS_FALSE }; 968 enum Condition { NEXT_IS_TRUE, NEXT_IS_FALSE };
968 969
969 } // namespace dart 970 } // namespace dart
970 971
971 #endif // RUNTIME_VM_CONSTANTS_DBC_H_ 972 #endif // RUNTIME_VM_CONSTANTS_DBC_H_
OLDNEW
« no previous file with comments | « runtime/vm/constant_propagator.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698