OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/simplified-operator.h" | 5 #include "src/compiler/simplified-operator.h" |
6 | 6 |
7 #include "src/base/lazy-instance.h" | 7 #include "src/base/lazy-instance.h" |
8 #include "src/compiler/opcodes.h" | 8 #include "src/compiler/opcodes.h" |
9 #include "src/compiler/operator.h" | 9 #include "src/compiler/operator.h" |
10 #include "src/types.h" | 10 #include "src/types.h" |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 #define CHECKED_OP_LIST(V) \ | 314 #define CHECKED_OP_LIST(V) \ |
315 V(CheckBounds, 2, 1) \ | 315 V(CheckBounds, 2, 1) \ |
316 V(CheckIf, 1, 0) \ | 316 V(CheckIf, 1, 0) \ |
317 V(CheckNumber, 1, 1) \ | 317 V(CheckNumber, 1, 1) \ |
318 V(CheckTaggedPointer, 1, 1) \ | 318 V(CheckTaggedPointer, 1, 1) \ |
319 V(CheckTaggedSigned, 1, 1) \ | 319 V(CheckTaggedSigned, 1, 1) \ |
320 V(CheckedInt32Add, 2, 1) \ | 320 V(CheckedInt32Add, 2, 1) \ |
321 V(CheckedInt32Sub, 2, 1) \ | 321 V(CheckedInt32Sub, 2, 1) \ |
322 V(CheckedInt32Div, 2, 1) \ | 322 V(CheckedInt32Div, 2, 1) \ |
323 V(CheckedInt32Mod, 2, 1) \ | 323 V(CheckedInt32Mod, 2, 1) \ |
| 324 V(CheckedUint32Div, 2, 1) \ |
| 325 V(CheckedUint32Mod, 2, 1) \ |
324 V(CheckedUint32ToInt32, 1, 1) \ | 326 V(CheckedUint32ToInt32, 1, 1) \ |
325 V(CheckedFloat64ToInt32, 1, 1) \ | 327 V(CheckedFloat64ToInt32, 1, 1) \ |
326 V(CheckedTaggedToInt32, 1, 1) \ | 328 V(CheckedTaggedToInt32, 1, 1) \ |
327 V(CheckedTaggedToFloat64, 1, 1) | 329 V(CheckedTaggedToFloat64, 1, 1) |
328 | 330 |
329 struct SimplifiedOperatorGlobalCache final { | 331 struct SimplifiedOperatorGlobalCache final { |
330 #define PURE(Name, properties, input_count) \ | 332 #define PURE(Name, properties, input_count) \ |
331 struct Name##Operator final : public Operator { \ | 333 struct Name##Operator final : public Operator { \ |
332 Name##Operator() \ | 334 Name##Operator() \ |
333 : Operator(IrOpcode::k##Name, Operator::kPure | properties, #Name, \ | 335 : Operator(IrOpcode::k##Name, Operator::kPure | properties, #Name, \ |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 Operator::kNoDeopt | Operator::kNoThrow | properties, \ | 544 Operator::kNoDeopt | Operator::kNoThrow | properties, \ |
543 #Name, value_input_count, 1, control_input_count, \ | 545 #Name, value_input_count, 1, control_input_count, \ |
544 output_count, 1, 0, access); \ | 546 output_count, 1, 0, access); \ |
545 } | 547 } |
546 ACCESS_OP_LIST(ACCESS) | 548 ACCESS_OP_LIST(ACCESS) |
547 #undef ACCESS | 549 #undef ACCESS |
548 | 550 |
549 } // namespace compiler | 551 } // namespace compiler |
550 } // namespace internal | 552 } // namespace internal |
551 } // namespace v8 | 553 } // namespace v8 |
OLD | NEW |