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

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

Issue 2227463003: [WIP] NumberToString operator in TF. Base URL: https://chromium.googlesource.com/v8/v8.git@TurboFan_BuiltinTypingRules
Patch Set: Created 4 years, 4 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/simplified-operator.cc ('k') | src/heap-symbols.h » ('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 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 case IrOpcode::kNumberToInt32: 791 case IrOpcode::kNumberToInt32:
792 // Number -> Signed32 792 // Number -> Signed32
793 CheckValueInputIs(node, 0, Type::Number()); 793 CheckValueInputIs(node, 0, Type::Number());
794 CheckUpperIs(node, Type::Signed32()); 794 CheckUpperIs(node, Type::Signed32());
795 break; 795 break;
796 case IrOpcode::kNumberToUint32: 796 case IrOpcode::kNumberToUint32:
797 // Number -> Unsigned32 797 // Number -> Unsigned32
798 CheckValueInputIs(node, 0, Type::Number()); 798 CheckValueInputIs(node, 0, Type::Number());
799 CheckUpperIs(node, Type::Unsigned32()); 799 CheckUpperIs(node, Type::Unsigned32());
800 break; 800 break;
801 case IrOpcode::kNumberToString:
802 // (Number, [2,36]) -> String
803 CheckValueInputIs(node, 0, Type::Number());
804 CheckValueInputIs(node, 1, Type::Unsigned30());
805 CheckUpperIs(node, Type::String());
806 break;
801 case IrOpcode::kPlainPrimitiveToNumber: 807 case IrOpcode::kPlainPrimitiveToNumber:
802 // PlainPrimitive -> Number 808 // PlainPrimitive -> Number
803 CheckValueInputIs(node, 0, Type::PlainPrimitive()); 809 CheckValueInputIs(node, 0, Type::PlainPrimitive());
804 CheckUpperIs(node, Type::Number()); 810 CheckUpperIs(node, Type::Number());
805 break; 811 break;
806 case IrOpcode::kPlainPrimitiveToWord32: 812 case IrOpcode::kPlainPrimitiveToWord32:
807 // PlainPrimitive -> Integral32 813 // PlainPrimitive -> Integral32
808 CheckValueInputIs(node, 0, Type::PlainPrimitive()); 814 CheckValueInputIs(node, 0, Type::PlainPrimitive());
809 CheckUpperIs(node, Type::Integral32()); 815 CheckUpperIs(node, Type::Integral32());
810 break; 816 break;
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
1576 replacement->op()->EffectOutputCount() > 0); 1582 replacement->op()->EffectOutputCount() > 0);
1577 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1583 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1578 replacement->opcode() == IrOpcode::kFrameState); 1584 replacement->opcode() == IrOpcode::kFrameState);
1579 } 1585 }
1580 1586
1581 #endif // DEBUG 1587 #endif // DEBUG
1582 1588
1583 } // namespace compiler 1589 } // namespace compiler
1584 } // namespace internal 1590 } // namespace internal
1585 } // namespace v8 1591 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator.cc ('k') | src/heap-symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698