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

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

Issue 2074903002: [turbofan] Numeric type feedback for mul, div and mod. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 6 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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 break; 682 break;
683 case IrOpcode::kNumberLessThan: 683 case IrOpcode::kNumberLessThan:
684 case IrOpcode::kNumberLessThanOrEqual: 684 case IrOpcode::kNumberLessThanOrEqual:
685 // (Number, Number) -> Boolean 685 // (Number, Number) -> Boolean
686 CheckValueInputIs(node, 0, Type::Number()); 686 CheckValueInputIs(node, 0, Type::Number());
687 CheckValueInputIs(node, 1, Type::Number()); 687 CheckValueInputIs(node, 1, Type::Number());
688 CheckUpperIs(node, Type::Boolean()); 688 CheckUpperIs(node, Type::Boolean());
689 break; 689 break;
690 case IrOpcode::kSpeculativeNumberAdd: 690 case IrOpcode::kSpeculativeNumberAdd:
691 case IrOpcode::kSpeculativeNumberSubtract: 691 case IrOpcode::kSpeculativeNumberSubtract:
692 case IrOpcode::kSpeculativeNumberMultiply:
693 case IrOpcode::kSpeculativeNumberDivide:
694 case IrOpcode::kSpeculativeNumberModulus:
692 CheckUpperIs(node, Type::Number()); 695 CheckUpperIs(node, Type::Number());
693 break; 696 break;
694 case IrOpcode::kSpeculativeNumberEqual: 697 case IrOpcode::kSpeculativeNumberEqual:
695 case IrOpcode::kSpeculativeNumberLessThan: 698 case IrOpcode::kSpeculativeNumberLessThan:
696 case IrOpcode::kSpeculativeNumberLessThanOrEqual: 699 case IrOpcode::kSpeculativeNumberLessThanOrEqual:
697 CheckUpperIs(node, Type::Boolean()); 700 CheckUpperIs(node, Type::Boolean());
698 break; 701 break;
699 case IrOpcode::kNumberAdd: 702 case IrOpcode::kNumberAdd:
700 case IrOpcode::kNumberSubtract: 703 case IrOpcode::kNumberSubtract:
701 case IrOpcode::kNumberMultiply: 704 case IrOpcode::kNumberMultiply:
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 replacement->op()->EffectOutputCount() > 0); 1472 replacement->op()->EffectOutputCount() > 0);
1470 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1473 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1471 replacement->opcode() == IrOpcode::kFrameState); 1474 replacement->opcode() == IrOpcode::kFrameState);
1472 } 1475 }
1473 1476
1474 #endif // DEBUG 1477 #endif // DEBUG
1475 1478
1476 } // namespace compiler 1479 } // namespace compiler
1477 } // namespace internal 1480 } // namespace internal
1478 } // namespace v8 1481 } // 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