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

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

Issue 1898653003: [turbofan] Optimize typeof in abstract/strict equality comparison. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/compiler/typer.cc ('k') | test/mjsunit/regress/regress-674753.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 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 // String -> Number 739 // String -> Number
740 CheckValueInputIs(node, 0, Type::String()); 740 CheckValueInputIs(node, 0, Type::String());
741 CheckUpperIs(node, Type::Number()); 741 CheckUpperIs(node, Type::Number());
742 break; 742 break;
743 case IrOpcode::kReferenceEqual: { 743 case IrOpcode::kReferenceEqual: {
744 // (Unique, Any) -> Boolean and 744 // (Unique, Any) -> Boolean and
745 // (Any, Unique) -> Boolean 745 // (Any, Unique) -> Boolean
746 CheckUpperIs(node, Type::Boolean()); 746 CheckUpperIs(node, Type::Boolean());
747 break; 747 break;
748 } 748 }
749 case IrOpcode::kObjectIsCallable:
749 case IrOpcode::kObjectIsNumber: 750 case IrOpcode::kObjectIsNumber:
750 case IrOpcode::kObjectIsReceiver: 751 case IrOpcode::kObjectIsReceiver:
751 case IrOpcode::kObjectIsSmi: 752 case IrOpcode::kObjectIsSmi:
752 case IrOpcode::kObjectIsString: 753 case IrOpcode::kObjectIsString:
753 case IrOpcode::kObjectIsUndetectable: 754 case IrOpcode::kObjectIsUndetectable:
754 CheckValueInputIs(node, 0, Type::Any()); 755 CheckValueInputIs(node, 0, Type::Any());
755 CheckUpperIs(node, Type::Boolean()); 756 CheckUpperIs(node, Type::Boolean());
756 break; 757 break;
757 case IrOpcode::kAllocate: 758 case IrOpcode::kAllocate:
758 CheckValueInputIs(node, 0, Type::PlainNumber()); 759 CheckValueInputIs(node, 0, Type::PlainNumber());
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 replacement->op()->EffectOutputCount() > 0); 1318 replacement->op()->EffectOutputCount() > 0);
1318 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1319 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1319 replacement->opcode() == IrOpcode::kFrameState); 1320 replacement->opcode() == IrOpcode::kFrameState);
1320 } 1321 }
1321 1322
1322 #endif // DEBUG 1323 #endif // DEBUG
1323 1324
1324 } // namespace compiler 1325 } // namespace compiler
1325 } // namespace internal 1326 } // namespace internal
1326 } // namespace v8 1327 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | test/mjsunit/regress/regress-674753.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698