OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 true_destination_(true_destination), | 898 true_destination_(true_destination), |
899 false_destination_(false_destination) { | 899 false_destination_(false_destination) { |
900 ASSERT(true_destination != NULL); | 900 ASSERT(true_destination != NULL); |
901 ASSERT(false_destination != NULL); | 901 ASSERT(false_destination != NULL); |
902 ASSERT(!map.is_null()); | 902 ASSERT(!map.is_null()); |
903 } | 903 } |
904 | 904 |
905 virtual HBasicBlock* FirstSuccessor() const { return true_destination_; } | 905 virtual HBasicBlock* FirstSuccessor() const { return true_destination_; } |
906 virtual HBasicBlock* SecondSuccessor() const { return false_destination_; } | 906 virtual HBasicBlock* SecondSuccessor() const { return false_destination_; } |
907 | 907 |
| 908 virtual void PrintDataTo(StringStream* stream) const; |
| 909 |
908 Handle<Map> map() const { return map_; } | 910 Handle<Map> map() const { return map_; } |
909 | 911 |
910 DECLARE_CONCRETE_INSTRUCTION(CompareMapAndBranch, "compare_map_and_branch") | 912 DECLARE_CONCRETE_INSTRUCTION(CompareMapAndBranch, "compare_map_and_branch") |
911 | 913 |
912 private: | 914 private: |
913 Handle<Map> map_; | 915 Handle<Map> map_; |
914 HBasicBlock* true_destination_; | 916 HBasicBlock* true_destination_; |
915 HBasicBlock* false_destination_; | 917 HBasicBlock* false_destination_; |
916 }; | 918 }; |
917 | 919 |
(...skipping 2020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2938 HValue* object() const { return left(); } | 2940 HValue* object() const { return left(); } |
2939 HValue* key() const { return right(); } | 2941 HValue* key() const { return right(); } |
2940 }; | 2942 }; |
2941 | 2943 |
2942 #undef DECLARE_INSTRUCTION | 2944 #undef DECLARE_INSTRUCTION |
2943 #undef DECLARE_CONCRETE_INSTRUCTION | 2945 #undef DECLARE_CONCRETE_INSTRUCTION |
2944 | 2946 |
2945 } } // namespace v8::internal | 2947 } } // namespace v8::internal |
2946 | 2948 |
2947 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 2949 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |