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

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

Issue 2609013002: [turbofan] Use InternalizedString feedback abstract/strict equality comparisons. (Closed)
Patch Set: Created 3 years, 11 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/globals.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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 CheckValueInputIs(node, 1, Type::Unsigned31()); 1080 CheckValueInputIs(node, 1, Type::Unsigned31());
1081 CheckTypeIs(node, Type::Unsigned31()); 1081 CheckTypeIs(node, Type::Unsigned31());
1082 break; 1082 break;
1083 case IrOpcode::kCheckHeapObject: 1083 case IrOpcode::kCheckHeapObject:
1084 CheckValueInputIs(node, 0, Type::Any()); 1084 CheckValueInputIs(node, 0, Type::Any());
1085 break; 1085 break;
1086 case IrOpcode::kCheckIf: 1086 case IrOpcode::kCheckIf:
1087 CheckValueInputIs(node, 0, Type::Boolean()); 1087 CheckValueInputIs(node, 0, Type::Boolean());
1088 CheckNotTyped(node); 1088 CheckNotTyped(node);
1089 break; 1089 break;
1090 case IrOpcode::kCheckInternalizedString:
1091 CheckValueInputIs(node, 0, Type::Any());
1092 CheckTypeIs(node, Type::InternalizedString());
1093 break;
1090 case IrOpcode::kCheckMaps: 1094 case IrOpcode::kCheckMaps:
1091 // (Any, Internal, ..., Internal) -> Any 1095 // (Any, Internal, ..., Internal) -> Any
1092 CheckValueInputIs(node, 0, Type::Any()); 1096 CheckValueInputIs(node, 0, Type::Any());
1093 for (int i = 1; i < node->op()->ValueInputCount(); ++i) { 1097 for (int i = 1; i < node->op()->ValueInputCount(); ++i) {
1094 CheckValueInputIs(node, i, Type::Internal()); 1098 CheckValueInputIs(node, i, Type::Internal());
1095 } 1099 }
1096 CheckNotTyped(node); 1100 CheckNotTyped(node);
1097 break; 1101 break;
1098 case IrOpcode::kCheckNumber: 1102 case IrOpcode::kCheckNumber:
1099 CheckValueInputIs(node, 0, Type::Any()); 1103 CheckValueInputIs(node, 0, Type::Any());
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 replacement->op()->EffectOutputCount() > 0); 1680 replacement->op()->EffectOutputCount() > 0);
1677 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1681 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1678 replacement->opcode() == IrOpcode::kFrameState); 1682 replacement->opcode() == IrOpcode::kFrameState);
1679 } 1683 }
1680 1684
1681 #endif // DEBUG 1685 #endif // DEBUG
1682 1686
1683 } // namespace compiler 1687 } // namespace compiler
1684 } // namespace internal 1688 } // namespace internal
1685 } // namespace v8 1689 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698