| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 SHARED(ShiftLeft, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), | 59 SHARED(ShiftLeft, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
| 60 SHARED(ShiftRight, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), | 60 SHARED(ShiftRight, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
| 61 SHARED(ShiftRightLogical, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), | 61 SHARED(ShiftRightLogical, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
| 62 SHARED(Add, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), | 62 SHARED(Add, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
| 63 SHARED(Subtract, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), | 63 SHARED(Subtract, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
| 64 SHARED(Multiply, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), | 64 SHARED(Multiply, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
| 65 SHARED(Divide, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), | 65 SHARED(Divide, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
| 66 SHARED(Modulus, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), | 66 SHARED(Modulus, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
| 67 SHARED(UnaryNot, Operator::kPure, 1, 0, 0, 0, 1, 0), | 67 SHARED(UnaryNot, Operator::kPure, 1, 0, 0, 0, 1, 0), |
| 68 SHARED(ToBoolean, Operator::kPure, 1, 0, 0, 0, 1, 0), | 68 SHARED(ToBoolean, Operator::kPure, 1, 0, 0, 0, 1, 0), |
| 69 SHARED(ToNumber, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), | 69 SHARED(ToNumber, Operator::kNoProperties, 1, 1, 1, 1, 1, 1), |
| 70 SHARED(ToString, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), | 70 SHARED(ToString, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), |
| 71 SHARED(ToName, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), | 71 SHARED(ToName, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), |
| 72 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1), | 72 SHARED(ToObject, Operator::kNoProperties, 1, 1, 1, 1, 1, 1), |
| 73 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), | 73 SHARED(Yield, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), |
| 74 SHARED(Create, Operator::kEliminatable, 0, 0, 1, 1, 1, 1), | 74 SHARED(Create, Operator::kEliminatable, 0, 0, 1, 1, 1, 1), |
| 75 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), | 75 SHARED(HasProperty, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
| 76 SHARED(TypeOf, Operator::kPure, 1, 0, 0, 0, 1, 0), | 76 SHARED(TypeOf, Operator::kPure, 1, 0, 0, 0, 1, 0), |
| 77 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), | 77 SHARED(InstanceOf, Operator::kNoProperties, 2, 1, 1, 1, 1, 1), |
| 78 SHARED(Debugger, Operator::kNoProperties, 0, 0, 1, 1, 0, 1), | 78 SHARED(Debugger, Operator::kNoProperties, 0, 0, 1, 1, 0, 1), |
| 79 SHARED(CreateFunctionContext, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), | 79 SHARED(CreateFunctionContext, Operator::kNoProperties, 1, 0, 1, 1, 1, 1), |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 EXPECT_EQ(Operator::kNoProperties, op->properties()); | 208 EXPECT_EQ(Operator::kNoProperties, op->properties()); |
| 209 } | 209 } |
| 210 | 210 |
| 211 | 211 |
| 212 INSTANTIATE_TEST_CASE_P(JSOperatorTest, JSStorePropertyOperatorTest, | 212 INSTANTIATE_TEST_CASE_P(JSOperatorTest, JSStorePropertyOperatorTest, |
| 213 ::testing::Values(SLOPPY, STRICT)); | 213 ::testing::Values(SLOPPY, STRICT)); |
| 214 | 214 |
| 215 } // namespace compiler | 215 } // namespace compiler |
| 216 } // namespace internal | 216 } // namespace internal |
| 217 } // namespace v8 | 217 } // namespace v8 |
| OLD | NEW |