OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ |
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_HYDROGEN_INSTRUCTIONS_H_ |
7 | 7 |
8 #include <iosfwd> | 8 #include <iosfwd> |
9 | 9 |
10 #include "src/v8.h" | 10 #include "src/v8.h" |
(...skipping 4459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4470 void set_known_successor_index(int known_successor_index) { | 4470 void set_known_successor_index(int known_successor_index) { |
4471 known_successor_index_ = known_successor_index; | 4471 known_successor_index_ = known_successor_index; |
4472 } | 4472 } |
4473 | 4473 |
4474 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch) | 4474 DECLARE_CONCRETE_INSTRUCTION(IsStringAndBranch) |
4475 | 4475 |
4476 protected: | 4476 protected: |
4477 virtual int RedefinedOperandIndex() { return 0; } | 4477 virtual int RedefinedOperandIndex() { return 0; } |
4478 | 4478 |
4479 private: | 4479 private: |
4480 HIsStringAndBranch(HValue* value, | 4480 HIsStringAndBranch(HValue* value, HBasicBlock* true_target = NULL, |
4481 HBasicBlock* true_target = NULL, | |
4482 HBasicBlock* false_target = NULL) | 4481 HBasicBlock* false_target = NULL) |
4483 : HUnaryControlInstruction(value, true_target, false_target), | 4482 : HUnaryControlInstruction(value, true_target, false_target), |
4484 known_successor_index_(kNoKnownSuccessorIndex) { } | 4483 known_successor_index_(kNoKnownSuccessorIndex) { |
| 4484 set_representation(Representation::Tagged()); |
| 4485 } |
4485 | 4486 |
4486 int known_successor_index_; | 4487 int known_successor_index_; |
4487 }; | 4488 }; |
4488 | 4489 |
4489 | 4490 |
4490 class HIsSmiAndBranch FINAL : public HUnaryControlInstruction { | 4491 class HIsSmiAndBranch FINAL : public HUnaryControlInstruction { |
4491 public: | 4492 public: |
4492 DECLARE_INSTRUCTION_FACTORY_P1(HIsSmiAndBranch, HValue*); | 4493 DECLARE_INSTRUCTION_FACTORY_P1(HIsSmiAndBranch, HValue*); |
4493 DECLARE_INSTRUCTION_FACTORY_P3(HIsSmiAndBranch, HValue*, | 4494 DECLARE_INSTRUCTION_FACTORY_P3(HIsSmiAndBranch, HValue*, |
4494 HBasicBlock*, HBasicBlock*); | 4495 HBasicBlock*, HBasicBlock*); |
(...skipping 3401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7896 }; | 7897 }; |
7897 | 7898 |
7898 | 7899 |
7899 | 7900 |
7900 #undef DECLARE_INSTRUCTION | 7901 #undef DECLARE_INSTRUCTION |
7901 #undef DECLARE_CONCRETE_INSTRUCTION | 7902 #undef DECLARE_CONCRETE_INSTRUCTION |
7902 | 7903 |
7903 } } // namespace v8::internal | 7904 } } // namespace v8::internal |
7904 | 7905 |
7905 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7906 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |