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

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

Issue 2365223003: Revert of [compiler] Properly guard the speculative optimizations for instanceof. (Closed)
Patch Set: Created 4 years, 2 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/crankshaft/hydrogen.cc » ('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 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1020 CheckValueInputIs(node, 0, Type::Any()); 1020 CheckValueInputIs(node, 0, Type::Any());
1021 CheckTypeIs(node, Type::Number()); 1021 CheckTypeIs(node, Type::Number());
1022 break; 1022 break;
1023 case IrOpcode::kCheckSmi: 1023 case IrOpcode::kCheckSmi:
1024 CheckValueInputIs(node, 0, Type::Any()); 1024 CheckValueInputIs(node, 0, Type::Any());
1025 break; 1025 break;
1026 case IrOpcode::kCheckString: 1026 case IrOpcode::kCheckString:
1027 CheckValueInputIs(node, 0, Type::Any()); 1027 CheckValueInputIs(node, 0, Type::Any());
1028 CheckTypeIs(node, Type::String()); 1028 CheckTypeIs(node, Type::String());
1029 break; 1029 break;
1030 case IrOpcode::kCheckHasInPrototypeChain:
1031 CheckValueInputIs(node, 0, Type::Any());
1032 CheckValueInputIs(node, 1, Type::NonInternal());
1033 CheckTypeIs(node, Type::Boolean());
1034 break;
1035 1030
1036 case IrOpcode::kCheckedInt32Add: 1031 case IrOpcode::kCheckedInt32Add:
1037 case IrOpcode::kCheckedInt32Sub: 1032 case IrOpcode::kCheckedInt32Sub:
1038 case IrOpcode::kCheckedInt32Div: 1033 case IrOpcode::kCheckedInt32Div:
1039 case IrOpcode::kCheckedInt32Mod: 1034 case IrOpcode::kCheckedInt32Mod:
1040 case IrOpcode::kCheckedUint32Div: 1035 case IrOpcode::kCheckedUint32Div:
1041 case IrOpcode::kCheckedUint32Mod: 1036 case IrOpcode::kCheckedUint32Mod:
1042 case IrOpcode::kCheckedInt32Mul: 1037 case IrOpcode::kCheckedInt32Mul:
1043 case IrOpcode::kCheckedInt32ToTaggedSigned: 1038 case IrOpcode::kCheckedInt32ToTaggedSigned:
1044 case IrOpcode::kCheckedUint32ToInt32: 1039 case IrOpcode::kCheckedUint32ToInt32:
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
1598 replacement->op()->EffectOutputCount() > 0); 1593 replacement->op()->EffectOutputCount() > 0);
1599 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1594 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1600 replacement->opcode() == IrOpcode::kFrameState); 1595 replacement->opcode() == IrOpcode::kFrameState);
1601 } 1596 }
1602 1597
1603 #endif // DEBUG 1598 #endif // DEBUG
1604 1599
1605 } // namespace compiler 1600 } // namespace compiler
1606 } // namespace internal 1601 } // namespace internal
1607 } // namespace v8 1602 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698