| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1120 | 1120 |
| 1121 // The position is a write-once variable. | 1121 // The position is a write-once variable. |
| 1122 virtual int position() const V8_OVERRIDE { return position_; } | 1122 virtual int position() const V8_OVERRIDE { return position_; } |
| 1123 bool has_position() const { return position_ != RelocInfo::kNoPosition; } | 1123 bool has_position() const { return position_ != RelocInfo::kNoPosition; } |
| 1124 void set_position(int position) { | 1124 void set_position(int position) { |
| 1125 ASSERT(!has_position()); | 1125 ASSERT(!has_position()); |
| 1126 ASSERT(position != RelocInfo::kNoPosition); | 1126 ASSERT(position != RelocInfo::kNoPosition); |
| 1127 position_ = position; | 1127 position_ = position; |
| 1128 } | 1128 } |
| 1129 | 1129 |
| 1130 bool Dominates(HInstruction* other); |
| 1131 |
| 1130 bool CanTruncateToInt32() const { return CheckFlag(kTruncatingToInt32); } | 1132 bool CanTruncateToInt32() const { return CheckFlag(kTruncatingToInt32); } |
| 1131 | 1133 |
| 1132 virtual LInstruction* CompileToLithium(LChunkBuilder* builder) = 0; | 1134 virtual LInstruction* CompileToLithium(LChunkBuilder* builder) = 0; |
| 1133 | 1135 |
| 1134 #ifdef DEBUG | 1136 #ifdef DEBUG |
| 1135 virtual void Verify() V8_OVERRIDE; | 1137 virtual void Verify() V8_OVERRIDE; |
| 1136 #endif | 1138 #endif |
| 1137 | 1139 |
| 1138 virtual bool IsCall() { return false; } | 1140 virtual bool IsCall() { return false; } |
| 1139 | 1141 |
| (...skipping 6160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7300 virtual bool IsDeletable() const V8_OVERRIDE { return true; } | 7302 virtual bool IsDeletable() const V8_OVERRIDE { return true; } |
| 7301 }; | 7303 }; |
| 7302 | 7304 |
| 7303 | 7305 |
| 7304 #undef DECLARE_INSTRUCTION | 7306 #undef DECLARE_INSTRUCTION |
| 7305 #undef DECLARE_CONCRETE_INSTRUCTION | 7307 #undef DECLARE_CONCRETE_INSTRUCTION |
| 7306 | 7308 |
| 7307 } } // namespace v8::internal | 7309 } } // namespace v8::internal |
| 7308 | 7310 |
| 7309 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7311 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |