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

Side by Side Diff: test/unittests/compiler/js-operator-unittest.cc

Issue 1893543004: [turbofan] JSTypeOf, JSStrictEqual, JSStrictNotEqual and JSToBoolean are pure. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Really disable all broken tests. 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 | « test/mjsunit/mjsunit.status ('k') | test/unittests/compiler/js-typed-lowering-unittest.cc » ('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/js-operator.h" 5 #include "src/compiler/js-operator.h"
6 #include "src/compiler/opcodes.h" 6 #include "src/compiler/opcodes.h"
7 #include "src/compiler/operator.h" 7 #include "src/compiler/operator.h"
8 #include "src/compiler/operator-properties.h" 8 #include "src/compiler/operator-properties.h"
9 #include "test/unittests/test-utils.h" 9 #include "test/unittests/test-utils.h"
10 10
(...skipping 24 matching lines...) Expand all
35 effect_input_count, control_input_count, value_output_count, \ 35 effect_input_count, control_input_count, value_output_count, \
36 effect_output_count, control_output_count) \ 36 effect_output_count, control_output_count) \
37 { \ 37 { \
38 &JSOperatorBuilder::Name, IrOpcode::kJS##Name, properties, \ 38 &JSOperatorBuilder::Name, IrOpcode::kJS##Name, properties, \
39 value_input_count, frame_state_input_count, effect_input_count, \ 39 value_input_count, frame_state_input_count, effect_input_count, \
40 control_input_count, value_output_count, effect_output_count, \ 40 control_input_count, value_output_count, effect_output_count, \
41 control_output_count \ 41 control_output_count \
42 } 42 }
43 SHARED(Equal, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 43 SHARED(Equal, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2),
44 SHARED(NotEqual, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 44 SHARED(NotEqual, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2),
45 SHARED(StrictEqual, Operator::kNoThrow, 2, 0, 1, 1, 1, 1, 0), 45 SHARED(StrictEqual, Operator::kPure, 2, 0, 0, 0, 1, 0, 0),
46 SHARED(StrictNotEqual, Operator::kNoThrow, 2, 0, 1, 1, 1, 1, 0), 46 SHARED(StrictNotEqual, Operator::kPure, 2, 0, 0, 0, 1, 0, 0),
47 SHARED(LessThan, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), 47 SHARED(LessThan, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
48 SHARED(GreaterThan, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), 48 SHARED(GreaterThan, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
49 SHARED(LessThanOrEqual, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), 49 SHARED(LessThanOrEqual, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
50 SHARED(GreaterThanOrEqual, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2), 50 SHARED(GreaterThanOrEqual, Operator::kNoProperties, 2, 2, 1, 1, 1, 1, 2),
51 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), 51 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2),
52 SHARED(ToString, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), 52 SHARED(ToString, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2),
53 SHARED(ToName, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), 53 SHARED(ToName, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2),
54 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), 54 SHARED(ToObject, Operator::kFoldable, 1, 1, 1, 1, 1, 1, 2),
55 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), 55 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2),
56 SHARED(Create, Operator::kEliminatable, 2, 1, 1, 0, 1, 1, 0), 56 SHARED(Create, Operator::kEliminatable, 2, 1, 1, 0, 1, 1, 0),
57 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 57 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2),
58 SHARED(TypeOf, Operator::kEliminatable, 1, 0, 1, 0, 1, 1, 0), 58 SHARED(TypeOf, Operator::kPure, 1, 0, 0, 0, 1, 0, 0),
59 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), 59 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2),
60 SHARED(CreateWithContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), 60 SHARED(CreateWithContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2),
61 SHARED(CreateModuleContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), 61 SHARED(CreateModuleContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2),
62 #undef SHARED 62 #undef SHARED
63 }; 63 };
64 64
65 65
66 std::ostream& operator<<(std::ostream& os, const SharedOperator& sop) { 66 std::ostream& operator<<(std::ostream& os, const SharedOperator& sop) {
67 return os << IrOpcode::Mnemonic(sop.opcode); 67 return os << IrOpcode::Mnemonic(sop.opcode);
68 } 68 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 EXPECT_EQ(sop.properties, op->properties()); 121 EXPECT_EQ(sop.properties, op->properties());
122 } 122 }
123 123
124 124
125 INSTANTIATE_TEST_CASE_P(JSOperatorTest, JSSharedOperatorTest, 125 INSTANTIATE_TEST_CASE_P(JSOperatorTest, JSSharedOperatorTest,
126 ::testing::ValuesIn(kSharedOperators)); 126 ::testing::ValuesIn(kSharedOperators));
127 127
128 } // namespace compiler 128 } // namespace compiler
129 } // namespace internal 129 } // namespace internal
130 } // namespace v8 130 } // namespace v8
OLDNEW
« no previous file with comments | « test/mjsunit/mjsunit.status ('k') | test/unittests/compiler/js-typed-lowering-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698