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

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

Issue 2150553002: [turbofan] Introduces the SpeculativeNumberShiftLeft opcode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update. Created 4 years, 5 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
« no previous file with comments | « src/compiler/typer.cc ('k') | test/mjsunit/compiler/turbo-number-feedback.js » ('j') | 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/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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 CheckValueInputIs(node, 1, Type::Signed32()); 690 CheckValueInputIs(node, 1, Type::Signed32());
691 CheckUpperIs(node, Type::Signed32()); 691 CheckUpperIs(node, Type::Signed32());
692 break; 692 break;
693 case IrOpcode::kNumberShiftLeft: 693 case IrOpcode::kNumberShiftLeft:
694 case IrOpcode::kNumberShiftRight: 694 case IrOpcode::kNumberShiftRight:
695 // (Signed32, Unsigned32) -> Signed32 695 // (Signed32, Unsigned32) -> Signed32
696 CheckValueInputIs(node, 0, Type::Signed32()); 696 CheckValueInputIs(node, 0, Type::Signed32());
697 CheckValueInputIs(node, 1, Type::Unsigned32()); 697 CheckValueInputIs(node, 1, Type::Unsigned32());
698 CheckUpperIs(node, Type::Signed32()); 698 CheckUpperIs(node, Type::Signed32());
699 break; 699 break;
700 case IrOpcode::kSpeculativeNumberShiftLeft:
701 CheckUpperIs(node, Type::Signed32());
702 break;
700 case IrOpcode::kNumberShiftRightLogical: 703 case IrOpcode::kNumberShiftRightLogical:
701 // (Unsigned32, Unsigned32) -> Unsigned32 704 // (Unsigned32, Unsigned32) -> Unsigned32
702 CheckValueInputIs(node, 0, Type::Unsigned32()); 705 CheckValueInputIs(node, 0, Type::Unsigned32());
703 CheckValueInputIs(node, 1, Type::Unsigned32()); 706 CheckValueInputIs(node, 1, Type::Unsigned32());
704 CheckUpperIs(node, Type::Unsigned32()); 707 CheckUpperIs(node, Type::Unsigned32());
705 break; 708 break;
706 case IrOpcode::kNumberImul: 709 case IrOpcode::kNumberImul:
707 // (Unsigned32, Unsigned32) -> Signed32 710 // (Unsigned32, Unsigned32) -> Signed32
708 CheckValueInputIs(node, 0, Type::Unsigned32()); 711 CheckValueInputIs(node, 0, Type::Unsigned32());
709 CheckValueInputIs(node, 1, Type::Unsigned32()); 712 CheckValueInputIs(node, 1, Type::Unsigned32());
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after
1486 replacement->op()->EffectOutputCount() > 0); 1489 replacement->op()->EffectOutputCount() > 0);
1487 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1490 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1488 replacement->opcode() == IrOpcode::kFrameState); 1491 replacement->opcode() == IrOpcode::kFrameState);
1489 } 1492 }
1490 1493
1491 #endif // DEBUG 1494 #endif // DEBUG
1492 1495
1493 } // namespace compiler 1496 } // namespace compiler
1494 } // namespace internal 1497 } // namespace internal
1495 } // namespace v8 1498 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | test/mjsunit/compiler/turbo-number-feedback.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698