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

Side by Side Diff: test/cctest/compiler/test-js-typed-lowering.cc

Issue 686213002: Inline trivial OperatorProperties methods. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
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/v8.h" 5 #include "src/v8.h"
6 #include "test/cctest/cctest.h" 6 #include "test/cctest/cctest.h"
7 7
8 #include "src/compiler/graph-inl.h" 8 #include "src/compiler/graph-inl.h"
9 #include "src/compiler/js-typed-lowering.h" 9 #include "src/compiler/js-typed-lowering.h"
10 #include "src/compiler/node-properties-inl.h" 10 #include "src/compiler/node-properties-inl.h"
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 R.CheckEffectInput(n1, effect_use); 860 R.CheckEffectInput(n1, effect_use);
861 } 861 }
862 862
863 Node* CheckConvertedInput(IrOpcode::Value opcode, int which, bool effects) { 863 Node* CheckConvertedInput(IrOpcode::Value opcode, int which, bool effects) {
864 return CheckConverted(opcode, result->InputAt(which), effects); 864 return CheckConverted(opcode, result->InputAt(which), effects);
865 } 865 }
866 866
867 Node* CheckConverted(IrOpcode::Value opcode, Node* node, bool effects) { 867 Node* CheckConverted(IrOpcode::Value opcode, Node* node, bool effects) {
868 CHECK_EQ(opcode, node->opcode()); 868 CHECK_EQ(opcode, node->opcode());
869 if (effects) { 869 if (effects) {
870 CHECK_LT(0, OperatorProperties::GetEffectInputCount(node->op())); 870 CHECK_LT(0, node->op()->EffectInputCount());
871 } else { 871 } else {
872 CHECK_EQ(0, OperatorProperties::GetEffectInputCount(node->op())); 872 CHECK_EQ(0, node->op()->EffectInputCount());
873 } 873 }
874 return node; 874 return node;
875 } 875 }
876 876
877 Node* CheckNoOp(int which) { 877 Node* CheckNoOp(int which) {
878 CHECK_EQ(which == 0 ? p0 : p1, result->InputAt(which)); 878 CHECK_EQ(which == 0 ? p0 : p1, result->InputAt(which));
879 return result->InputAt(which); 879 return result->InputAt(which);
880 } 880 }
881 }; 881 };
882 882
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 CHECK_EQ(p1, r->InputAt(0)); 1339 CHECK_EQ(p1, r->InputAt(0));
1340 CHECK_EQ(p0, r->InputAt(1)); 1340 CHECK_EQ(p0, r->InputAt(1));
1341 } else { 1341 } else {
1342 CHECK_EQ(p0, r->InputAt(0)); 1342 CHECK_EQ(p0, r->InputAt(0));
1343 CHECK_EQ(p1, r->InputAt(1)); 1343 CHECK_EQ(p1, r->InputAt(1));
1344 } 1344 }
1345 } 1345 }
1346 } 1346 }
1347 } 1347 }
1348 } 1348 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-control-reducer.cc ('k') | test/unittests/compiler/common-operator-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698