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

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

Issue 251493004: Preserve Smi representation of non-escaping fields. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 months 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
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 1710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1721 HValue* value() { return OperandAt(0); } 1721 HValue* value() { return OperandAt(0); }
1722 1722
1723 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 1723 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
1724 return representation(); // Same as the output representation. 1724 return representation(); // Same as the output representation.
1725 } 1725 }
1726 1726
1727 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1727 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1728 1728
1729 DECLARE_CONCRETE_INSTRUCTION(ForceRepresentation) 1729 DECLARE_CONCRETE_INSTRUCTION(ForceRepresentation)
1730 1730
1731 private:
Michael Starzinger 2014/04/25 08:35:10 Let's keep this constructor private and use HForce
Jarin 2014/04/25 11:05:07 Done.
1732 HForceRepresentation(HValue* value, Representation required_representation) { 1731 HForceRepresentation(HValue* value, Representation required_representation) {
1733 SetOperandAt(0, value); 1732 SetOperandAt(0, value);
1734 set_representation(required_representation); 1733 set_representation(required_representation);
1735 } 1734 }
1736 }; 1735 };
1737 1736
1738 1737
1739 class HChange V8_FINAL : public HUnaryOperation { 1738 class HChange V8_FINAL : public HUnaryOperation {
1740 public: 1739 public:
1741 HChange(HValue* value, 1740 HChange(HValue* value,
(...skipping 5824 matching lines...) Expand 10 before | Expand all | Expand 10 after
7566 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7565 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7567 }; 7566 };
7568 7567
7569 7568
7570 #undef DECLARE_INSTRUCTION 7569 #undef DECLARE_INSTRUCTION
7571 #undef DECLARE_CONCRETE_INSTRUCTION 7570 #undef DECLARE_CONCRETE_INSTRUCTION
7572 7571
7573 } } // namespace v8::internal 7572 } } // namespace v8::internal
7574 7573
7575 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7574 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698