| 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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 true_destination_(true_destination), | 903 true_destination_(true_destination), |
| 904 false_destination_(false_destination) { | 904 false_destination_(false_destination) { |
| 905 ASSERT(true_destination != NULL); | 905 ASSERT(true_destination != NULL); |
| 906 ASSERT(false_destination != NULL); | 906 ASSERT(false_destination != NULL); |
| 907 ASSERT(!map.is_null()); | 907 ASSERT(!map.is_null()); |
| 908 } | 908 } |
| 909 | 909 |
| 910 virtual HBasicBlock* FirstSuccessor() const { return true_destination_; } | 910 virtual HBasicBlock* FirstSuccessor() const { return true_destination_; } |
| 911 virtual HBasicBlock* SecondSuccessor() const { return false_destination_; } | 911 virtual HBasicBlock* SecondSuccessor() const { return false_destination_; } |
| 912 | 912 |
| 913 HBasicBlock* true_destination() const { return true_destination_; } |
| 914 HBasicBlock* false_destination() const { return false_destination_; } |
| 915 |
| 913 virtual void PrintDataTo(StringStream* stream) const; | 916 virtual void PrintDataTo(StringStream* stream) const; |
| 914 | 917 |
| 915 Handle<Map> map() const { return map_; } | 918 Handle<Map> map() const { return map_; } |
| 916 | 919 |
| 917 DECLARE_CONCRETE_INSTRUCTION(CompareMapAndBranch, "compare_map_and_branch") | 920 DECLARE_CONCRETE_INSTRUCTION(CompareMapAndBranch, "compare_map_and_branch") |
| 918 | 921 |
| 919 private: | 922 private: |
| 920 Handle<Map> map_; | 923 Handle<Map> map_; |
| 921 HBasicBlock* true_destination_; | 924 HBasicBlock* true_destination_; |
| 922 HBasicBlock* false_destination_; | 925 HBasicBlock* false_destination_; |
| (...skipping 2075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2998 HValue* object() const { return left(); } | 3001 HValue* object() const { return left(); } |
| 2999 HValue* key() const { return right(); } | 3002 HValue* key() const { return right(); } |
| 3000 }; | 3003 }; |
| 3001 | 3004 |
| 3002 #undef DECLARE_INSTRUCTION | 3005 #undef DECLARE_INSTRUCTION |
| 3003 #undef DECLARE_CONCRETE_INSTRUCTION | 3006 #undef DECLARE_CONCRETE_INSTRUCTION |
| 3004 | 3007 |
| 3005 } } // namespace v8::internal | 3008 } } // namespace v8::internal |
| 3006 | 3009 |
| 3007 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 3010 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |