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

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

Issue 65643003: Regression fix: HForceRepresentation shouldn't be an idef. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 1561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 BitVector* visited) V8_OVERRIDE; 1572 BitVector* visited) V8_OVERRIDE;
1573 1573
1574 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 1574 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
1575 return representation(); // Same as the output representation. 1575 return representation(); // Same as the output representation.
1576 } 1576 }
1577 1577
1578 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1578 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1579 1579
1580 DECLARE_CONCRETE_INSTRUCTION(ForceRepresentation) 1580 DECLARE_CONCRETE_INSTRUCTION(ForceRepresentation)
1581 1581
1582 protected:
1583 virtual int RedefinedOperandIndex() { return 0; }
1584
1585 private: 1582 private:
1586 HForceRepresentation(HValue* value, Representation required_representation) { 1583 HForceRepresentation(HValue* value, Representation required_representation) {
1587 SetOperandAt(0, value); 1584 SetOperandAt(0, value);
1588 set_representation(required_representation); 1585 set_representation(required_representation);
1589 } 1586 }
1590 }; 1587 };
1591 1588
1592 1589
1593 class HChange V8_FINAL : public HUnaryOperation { 1590 class HChange V8_FINAL : public HUnaryOperation {
1594 public: 1591 public:
(...skipping 5705 matching lines...) Expand 10 before | Expand all | Expand 10 after
7300 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7297 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7301 }; 7298 };
7302 7299
7303 7300
7304 #undef DECLARE_INSTRUCTION 7301 #undef DECLARE_INSTRUCTION
7305 #undef DECLARE_CONCRETE_INSTRUCTION 7302 #undef DECLARE_CONCRETE_INSTRUCTION
7306 7303
7307 } } // namespace v8::internal 7304 } } // namespace v8::internal
7308 7305
7309 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7306 #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