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

Unified Diff: src/compiler/representation-change.h

Issue 598933003: Fix bug in representation-change.h. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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/compiler/representation-change.h
diff --git a/src/compiler/representation-change.h b/src/compiler/representation-change.h
index bb3e357325b28b0334d5d69589bb520e9414a4fc..f50a7ef1e374701c0b41bcc8f22cb69595387526 100644
--- a/src/compiler/representation-change.h
+++ b/src/compiler/representation-change.h
@@ -220,9 +220,9 @@ class RepresentationChanger {
switch (node->opcode()) {
case IrOpcode::kInt32Constant:
return node; // No change necessary.
- case IrOpcode::kNumberConstant:
case IrOpcode::kFloat32Constant:
return MakeInt32Constant(OpParameter<float>(node));
+ case IrOpcode::kNumberConstant:
case IrOpcode::kFloat64Constant:
return MakeInt32Constant(OpParameter<double>(node));
default:
« 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