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

Side by Side Diff: src/compiler/verifier.cc

Issue 2191883002: [turbofan] Adds speculative opcodes for shift right. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update. Created 4 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
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/verifier.h" 5 #include "src/compiler/verifier.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <deque> 8 #include <deque>
9 #include <queue> 9 #include <queue>
10 #include <sstream> 10 #include <sstream>
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 CheckUpperIs(node, Type::Signed32()); 714 CheckUpperIs(node, Type::Signed32());
715 break; 715 break;
716 case IrOpcode::kNumberShiftLeft: 716 case IrOpcode::kNumberShiftLeft:
717 case IrOpcode::kNumberShiftRight: 717 case IrOpcode::kNumberShiftRight:
718 // (Signed32, Unsigned32) -> Signed32 718 // (Signed32, Unsigned32) -> Signed32
719 CheckValueInputIs(node, 0, Type::Signed32()); 719 CheckValueInputIs(node, 0, Type::Signed32());
720 CheckValueInputIs(node, 1, Type::Unsigned32()); 720 CheckValueInputIs(node, 1, Type::Unsigned32());
721 CheckUpperIs(node, Type::Signed32()); 721 CheckUpperIs(node, Type::Signed32());
722 break; 722 break;
723 case IrOpcode::kSpeculativeNumberShiftLeft: 723 case IrOpcode::kSpeculativeNumberShiftLeft:
724 case IrOpcode::kSpeculativeNumberShiftRight:
724 CheckUpperIs(node, Type::Signed32()); 725 CheckUpperIs(node, Type::Signed32());
725 break; 726 break;
726 case IrOpcode::kNumberShiftRightLogical: 727 case IrOpcode::kNumberShiftRightLogical:
727 // (Unsigned32, Unsigned32) -> Unsigned32 728 // (Unsigned32, Unsigned32) -> Unsigned32
728 CheckValueInputIs(node, 0, Type::Unsigned32()); 729 CheckValueInputIs(node, 0, Type::Unsigned32());
729 CheckValueInputIs(node, 1, Type::Unsigned32()); 730 CheckValueInputIs(node, 1, Type::Unsigned32());
730 CheckUpperIs(node, Type::Unsigned32()); 731 CheckUpperIs(node, Type::Unsigned32());
731 break; 732 break;
733 case IrOpcode::kSpeculativeNumberShiftRightLogical:
734 CheckUpperIs(node, Type::Unsigned32());
735 break;
732 case IrOpcode::kNumberImul: 736 case IrOpcode::kNumberImul:
733 // (Unsigned32, Unsigned32) -> Signed32 737 // (Unsigned32, Unsigned32) -> Signed32
734 CheckValueInputIs(node, 0, Type::Unsigned32()); 738 CheckValueInputIs(node, 0, Type::Unsigned32());
735 CheckValueInputIs(node, 1, Type::Unsigned32()); 739 CheckValueInputIs(node, 1, Type::Unsigned32());
736 CheckUpperIs(node, Type::Signed32()); 740 CheckUpperIs(node, Type::Signed32());
737 break; 741 break;
738 case IrOpcode::kNumberClz32: 742 case IrOpcode::kNumberClz32:
739 // Unsigned32 -> Unsigned32 743 // Unsigned32 -> Unsigned32
740 CheckValueInputIs(node, 0, Type::Unsigned32()); 744 CheckValueInputIs(node, 0, Type::Unsigned32());
741 CheckUpperIs(node, Type::Unsigned32()); 745 CheckUpperIs(node, Type::Unsigned32());
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 replacement->op()->EffectOutputCount() > 0); 1544 replacement->op()->EffectOutputCount() > 0);
1541 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1545 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1542 replacement->opcode() == IrOpcode::kFrameState); 1546 replacement->opcode() == IrOpcode::kFrameState);
1543 } 1547 }
1544 1548
1545 #endif // DEBUG 1549 #endif // DEBUG
1546 1550
1547 } // namespace compiler 1551 } // namespace compiler
1548 } // namespace internal 1552 } // namespace internal
1549 } // namespace v8 1553 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698