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

Side by Side Diff: src/compiler/simplified-lowering.cc

Issue 484603003: Fix types for SimplifiedLowering. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/simplified-lowering.h" 5 #include "src/compiler/simplified-lowering.h"
6 6
7 #include <deque> 7 #include <deque>
8 #include <queue> 8 #include <queue>
9 9
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 case IrOpcode::kWord64Xor: 622 case IrOpcode::kWord64Xor:
623 case IrOpcode::kWord64Shl: 623 case IrOpcode::kWord64Shl:
624 case IrOpcode::kWord64Shr: 624 case IrOpcode::kWord64Shr:
625 case IrOpcode::kWord64Sar: 625 case IrOpcode::kWord64Sar:
626 return VisitBinop(node, kRepWord64, kRepWord64); 626 return VisitBinop(node, kRepWord64, kRepWord64);
627 case IrOpcode::kWord64Equal: 627 case IrOpcode::kWord64Equal:
628 return VisitBinop(node, kRepWord64, kRepBit); 628 return VisitBinop(node, kRepWord64, kRepBit);
629 629
630 case IrOpcode::kChangeInt32ToInt64: 630 case IrOpcode::kChangeInt32ToInt64:
631 return VisitUnop(node, kTypeInt32 | kRepWord32, 631 return VisitUnop(node, kTypeInt32 | kRepWord32,
632 kTypeInt64 | kRepWord64); 632 kTypeInt32 | kRepWord64);
633 case IrOpcode::kChangeUint32ToUint64: 633 case IrOpcode::kChangeUint32ToUint64:
634 return VisitUnop(node, kTypeUint32 | kRepWord32, 634 return VisitUnop(node, kTypeUint32 | kRepWord32,
635 kTypeUint64 | kRepWord64); 635 kTypeUint32 | kRepWord64);
636 case IrOpcode::kTruncateInt64ToInt32: 636 case IrOpcode::kTruncateInt64ToInt32:
637 return VisitUnop(node, kTypeInt64 | kRepWord64, 637 // TODO(titzer): Is kTypeInt32 correct here?
638 return VisitUnop(node, kTypeInt32 | kRepWord64,
638 kTypeInt32 | kRepWord32); 639 kTypeInt32 | kRepWord32);
639 640
640 case IrOpcode::kChangeInt32ToFloat64: 641 case IrOpcode::kChangeInt32ToFloat64:
641 return VisitUnop(node, kTypeInt32 | kRepWord32, 642 return VisitUnop(node, kTypeInt32 | kRepWord32,
642 kTypeInt32 | kRepFloat64); 643 kTypeInt32 | kRepFloat64);
643 case IrOpcode::kChangeUint32ToFloat64: 644 case IrOpcode::kChangeUint32ToFloat64:
644 return VisitUnop(node, kTypeUint32 | kRepWord32, 645 return VisitUnop(node, kTypeUint32 | kRepWord32,
645 kTypeUint32 | kRepFloat64); 646 kTypeUint32 | kRepFloat64);
646 case IrOpcode::kChangeFloat64ToInt32: 647 case IrOpcode::kChangeFloat64ToInt32:
647 return VisitUnop(node, kTypeInt32 | kRepFloat64, 648 return VisitUnop(node, kTypeInt32 | kRepFloat64,
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 break; 1000 break;
1000 default: 1001 default:
1001 UNREACHABLE(); 1002 UNREACHABLE();
1002 break; 1003 break;
1003 } 1004 }
1004 } 1005 }
1005 1006
1006 } // namespace compiler 1007 } // namespace compiler
1007 } // namespace internal 1008 } // namespace internal
1008 } // namespace v8 1009 } // namespace v8
OLDNEW
« 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