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

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

Issue 1843533003: [turbofan] Introduce NumberFloor simplified operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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') | 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/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 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 CheckValueInputIs(node, 0, Type::Signed32()); 670 CheckValueInputIs(node, 0, Type::Signed32());
671 CheckValueInputIs(node, 1, Type::Unsigned32()); 671 CheckValueInputIs(node, 1, Type::Unsigned32());
672 CheckUpperIs(node, Type::Signed32()); 672 CheckUpperIs(node, Type::Signed32());
673 break; 673 break;
674 case IrOpcode::kNumberShiftRightLogical: 674 case IrOpcode::kNumberShiftRightLogical:
675 // (Unsigned32, Unsigned32) -> Unsigned32 675 // (Unsigned32, Unsigned32) -> Unsigned32
676 CheckValueInputIs(node, 0, Type::Unsigned32()); 676 CheckValueInputIs(node, 0, Type::Unsigned32());
677 CheckValueInputIs(node, 1, Type::Unsigned32()); 677 CheckValueInputIs(node, 1, Type::Unsigned32());
678 CheckUpperIs(node, Type::Unsigned32()); 678 CheckUpperIs(node, Type::Unsigned32());
679 break; 679 break;
680 case IrOpcode::kNumberFloor:
681 // Number -> Number
682 CheckValueInputIs(node, 0, Type::Number());
683 CheckUpperIs(node, Type::Number());
684 break;
680 case IrOpcode::kNumberToInt32: 685 case IrOpcode::kNumberToInt32:
681 // Number -> Signed32 686 // Number -> Signed32
682 CheckValueInputIs(node, 0, Type::Number()); 687 CheckValueInputIs(node, 0, Type::Number());
683 CheckUpperIs(node, Type::Signed32()); 688 CheckUpperIs(node, Type::Signed32());
684 break; 689 break;
685 case IrOpcode::kNumberToUint32: 690 case IrOpcode::kNumberToUint32:
686 // Number -> Unsigned32 691 // Number -> Unsigned32
687 CheckValueInputIs(node, 0, Type::Number()); 692 CheckValueInputIs(node, 0, Type::Number());
688 CheckUpperIs(node, Type::Unsigned32()); 693 CheckUpperIs(node, Type::Unsigned32());
689 break; 694 break;
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 replacement->op()->EffectOutputCount() > 0); 1289 replacement->op()->EffectOutputCount() > 0);
1285 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1290 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1286 replacement->opcode() == IrOpcode::kFrameState); 1291 replacement->opcode() == IrOpcode::kFrameState);
1287 } 1292 }
1288 1293
1289 #endif // DEBUG 1294 #endif // DEBUG
1290 1295
1291 } // namespace compiler 1296 } // namespace compiler
1292 } // namespace internal 1297 } // namespace internal
1293 } // namespace v8 1298 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698