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

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

Issue 2029413005: [builtins] Migrate Math.log to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typo. 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
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 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
728 CheckValueInputIs(node, 1, Type::Unsigned32()); 728 CheckValueInputIs(node, 1, Type::Unsigned32());
729 CheckUpperIs(node, Type::Signed32()); 729 CheckUpperIs(node, Type::Signed32());
730 break; 730 break;
731 case IrOpcode::kNumberClz32: 731 case IrOpcode::kNumberClz32:
732 // Unsigned32 -> Unsigned32 732 // Unsigned32 -> Unsigned32
733 CheckValueInputIs(node, 0, Type::Unsigned32()); 733 CheckValueInputIs(node, 0, Type::Unsigned32());
734 CheckUpperIs(node, Type::Unsigned32()); 734 CheckUpperIs(node, Type::Unsigned32());
735 break; 735 break;
736 case IrOpcode::kNumberCeil: 736 case IrOpcode::kNumberCeil:
737 case IrOpcode::kNumberFloor: 737 case IrOpcode::kNumberFloor:
738 case IrOpcode::kNumberLog:
738 case IrOpcode::kNumberRound: 739 case IrOpcode::kNumberRound:
739 case IrOpcode::kNumberTrunc: 740 case IrOpcode::kNumberTrunc:
740 // Number -> Number 741 // Number -> Number
741 CheckValueInputIs(node, 0, Type::Number()); 742 CheckValueInputIs(node, 0, Type::Number());
742 CheckUpperIs(node, Type::Number()); 743 CheckUpperIs(node, Type::Number());
743 break; 744 break;
744 case IrOpcode::kNumberToInt32: 745 case IrOpcode::kNumberToInt32:
745 // Number -> Signed32 746 // Number -> Signed32
746 CheckValueInputIs(node, 0, Type::NumberOrUndefined()); 747 CheckValueInputIs(node, 0, Type::NumberOrUndefined());
747 CheckUpperIs(node, Type::Signed32()); 748 CheckUpperIs(node, Type::Signed32());
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 case IrOpcode::kFloat64Add: 1015 case IrOpcode::kFloat64Add:
1015 case IrOpcode::kFloat64Sub: 1016 case IrOpcode::kFloat64Sub:
1016 case IrOpcode::kFloat64SubPreserveNan: 1017 case IrOpcode::kFloat64SubPreserveNan:
1017 case IrOpcode::kFloat64Neg: 1018 case IrOpcode::kFloat64Neg:
1018 case IrOpcode::kFloat64Mul: 1019 case IrOpcode::kFloat64Mul:
1019 case IrOpcode::kFloat64Div: 1020 case IrOpcode::kFloat64Div:
1020 case IrOpcode::kFloat64Mod: 1021 case IrOpcode::kFloat64Mod:
1021 case IrOpcode::kFloat64Max: 1022 case IrOpcode::kFloat64Max:
1022 case IrOpcode::kFloat64Min: 1023 case IrOpcode::kFloat64Min:
1023 case IrOpcode::kFloat64Abs: 1024 case IrOpcode::kFloat64Abs:
1025 case IrOpcode::kFloat64Log:
1024 case IrOpcode::kFloat64Sqrt: 1026 case IrOpcode::kFloat64Sqrt:
1025 case IrOpcode::kFloat32RoundDown: 1027 case IrOpcode::kFloat32RoundDown:
1026 case IrOpcode::kFloat64RoundDown: 1028 case IrOpcode::kFloat64RoundDown:
1027 case IrOpcode::kFloat32RoundUp: 1029 case IrOpcode::kFloat32RoundUp:
1028 case IrOpcode::kFloat64RoundUp: 1030 case IrOpcode::kFloat64RoundUp:
1029 case IrOpcode::kFloat32RoundTruncate: 1031 case IrOpcode::kFloat32RoundTruncate:
1030 case IrOpcode::kFloat64RoundTruncate: 1032 case IrOpcode::kFloat64RoundTruncate:
1031 case IrOpcode::kFloat64RoundTiesAway: 1033 case IrOpcode::kFloat64RoundTiesAway:
1032 case IrOpcode::kFloat32RoundTiesEven: 1034 case IrOpcode::kFloat32RoundTiesEven:
1033 case IrOpcode::kFloat64RoundTiesEven: 1035 case IrOpcode::kFloat64RoundTiesEven:
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1407 replacement->op()->EffectOutputCount() > 0); 1409 replacement->op()->EffectOutputCount() > 0);
1408 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1410 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1409 replacement->opcode() == IrOpcode::kFrameState); 1411 replacement->opcode() == IrOpcode::kFrameState);
1410 } 1412 }
1411 1413
1412 #endif // DEBUG 1414 #endif // DEBUG
1413 1415
1414 } // namespace compiler 1416 } // namespace compiler
1415 } // namespace internal 1417 } // namespace internal
1416 } // namespace v8 1418 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698