Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: src/hydrogen-instructions.h

Issue 807273003: Reduce impact of HParameter inputs on HPhi representation selection (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after
1634 }; 1634 };
1635 1635
1636 1636
1637 class HForceRepresentation FINAL : public HTemplateInstruction<1> { 1637 class HForceRepresentation FINAL : public HTemplateInstruction<1> {
1638 public: 1638 public:
1639 static HInstruction* New(Zone* zone, HValue* context, HValue* value, 1639 static HInstruction* New(Zone* zone, HValue* context, HValue* value,
1640 Representation required_representation); 1640 Representation required_representation);
1641 1641
1642 HValue* value() const { return OperandAt(0); } 1642 HValue* value() const { return OperandAt(0); }
1643 1643
1644 Representation observed_input_representation(int index) OVERRIDE {
1645 // We haven't actually *observed* this, but it's closer to the truth
1646 // than 'None'.
1647 return representation(); // Same as the output representation.
1648 }
1644 Representation RequiredInputRepresentation(int index) OVERRIDE { 1649 Representation RequiredInputRepresentation(int index) OVERRIDE {
1645 return representation(); // Same as the output representation. 1650 return representation(); // Same as the output representation.
1646 } 1651 }
1647 1652
1648 std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT 1653 std::ostream& PrintDataTo(std::ostream& os) const OVERRIDE; // NOLINT
1649 1654
1650 DECLARE_CONCRETE_INSTRUCTION(ForceRepresentation) 1655 DECLARE_CONCRETE_INSTRUCTION(ForceRepresentation)
1651 1656
1652 private: 1657 private:
1653 HForceRepresentation(HValue* value, Representation required_representation) { 1658 HForceRepresentation(HValue* value, Representation required_representation) {
(...skipping 6366 matching lines...) Expand 10 before | Expand all | Expand 10 after
8020 }; 8025 };
8021 8026
8022 8027
8023 8028
8024 #undef DECLARE_INSTRUCTION 8029 #undef DECLARE_INSTRUCTION
8025 #undef DECLARE_CONCRETE_INSTRUCTION 8030 #undef DECLARE_CONCRETE_INSTRUCTION
8026 8031
8027 } } // namespace v8::internal 8032 } } // namespace v8::internal
8028 8033
8029 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 8034 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698