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

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

Issue 1890763002: [turbofan] Remove unused PlainPrimitiveToNumber 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') | test/unittests/compiler/simplified-operator-unittest.cc » ('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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 case IrOpcode::kNumberToUint32: 710 case IrOpcode::kNumberToUint32:
711 // Number -> Unsigned32 711 // Number -> Unsigned32
712 CheckValueInputIs(node, 0, Type::Number()); 712 CheckValueInputIs(node, 0, Type::Number());
713 CheckUpperIs(node, Type::Unsigned32()); 713 CheckUpperIs(node, Type::Unsigned32());
714 break; 714 break;
715 case IrOpcode::kNumberIsHoleNaN: 715 case IrOpcode::kNumberIsHoleNaN:
716 // Number -> Boolean 716 // Number -> Boolean
717 CheckValueInputIs(node, 0, Type::Number()); 717 CheckValueInputIs(node, 0, Type::Number());
718 CheckUpperIs(node, Type::Boolean()); 718 CheckUpperIs(node, Type::Boolean());
719 break; 719 break;
720 case IrOpcode::kPlainPrimitiveToNumber:
721 // PlainPrimitive -> Number
722 CheckValueInputIs(node, 0, Type::PlainPrimitive());
723 CheckUpperIs(node, Type::Number());
724 break;
725 case IrOpcode::kStringEqual: 720 case IrOpcode::kStringEqual:
726 case IrOpcode::kStringLessThan: 721 case IrOpcode::kStringLessThan:
727 case IrOpcode::kStringLessThanOrEqual: 722 case IrOpcode::kStringLessThanOrEqual:
728 // (String, String) -> Boolean 723 // (String, String) -> Boolean
729 CheckValueInputIs(node, 0, Type::String()); 724 CheckValueInputIs(node, 0, Type::String());
730 CheckValueInputIs(node, 1, Type::String()); 725 CheckValueInputIs(node, 1, Type::String());
731 CheckUpperIs(node, Type::Boolean()); 726 CheckUpperIs(node, Type::Boolean());
732 break; 727 break;
733 case IrOpcode::kStringToNumber: 728 case IrOpcode::kStringToNumber:
734 // String -> Number 729 // String -> Number
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 replacement->op()->EffectOutputCount() > 0); 1306 replacement->op()->EffectOutputCount() > 0);
1312 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1307 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1313 replacement->opcode() == IrOpcode::kFrameState); 1308 replacement->opcode() == IrOpcode::kFrameState);
1314 } 1309 }
1315 1310
1316 #endif // DEBUG 1311 #endif // DEBUG
1317 1312
1318 } // namespace compiler 1313 } // namespace compiler
1319 } // namespace internal 1314 } // namespace internal
1320 } // namespace v8 1315 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | test/unittests/compiler/simplified-operator-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698