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

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

Issue 2697063002: Fix typeof optimization for undetectable (Closed)
Patch Set: Add TypeOfIsFunction to EscapeStatusAnalysis 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
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 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 break; 948 break;
949 949
950 case IrOpcode::kObjectIsCallable: 950 case IrOpcode::kObjectIsCallable:
951 case IrOpcode::kObjectIsNonCallable: 951 case IrOpcode::kObjectIsNonCallable:
952 case IrOpcode::kObjectIsNumber: 952 case IrOpcode::kObjectIsNumber:
953 case IrOpcode::kObjectIsReceiver: 953 case IrOpcode::kObjectIsReceiver:
954 case IrOpcode::kObjectIsSmi: 954 case IrOpcode::kObjectIsSmi:
955 case IrOpcode::kObjectIsString: 955 case IrOpcode::kObjectIsString:
956 case IrOpcode::kObjectIsUndetectable: 956 case IrOpcode::kObjectIsUndetectable:
957 case IrOpcode::kArrayBufferWasNeutered: 957 case IrOpcode::kArrayBufferWasNeutered:
958 case IrOpcode::kTypeOfIsFunction:
958 CheckValueInputIs(node, 0, Type::Any()); 959 CheckValueInputIs(node, 0, Type::Any());
959 CheckTypeIs(node, Type::Boolean()); 960 CheckTypeIs(node, Type::Boolean());
960 break; 961 break;
961 case IrOpcode::kNewRestParameterElements: 962 case IrOpcode::kNewRestParameterElements:
962 case IrOpcode::kNewUnmappedArgumentsElements: 963 case IrOpcode::kNewUnmappedArgumentsElements:
963 CheckTypeIs(node, Type::OtherInternal()); 964 CheckTypeIs(node, Type::OtherInternal());
964 break; 965 break;
965 case IrOpcode::kAllocate: 966 case IrOpcode::kAllocate:
966 CheckValueInputIs(node, 0, Type::PlainNumber()); 967 CheckValueInputIs(node, 0, Type::PlainNumber());
967 break; 968 break;
(...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after
1707 replacement->op()->EffectOutputCount() > 0); 1708 replacement->op()->EffectOutputCount() > 0);
1708 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1709 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1709 replacement->opcode() == IrOpcode::kFrameState); 1710 replacement->opcode() == IrOpcode::kFrameState);
1710 } 1711 }
1711 1712
1712 #endif // DEBUG 1713 #endif // DEBUG
1713 1714
1714 } // namespace compiler 1715 } // namespace compiler
1715 } // namespace internal 1716 } // namespace internal
1716 } // namespace v8 1717 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698