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

Unified Diff: src/hydrogen-instructions.h

Issue 5971003: Fix GVN for polymorphic loads.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 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 side-by-side diff with in-line comments
Download patch
« src/hydrogen.cc ('K') | « src/hydrogen.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-instructions.h
===================================================================
--- src/hydrogen-instructions.h (revision 6079)
+++ src/hydrogen-instructions.h (working copy)
@@ -2552,7 +2552,8 @@
HLoadNamedField(HValue* object, bool is_in_object, int offset)
Kevin Millikin (Chromium) 2010/12/20 12:34:34 I'd rather pass is_polymorphic to the constructor
: HUnaryOperation(object),
is_in_object_(is_in_object),
- offset_(offset) {
+ offset_(offset),
+ is_polymorphic_(false) {
set_representation(Representation::Tagged());
SetFlag(kUseGVN);
if (is_in_object) {
@@ -2566,6 +2567,9 @@
bool is_in_object() const { return is_in_object_; }
int offset() const { return offset_; }
+ bool is_polymorphic() const { return is_polymorphic_; }
+ void set_is_polymorphic(bool b) { is_polymorphic_ = b; }
+
virtual Representation RequiredInputRepresentation(int index) const {
return Representation::Tagged();
}
@@ -2582,6 +2586,7 @@
private:
bool is_in_object_;
int offset_;
+ bool is_polymorphic_;
};
« src/hydrogen.cc ('K') | « src/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698