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

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

Issue 2814013003: [turbofan] Properly represent the float64 hole. (Closed)
Patch Set: Make sure the_hole has the correct hole NaN bit pattern on Win32. Created 3 years, 8 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 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1194 case IrOpcode::kCheckedFloat64ToInt32: 1194 case IrOpcode::kCheckedFloat64ToInt32:
1195 case IrOpcode::kCheckedTaggedSignedToInt32: 1195 case IrOpcode::kCheckedTaggedSignedToInt32:
1196 case IrOpcode::kCheckedTaggedToInt32: 1196 case IrOpcode::kCheckedTaggedToInt32:
1197 case IrOpcode::kCheckedTaggedToFloat64: 1197 case IrOpcode::kCheckedTaggedToFloat64:
1198 case IrOpcode::kCheckedTaggedToTaggedSigned: 1198 case IrOpcode::kCheckedTaggedToTaggedSigned:
1199 case IrOpcode::kCheckedTaggedToTaggedPointer: 1199 case IrOpcode::kCheckedTaggedToTaggedPointer:
1200 case IrOpcode::kCheckedTruncateTaggedToWord32: 1200 case IrOpcode::kCheckedTruncateTaggedToWord32:
1201 break; 1201 break;
1202 1202
1203 case IrOpcode::kCheckFloat64Hole: 1203 case IrOpcode::kCheckFloat64Hole:
1204 CheckValueInputIs(node, 0, Type::Number()); 1204 CheckValueInputIs(node, 0, Type::NumberOrHole());
1205 CheckTypeIs(node, Type::Number()); 1205 CheckTypeIs(node, Type::NumberOrUndefined());
1206 break; 1206 break;
1207 case IrOpcode::kCheckTaggedHole: 1207 case IrOpcode::kCheckTaggedHole:
1208 CheckValueInputIs(node, 0, Type::Any()); 1208 CheckValueInputIs(node, 0, Type::Any());
1209 CheckTypeIs(node, Type::NonInternal()); 1209 CheckTypeIs(node, Type::NonInternal());
1210 break; 1210 break;
1211 case IrOpcode::kConvertTaggedHoleToUndefined: 1211 case IrOpcode::kConvertTaggedHoleToUndefined:
1212 CheckValueInputIs(node, 0, Type::Any()); 1212 CheckValueInputIs(node, 0, Type::Any());
1213 CheckTypeIs(node, Type::NonInternal()); 1213 CheckTypeIs(node, Type::NonInternal());
1214 break; 1214 break;
1215 1215
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1760 replacement->op()->EffectOutputCount() > 0); 1760 replacement->op()->EffectOutputCount() > 0);
1761 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1761 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1762 replacement->opcode() == IrOpcode::kFrameState); 1762 replacement->opcode() == IrOpcode::kFrameState);
1763 } 1763 }
1764 1764
1765 #endif // DEBUG 1765 #endif // DEBUG
1766 1766
1767 } // namespace compiler 1767 } // namespace compiler
1768 } // namespace internal 1768 } // namespace internal
1769 } // namespace v8 1769 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698