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 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1243 DISALLOW_COPY_AND_ASSIGN(HValue); | 1243 DISALLOW_COPY_AND_ASSIGN(HValue); |
1244 }; | 1244 }; |
1245 | 1245 |
1246 | 1246 |
1247 class HInstruction: public HValue { | 1247 class HInstruction: public HValue { |
1248 public: | 1248 public: |
1249 HInstruction* next() const { return next_; } | 1249 HInstruction* next() const { return next_; } |
1250 HInstruction* previous() const { return previous_; } | 1250 HInstruction* previous() const { return previous_; } |
1251 | 1251 |
1252 virtual void PrintTo(StringStream* stream); | 1252 virtual void PrintTo(StringStream* stream); |
1253 virtual void PrintDataTo(StringStream* stream) { } | 1253 virtual void PrintDataTo(StringStream* stream); |
1254 | 1254 |
1255 bool IsLinked() const { return block() != NULL; } | 1255 bool IsLinked() const { return block() != NULL; } |
1256 void Unlink(); | 1256 void Unlink(); |
1257 void InsertBefore(HInstruction* next); | 1257 void InsertBefore(HInstruction* next); |
1258 void InsertAfter(HInstruction* previous); | 1258 void InsertAfter(HInstruction* previous); |
1259 | 1259 |
1260 // The position is a write-once variable. | 1260 // The position is a write-once variable. |
1261 int position() const { return position_; } | 1261 int position() const { return position_; } |
1262 bool has_position() const { return position_ != RelocInfo::kNoPosition; } | 1262 bool has_position() const { return position_ != RelocInfo::kNoPosition; } |
1263 void set_position(int position) { | 1263 void set_position(int position) { |
(...skipping 5185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6449 virtual bool IsDeletable() const { return true; } | 6449 virtual bool IsDeletable() const { return true; } |
6450 }; | 6450 }; |
6451 | 6451 |
6452 | 6452 |
6453 #undef DECLARE_INSTRUCTION | 6453 #undef DECLARE_INSTRUCTION |
6454 #undef DECLARE_CONCRETE_INSTRUCTION | 6454 #undef DECLARE_CONCRETE_INSTRUCTION |
6455 | 6455 |
6456 } } // namespace v8::internal | 6456 } } // namespace v8::internal |
6457 | 6457 |
6458 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 6458 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |