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

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

Issue 1295433002: [runtime] Remove useless IN builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE again. Remove unused ReplaceWithBuiltinCall. Created 5 years, 3 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/contexts.h » ('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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 case IrOpcode::kReferenceEqual: { 677 case IrOpcode::kReferenceEqual: {
678 // (Unique, Any) -> Boolean and 678 // (Unique, Any) -> Boolean and
679 // (Any, Unique) -> Boolean 679 // (Any, Unique) -> Boolean
680 CheckUpperIs(node, Type::Boolean()); 680 CheckUpperIs(node, Type::Boolean());
681 break; 681 break;
682 } 682 }
683 case IrOpcode::kObjectIsSmi: 683 case IrOpcode::kObjectIsSmi:
684 CheckValueInputIs(node, 0, Type::Any()); 684 CheckValueInputIs(node, 0, Type::Any());
685 CheckUpperIs(node, Type::Boolean()); 685 CheckUpperIs(node, Type::Boolean());
686 break; 686 break;
687 case IrOpcode::kObjectIsNonNegativeSmi:
688 CheckValueInputIs(node, 0, Type::Any());
689 CheckUpperIs(node, Type::Boolean());
690 break;
691 case IrOpcode::kAllocate: 687 case IrOpcode::kAllocate:
692 CheckValueInputIs(node, 0, Type::PlainNumber()); 688 CheckValueInputIs(node, 0, Type::PlainNumber());
693 CheckUpperIs(node, Type::TaggedPointer()); 689 CheckUpperIs(node, Type::TaggedPointer());
694 break; 690 break;
695 691
696 case IrOpcode::kChangeTaggedToInt32: { 692 case IrOpcode::kChangeTaggedToInt32: {
697 // Signed32 /\ Tagged -> Signed32 /\ UntaggedInt32 693 // Signed32 /\ Tagged -> Signed32 /\ UntaggedInt32
698 // TODO(neis): Activate once ChangeRepresentation works in typer. 694 // TODO(neis): Activate once ChangeRepresentation works in typer.
699 // Type* from = Type::Intersect(Type::Signed32(), Type::Tagged()); 695 // Type* from = Type::Intersect(Type::Signed32(), Type::Tagged());
700 // Type* to = Type::Intersect(Type::Signed32(), Type::UntaggedInt32()); 696 // Type* to = Type::Intersect(Type::Signed32(), Type::UntaggedInt32());
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 // Check inputs for all nodes in the block. 1145 // Check inputs for all nodes in the block.
1150 for (size_t i = 0; i < block->NodeCount(); i++) { 1146 for (size_t i = 0; i < block->NodeCount(); i++) {
1151 Node* node = block->NodeAt(i); 1147 Node* node = block->NodeAt(i);
1152 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); 1148 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1);
1153 } 1149 }
1154 } 1150 }
1155 } 1151 }
1156 } // namespace compiler 1152 } // namespace compiler
1157 } // namespace internal 1153 } // namespace internal
1158 } // namespace v8 1154 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/contexts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698