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

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

Issue 2697063002: Fix typeof optimization for undetectable (Closed)
Patch Set: Rename + format fix Created 3 years, 10 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/types.h ('k') | test/mjsunit/regress/regress-5972.js » ('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 934 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 CheckValueInputIs(node, 2, Type::SignedSmall()); 945 CheckValueInputIs(node, 2, Type::SignedSmall());
946 CheckTypeIs(node, Type::SignedSmall()); 946 CheckTypeIs(node, Type::SignedSmall());
947 break; 947 break;
948 948
949 case IrOpcode::kReferenceEqual: 949 case IrOpcode::kReferenceEqual:
950 // (Unique, Any) -> Boolean and 950 // (Unique, Any) -> Boolean and
951 // (Any, Unique) -> Boolean 951 // (Any, Unique) -> Boolean
952 CheckTypeIs(node, Type::Boolean()); 952 CheckTypeIs(node, Type::Boolean());
953 break; 953 break;
954 954
955 case IrOpcode::kObjectIsCallable: 955 case IrOpcode::kObjectIsDetectableCallable:
956 case IrOpcode::kObjectIsNonCallable: 956 case IrOpcode::kObjectIsNonCallable:
957 case IrOpcode::kObjectIsNumber: 957 case IrOpcode::kObjectIsNumber:
958 case IrOpcode::kObjectIsReceiver: 958 case IrOpcode::kObjectIsReceiver:
959 case IrOpcode::kObjectIsSmi: 959 case IrOpcode::kObjectIsSmi:
960 case IrOpcode::kObjectIsString: 960 case IrOpcode::kObjectIsString:
961 case IrOpcode::kObjectIsUndetectable: 961 case IrOpcode::kObjectIsUndetectable:
962 case IrOpcode::kArrayBufferWasNeutered: 962 case IrOpcode::kArrayBufferWasNeutered:
963 CheckValueInputIs(node, 0, Type::Any()); 963 CheckValueInputIs(node, 0, Type::Any());
964 CheckTypeIs(node, Type::Boolean()); 964 CheckTypeIs(node, Type::Boolean());
965 break; 965 break;
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
1712 replacement->op()->EffectOutputCount() > 0); 1712 replacement->op()->EffectOutputCount() > 0);
1713 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1713 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1714 replacement->opcode() == IrOpcode::kFrameState); 1714 replacement->opcode() == IrOpcode::kFrameState);
1715 } 1715 }
1716 1716
1717 #endif // DEBUG 1717 #endif // DEBUG
1718 1718
1719 } // namespace compiler 1719 } // namespace compiler
1720 } // namespace internal 1720 } // namespace internal
1721 } // namespace v8 1721 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/types.h ('k') | test/mjsunit/regress/regress-5972.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698