OLD | NEW |
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 SHARED(ToBoolean, Operator::kPure, 1, 0, 0, 0, 1, 0, 0), | 70 SHARED(ToBoolean, Operator::kPure, 1, 0, 0, 0, 1, 0, 0), |
71 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), | 71 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), |
72 SHARED(ToString, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), | 72 SHARED(ToString, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), |
73 SHARED(ToName, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), | 73 SHARED(ToName, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), |
74 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), | 74 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1, 2), |
75 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), | 75 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), |
76 SHARED(Create, Operator::kEliminatable, 0, 0, 1, 0, 1, 1, 0), | 76 SHARED(Create, Operator::kEliminatable, 0, 0, 1, 0, 1, 1, 0), |
77 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), | 77 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), |
78 SHARED(TypeOf, Operator::kPure, 1, 0, 0, 0, 1, 0, 0), | 78 SHARED(TypeOf, Operator::kPure, 1, 0, 0, 0, 1, 0, 0), |
79 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), | 79 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), |
80 SHARED(Debugger, Operator::kNoProperties, 0, 0, 1, 1, 0, 1, 2), | |
81 SHARED(CreateFunctionContext, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), | 80 SHARED(CreateFunctionContext, Operator::kNoProperties, 1, 0, 1, 1, 1, 1, 2), |
82 SHARED(CreateWithContext, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), | 81 SHARED(CreateWithContext, Operator::kNoProperties, 2, 1, 1, 1, 1, 1, 2), |
83 SHARED(CreateBlockContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), | 82 SHARED(CreateBlockContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), |
84 SHARED(CreateModuleContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), | 83 SHARED(CreateModuleContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2), |
85 SHARED(CreateScriptContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2) | 84 SHARED(CreateScriptContext, Operator::kNoProperties, 2, 0, 1, 1, 1, 1, 2) |
86 #undef SHARED | 85 #undef SHARED |
87 }; | 86 }; |
88 | 87 |
89 } // namespace | 88 } // namespace |
90 | 89 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 EXPECT_EQ(Operator::kNoProperties, op->properties()); | 209 EXPECT_EQ(Operator::kNoProperties, op->properties()); |
211 } | 210 } |
212 | 211 |
213 | 212 |
214 INSTANTIATE_TEST_CASE_P(JSOperatorTest, JSStorePropertyOperatorTest, | 213 INSTANTIATE_TEST_CASE_P(JSOperatorTest, JSStorePropertyOperatorTest, |
215 ::testing::Values(SLOPPY, STRICT)); | 214 ::testing::Values(SLOPPY, STRICT)); |
216 | 215 |
217 } // namespace compiler | 216 } // namespace compiler |
218 } // namespace internal | 217 } // namespace internal |
219 } // namespace v8 | 218 } // namespace v8 |
OLD | NEW |