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

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

Issue 1657863004: [turbofan] Introduce proper ObjectIsReceiver operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/typer.cc ('k') | test/mjsunit/compiler/double-array-to-global.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 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 CheckValueInputIs(node, 1, Type::String()); 706 CheckValueInputIs(node, 1, Type::String());
707 CheckUpperIs(node, Type::Boolean()); 707 CheckUpperIs(node, Type::Boolean());
708 break; 708 break;
709 case IrOpcode::kReferenceEqual: { 709 case IrOpcode::kReferenceEqual: {
710 // (Unique, Any) -> Boolean and 710 // (Unique, Any) -> Boolean and
711 // (Any, Unique) -> Boolean 711 // (Any, Unique) -> Boolean
712 CheckUpperIs(node, Type::Boolean()); 712 CheckUpperIs(node, Type::Boolean());
713 break; 713 break;
714 } 714 }
715 case IrOpcode::kObjectIsNumber: 715 case IrOpcode::kObjectIsNumber:
716 case IrOpcode::kObjectIsReceiver:
716 case IrOpcode::kObjectIsSmi: 717 case IrOpcode::kObjectIsSmi:
717 CheckValueInputIs(node, 0, Type::Any()); 718 CheckValueInputIs(node, 0, Type::Any());
718 CheckUpperIs(node, Type::Boolean()); 719 CheckUpperIs(node, Type::Boolean());
719 break; 720 break;
720 case IrOpcode::kAllocate: 721 case IrOpcode::kAllocate:
721 CheckValueInputIs(node, 0, Type::PlainNumber()); 722 CheckValueInputIs(node, 0, Type::PlainNumber());
722 CheckUpperIs(node, Type::TaggedPointer()); 723 CheckUpperIs(node, Type::TaggedPointer());
723 break; 724 break;
724 725
725 case IrOpcode::kChangeTaggedToInt32: { 726 case IrOpcode::kChangeTaggedToInt32: {
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
1268 replacement->op()->EffectOutputCount() > 0); 1269 replacement->op()->EffectOutputCount() > 0);
1269 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1270 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1270 replacement->opcode() == IrOpcode::kFrameState); 1271 replacement->opcode() == IrOpcode::kFrameState);
1271 } 1272 }
1272 1273
1273 #endif // DEBUG 1274 #endif // DEBUG
1274 1275
1275 } // namespace compiler 1276 } // namespace compiler
1276 } // namespace internal 1277 } // namespace internal
1277 } // namespace v8 1278 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | test/mjsunit/compiler/double-array-to-global.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698