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

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

Issue 68493005: Constant-folding through HForceRepresentation fix. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review notes fixed. Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen.cc ('k') | 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 // 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 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after
1668 1668
1669 DECLARE_CONCRETE_INSTRUCTION(UseConst) 1669 DECLARE_CONCRETE_INSTRUCTION(UseConst)
1670 1670
1671 private: 1671 private:
1672 explicit HUseConst(HValue* old_value) : HUnaryOperation(old_value) { } 1672 explicit HUseConst(HValue* old_value) : HUnaryOperation(old_value) { }
1673 }; 1673 };
1674 1674
1675 1675
1676 class HForceRepresentation V8_FINAL : public HTemplateInstruction<1> { 1676 class HForceRepresentation V8_FINAL : public HTemplateInstruction<1> {
1677 public: 1677 public:
1678 DECLARE_INSTRUCTION_FACTORY_P2(HForceRepresentation, HValue*, Representation); 1678 static HInstruction* New(Zone* zone, HValue* context, HValue* value,
1679 Representation required_representation);
1679 1680
1680 HValue* value() { return OperandAt(0); } 1681 HValue* value() { return OperandAt(0); }
1681 1682
1682 virtual HValue* EnsureAndPropagateNotMinusZero( 1683 virtual HValue* EnsureAndPropagateNotMinusZero(
1683 BitVector* visited) V8_OVERRIDE; 1684 BitVector* visited) V8_OVERRIDE;
1684 1685
1685 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 1686 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
1686 return representation(); // Same as the output representation. 1687 return representation(); // Same as the output representation.
1687 } 1688 }
1688 1689
(...skipping 5764 matching lines...) Expand 10 before | Expand all | Expand 10 after
7453 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7454 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7454 }; 7455 };
7455 7456
7456 7457
7457 #undef DECLARE_INSTRUCTION 7458 #undef DECLARE_INSTRUCTION
7458 #undef DECLARE_CONCRETE_INSTRUCTION 7459 #undef DECLARE_CONCRETE_INSTRUCTION
7459 7460
7460 } } // namespace v8::internal 7461 } } // namespace v8::internal
7461 7462
7462 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7463 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698