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_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
7 | 7 |
8 #include <cstring> | 8 #include <cstring> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 | 10 |
(...skipping 4411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4422 DECLARE_INSTRUCTION_FACTORY_P1(HIsUndetectableAndBranch, HValue*); | 4422 DECLARE_INSTRUCTION_FACTORY_P1(HIsUndetectableAndBranch, HValue*); |
4423 DECLARE_INSTRUCTION_FACTORY_P3(HIsUndetectableAndBranch, HValue*, | 4423 DECLARE_INSTRUCTION_FACTORY_P3(HIsUndetectableAndBranch, HValue*, |
4424 HBasicBlock*, HBasicBlock*); | 4424 HBasicBlock*, HBasicBlock*); |
4425 | 4425 |
4426 Representation RequiredInputRepresentation(int index) override { | 4426 Representation RequiredInputRepresentation(int index) override { |
4427 return Representation::Tagged(); | 4427 return Representation::Tagged(); |
4428 } | 4428 } |
4429 | 4429 |
4430 bool KnownSuccessorBlock(HBasicBlock** block) override; | 4430 bool KnownSuccessorBlock(HBasicBlock** block) override; |
4431 | 4431 |
4432 static const int kNoKnownSuccessorIndex = -1; | |
4433 int known_successor_index() const { return known_successor_index_; } | |
4434 void set_known_successor_index(int known_successor_index) { | |
4435 known_successor_index_ = known_successor_index; | |
4436 } | |
4437 | |
4432 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch) | 4438 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch) |
4433 | 4439 |
4434 private: | 4440 private: |
4435 HIsUndetectableAndBranch(HValue* value, | 4441 HIsUndetectableAndBranch(HValue* value, |
4436 HBasicBlock* true_target = NULL, | 4442 HBasicBlock* true_target = NULL, |
4437 HBasicBlock* false_target = NULL) | 4443 HBasicBlock* false_target = NULL) |
4438 : HUnaryControlInstruction(value, true_target, false_target) {} | 4444 : HUnaryControlInstruction(value, true_target, false_target), |
4445 known_successor_index_(kNoKnownSuccessorIndex) {} | |
4446 | |
4447 int known_successor_index_; | |
danno
2016/02/24 08:25:40
Maybe I'm missing something, but it doesn't look l
Benedikt Meurer
2016/02/24 08:41:18
Right, I tried to add support for HIsUndetectableA
| |
4439 }; | 4448 }; |
4440 | 4449 |
4441 | 4450 |
4442 class HStringCompareAndBranch final : public HTemplateControlInstruction<2, 3> { | 4451 class HStringCompareAndBranch final : public HTemplateControlInstruction<2, 3> { |
4443 public: | 4452 public: |
4444 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P3(HStringCompareAndBranch, | 4453 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P3(HStringCompareAndBranch, |
4445 HValue*, | 4454 HValue*, |
4446 HValue*, | 4455 HValue*, |
4447 Token::Value); | 4456 Token::Value); |
4448 | 4457 |
(...skipping 3219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
7668 | 7677 |
7669 | 7678 |
7670 | 7679 |
7671 #undef DECLARE_INSTRUCTION | 7680 #undef DECLARE_INSTRUCTION |
7672 #undef DECLARE_CONCRETE_INSTRUCTION | 7681 #undef DECLARE_CONCRETE_INSTRUCTION |
7673 | 7682 |
7674 } // namespace internal | 7683 } // namespace internal |
7675 } // namespace v8 | 7684 } // namespace v8 |
7676 | 7685 |
7677 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 7686 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |