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

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

Issue 2170343002: [turbofan] Change Float64Max/Float64Min to JavaScript semantics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: mips/mips64 ports. 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') | src/compiler/x64/code-generator-x64.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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 CheckValueInputIs(node, 0, Type::Unsigned32()); 729 CheckValueInputIs(node, 0, Type::Unsigned32());
730 CheckValueInputIs(node, 1, Type::Unsigned32()); 730 CheckValueInputIs(node, 1, Type::Unsigned32());
731 CheckUpperIs(node, Type::Signed32()); 731 CheckUpperIs(node, Type::Signed32());
732 break; 732 break;
733 case IrOpcode::kNumberClz32: 733 case IrOpcode::kNumberClz32:
734 // Unsigned32 -> Unsigned32 734 // Unsigned32 -> Unsigned32
735 CheckValueInputIs(node, 0, Type::Unsigned32()); 735 CheckValueInputIs(node, 0, Type::Unsigned32());
736 CheckUpperIs(node, Type::Unsigned32()); 736 CheckUpperIs(node, Type::Unsigned32());
737 break; 737 break;
738 case IrOpcode::kNumberAtan2: 738 case IrOpcode::kNumberAtan2:
739 case IrOpcode::kNumberMax:
740 case IrOpcode::kNumberMin:
739 case IrOpcode::kNumberPow: 741 case IrOpcode::kNumberPow:
740 // (Number, Number) -> Number 742 // (Number, Number) -> Number
741 CheckValueInputIs(node, 0, Type::Number()); 743 CheckValueInputIs(node, 0, Type::Number());
742 CheckValueInputIs(node, 1, Type::Number()); 744 CheckValueInputIs(node, 1, Type::Number());
743 CheckUpperIs(node, Type::Number()); 745 CheckUpperIs(node, Type::Number());
744 break; 746 break;
745 case IrOpcode::kNumberAbs: 747 case IrOpcode::kNumberAbs:
746 case IrOpcode::kNumberCeil: 748 case IrOpcode::kNumberCeil:
747 case IrOpcode::kNumberFloor: 749 case IrOpcode::kNumberFloor:
748 case IrOpcode::kNumberFround: 750 case IrOpcode::kNumberFround:
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 case IrOpcode::kUint64Div: 1085 case IrOpcode::kUint64Div:
1084 case IrOpcode::kUint64Mod: 1086 case IrOpcode::kUint64Mod:
1085 case IrOpcode::kUint64LessThan: 1087 case IrOpcode::kUint64LessThan:
1086 case IrOpcode::kUint64LessThanOrEqual: 1088 case IrOpcode::kUint64LessThanOrEqual:
1087 case IrOpcode::kFloat32Add: 1089 case IrOpcode::kFloat32Add:
1088 case IrOpcode::kFloat32Sub: 1090 case IrOpcode::kFloat32Sub:
1089 case IrOpcode::kFloat32SubPreserveNan: 1091 case IrOpcode::kFloat32SubPreserveNan:
1090 case IrOpcode::kFloat32Neg: 1092 case IrOpcode::kFloat32Neg:
1091 case IrOpcode::kFloat32Mul: 1093 case IrOpcode::kFloat32Mul:
1092 case IrOpcode::kFloat32Div: 1094 case IrOpcode::kFloat32Div:
1093 case IrOpcode::kFloat32Max:
1094 case IrOpcode::kFloat32Min:
1095 case IrOpcode::kFloat32Abs: 1095 case IrOpcode::kFloat32Abs:
1096 case IrOpcode::kFloat32Sqrt: 1096 case IrOpcode::kFloat32Sqrt:
1097 case IrOpcode::kFloat32Equal: 1097 case IrOpcode::kFloat32Equal:
1098 case IrOpcode::kFloat32LessThan: 1098 case IrOpcode::kFloat32LessThan:
1099 case IrOpcode::kFloat32LessThanOrEqual: 1099 case IrOpcode::kFloat32LessThanOrEqual:
1100 case IrOpcode::kFloat64Add: 1100 case IrOpcode::kFloat64Add:
1101 case IrOpcode::kFloat64Sub: 1101 case IrOpcode::kFloat64Sub:
1102 case IrOpcode::kFloat64SubPreserveNan: 1102 case IrOpcode::kFloat64SubPreserveNan:
1103 case IrOpcode::kFloat64Neg: 1103 case IrOpcode::kFloat64Neg:
1104 case IrOpcode::kFloat64Mul: 1104 case IrOpcode::kFloat64Mul:
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
1515 replacement->op()->EffectOutputCount() > 0); 1515 replacement->op()->EffectOutputCount() > 0);
1516 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1516 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1517 replacement->opcode() == IrOpcode::kFrameState); 1517 replacement->opcode() == IrOpcode::kFrameState);
1518 } 1518 }
1519 1519
1520 #endif // DEBUG 1520 #endif // DEBUG
1521 1521
1522 } // namespace compiler 1522 } // namespace compiler
1523 } // namespace internal 1523 } // namespace internal
1524 } // namespace v8 1524 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698