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

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

Issue 2059653002: [turbofan] Introduce PlainPrimitiveToNumber. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweak 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') | test/cctest/compiler/test-js-typed-lowering.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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 case IrOpcode::kNumberToUint32: 755 case IrOpcode::kNumberToUint32:
756 // Number -> Unsigned32 756 // Number -> Unsigned32
757 CheckValueInputIs(node, 0, Type::NumberOrUndefined()); 757 CheckValueInputIs(node, 0, Type::NumberOrUndefined());
758 CheckUpperIs(node, Type::Unsigned32()); 758 CheckUpperIs(node, Type::Unsigned32());
759 break; 759 break;
760 case IrOpcode::kNumberIsHoleNaN: 760 case IrOpcode::kNumberIsHoleNaN:
761 // Number -> Boolean 761 // Number -> Boolean
762 CheckValueInputIs(node, 0, Type::Number()); 762 CheckValueInputIs(node, 0, Type::Number());
763 CheckUpperIs(node, Type::Boolean()); 763 CheckUpperIs(node, Type::Boolean());
764 break; 764 break;
765 case IrOpcode::kPlainPrimitiveToNumber:
766 // Type is Number.
767 CheckUpperIs(node, Type::Number());
768 break;
769 case IrOpcode::kPlainPrimitiveToWord32:
770 CheckUpperIs(node, Type::Number());
771 break;
772 case IrOpcode::kPlainPrimitiveToFloat64:
773 CheckUpperIs(node, Type::Number());
774 break;
765 case IrOpcode::kStringEqual: 775 case IrOpcode::kStringEqual:
766 case IrOpcode::kStringLessThan: 776 case IrOpcode::kStringLessThan:
767 case IrOpcode::kStringLessThanOrEqual: 777 case IrOpcode::kStringLessThanOrEqual:
768 // (String, String) -> Boolean 778 // (String, String) -> Boolean
769 CheckValueInputIs(node, 0, Type::String()); 779 CheckValueInputIs(node, 0, Type::String());
770 CheckValueInputIs(node, 1, Type::String()); 780 CheckValueInputIs(node, 1, Type::String());
771 CheckUpperIs(node, Type::Boolean()); 781 CheckUpperIs(node, Type::Boolean());
772 break; 782 break;
773 case IrOpcode::kStringFromCharCode: 783 case IrOpcode::kStringFromCharCode:
774 // Number -> String 784 // Number -> String
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
1414 replacement->op()->EffectOutputCount() > 0); 1424 replacement->op()->EffectOutputCount() > 0);
1415 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1425 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1416 replacement->opcode() == IrOpcode::kFrameState); 1426 replacement->opcode() == IrOpcode::kFrameState);
1417 } 1427 }
1418 1428
1419 #endif // DEBUG 1429 #endif // DEBUG
1420 1430
1421 } // namespace compiler 1431 } // namespace compiler
1422 } // namespace internal 1432 } // namespace internal
1423 } // namespace v8 1433 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | test/cctest/compiler/test-js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698