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

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

Issue 1722193002: [compiler] Drop the CompareNilIC. (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
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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 break; 707 break;
708 case IrOpcode::kReferenceEqual: { 708 case IrOpcode::kReferenceEqual: {
709 // (Unique, Any) -> Boolean and 709 // (Unique, Any) -> Boolean and
710 // (Any, Unique) -> Boolean 710 // (Any, Unique) -> Boolean
711 CheckUpperIs(node, Type::Boolean()); 711 CheckUpperIs(node, Type::Boolean());
712 break; 712 break;
713 } 713 }
714 case IrOpcode::kObjectIsNumber: 714 case IrOpcode::kObjectIsNumber:
715 case IrOpcode::kObjectIsReceiver: 715 case IrOpcode::kObjectIsReceiver:
716 case IrOpcode::kObjectIsSmi: 716 case IrOpcode::kObjectIsSmi:
717 case IrOpcode::kObjectIsUndetectable:
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: {
726 // Signed32 /\ Tagged -> Signed32 /\ UntaggedInt32 727 // Signed32 /\ Tagged -> Signed32 /\ UntaggedInt32
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1273 replacement->op()->EffectOutputCount() > 0); 1274 replacement->op()->EffectOutputCount() > 0);
1274 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || 1275 DCHECK(!NodeProperties::IsFrameStateEdge(edge) ||
1275 replacement->opcode() == IrOpcode::kFrameState); 1276 replacement->opcode() == IrOpcode::kFrameState);
1276 } 1277 }
1277 1278
1278 #endif // DEBUG 1279 #endif // DEBUG
1279 1280
1280 } // namespace compiler 1281 } // namespace compiler
1281 } // namespace internal 1282 } // namespace internal
1282 } // namespace v8 1283 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/crankshaft/hydrogen.h » ('j') | src/crankshaft/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698