Revision: 13180
Author: [email protected]
Date: Mon Dec 10 04:10:23 2012
Log: Make sure HMathMinMax always has a supported representation
Review URL: https://codereview.chromium.org/11467021
http://code.google.com/p/v8/source/detail?r=13180
Modified:
/branches/bleeding_edge/src/hydrogen-instructions.cc
/branches/bleeding_edge/src/hydrogen-instructions.h
=======================================
--- /branches/bleeding_edge/src/hydrogen-instructions.cc Thu Nov 22
02:19:05 2012
+++ /branches/bleeding_edge/src/hydrogen-instructions.cc Mon Dec 10
04:10:23 2012
@@ -1687,6 +1687,14 @@
set_observed_input_representation(r, r);
HValue::AssumeRepresentation(r);
}
+
+
+void HMathMinMax::InferRepresentation(HInferRepresentation* h_infer) {
+ ASSERT(CheckFlag(kFlexibleRepresentation));
+ Representation new_rep = RepresentationFromInputs();
+ UpdateRepresentation(new_rep, h_infer, "inputs");
+ // Do not care about uses.
+}
Range* HBitwise::InferRange(Zone* zone) {
=======================================
--- /branches/bleeding_edge/src/hydrogen-instructions.h Mon Dec 10 03:02:22
2012
+++ /branches/bleeding_edge/src/hydrogen-instructions.h Mon Dec 10 04:10:23
2012
@@ -3725,6 +3725,8 @@
virtual Representation observed_input_representation(int index) {
return RequiredInputRepresentation(index);
}
+
+ virtual void InferRepresentation(HInferRepresentation* h_infer);
virtual Representation RepresentationFromInputs() {
Representation left_rep = left()->representation();
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev