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

Unified Diff: src/hydrogen-instructions.h

Issue 12259008: Fix HCheckSmiOrInt32 fake observed representation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen-instructions.h
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
index 27675606056852a9093c827bf9ff16c0b18d09d4..2e7e374025a5b017b42e8b49d6e9dc2566d47c7b 100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -2819,6 +2819,10 @@ class HCheckSmiOrInt32: public HUnaryOperation {
}
virtual void InferRepresentation(HInferRepresentation* h_infer);
+ virtual Representation observed_input_representation(int index) {
+ return Representation::Integer32();
+ }
+
virtual HValue* Canonicalize() {
if (representation().IsTagged() && !type().IsSmi()) {
return this;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698