| 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/compilation-dependencies.h" | 5 #include "src/compilation-dependencies.h" |
| 6 #include "src/compiler/js-graph.h" | 6 #include "src/compiler/js-graph.h" |
| 7 #include "src/compiler/js-typed-lowering.h" | 7 #include "src/compiler/js-typed-lowering.h" |
| 8 #include "src/compiler/machine-operator.h" | 8 #include "src/compiler/machine-operator.h" |
| 9 #include "src/compiler/node-properties.h" | 9 #include "src/compiler/node-properties.h" |
| 10 #include "src/compiler/opcodes.h" | 10 #include "src/compiler/opcodes.h" |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 case 1: | 707 case 1: |
| 708 CHECK_EQ(1, OperatorProperties::GetFrameStateInputCount( | 708 CHECK_EQ(1, OperatorProperties::GetFrameStateInputCount( |
| 709 R.javascript.ToNumber())); | 709 R.javascript.ToNumber())); |
| 710 effect_use = R.graph.NewNode(R.javascript.ToNumber(), ton, R.context(), | 710 effect_use = R.graph.NewNode(R.javascript.ToNumber(), ton, R.context(), |
| 711 frame_state, ton, R.start()); | 711 frame_state, ton, R.start()); |
| 712 break; | 712 break; |
| 713 case 2: | 713 case 2: |
| 714 effect_use = R.graph.NewNode(R.common.EffectPhi(1), ton, R.start()); | 714 effect_use = R.graph.NewNode(R.common.EffectPhi(1), ton, R.start()); |
| 715 case 3: | 715 case 3: |
| 716 effect_use = R.graph.NewNode(R.javascript.Add(R.binop_hints), ton, ton, | 716 effect_use = R.graph.NewNode(R.javascript.Add(R.binop_hints), ton, ton, |
| 717 R.context(), frame_state, frame_state, ton, | 717 R.context(), frame_state, ton, R.start()); |
| 718 R.start()); | |
| 719 break; | 718 break; |
| 720 case 4: | 719 case 4: |
| 721 effect_use = R.graph.NewNode(R.javascript.Add(R.binop_hints), p0, p0, | 720 effect_use = R.graph.NewNode(R.javascript.Add(R.binop_hints), p0, p0, |
| 722 R.context(), frame_state, frame_state, ton, | 721 R.context(), frame_state, ton, R.start()); |
| 723 R.start()); | |
| 724 break; | 722 break; |
| 725 case 5: | 723 case 5: |
| 726 effect_use = R.graph.NewNode(R.common.Return(), p0, ton, R.start()); | 724 effect_use = R.graph.NewNode(R.common.Return(), p0, ton, R.start()); |
| 727 break; | 725 break; |
| 728 case 6: | 726 case 6: |
| 729 effect_use = R.graph.NewNode(R.common.Return(), ton, ton, R.start()); | 727 effect_use = R.graph.NewNode(R.common.Return(), ton, ton, R.start()); |
| 730 } | 728 } |
| 731 | 729 |
| 732 R.CheckEffectInput(R.start(), ton); | 730 R.CheckEffectInput(R.start(), ton); |
| 733 if (effect_use != NULL) R.CheckEffectInput(ton, effect_use); | 731 if (effect_use != NULL) R.CheckEffectInput(ton, effect_use); |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1234 CHECK_EQ(p1, r->InputAt(1)); | 1232 CHECK_EQ(p1, r->InputAt(1)); |
| 1235 } | 1233 } |
| 1236 } | 1234 } |
| 1237 } | 1235 } |
| 1238 } | 1236 } |
| 1239 } | 1237 } |
| 1240 | 1238 |
| 1241 } // namespace compiler | 1239 } // namespace compiler |
| 1242 } // namespace internal | 1240 } // namespace internal |
| 1243 } // namespace v8 | 1241 } // namespace v8 |
| OLD | NEW |