OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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-native-context-specialization.h" | 5 #include "src/compiler/js-native-context-specialization.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/compilation-dependencies.h" | 8 #include "src/compilation-dependencies.h" |
9 #include "src/compiler/access-builder.h" | 9 #include "src/compiler/access-builder.h" |
10 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 effects.push_back(control); | 671 effects.push_back(control); |
672 effect = graph()->NewNode(common()->EffectPhi(control_count), | 672 effect = graph()->NewNode(common()->EffectPhi(control_count), |
673 control_count + 1, &effects.front()); | 673 control_count + 1, &effects.front()); |
674 } | 674 } |
675 return Replace(node, value, effect, control); | 675 return Replace(node, value, effect, control); |
676 } | 676 } |
677 | 677 |
678 | 678 |
679 Reduction JSNativeContextSpecialization::ReduceJSStoreNamed(Node* node) { | 679 Reduction JSNativeContextSpecialization::ReduceJSStoreNamed(Node* node) { |
680 DCHECK_EQ(IrOpcode::kJSStoreNamed, node->opcode()); | 680 DCHECK_EQ(IrOpcode::kJSStoreNamed, node->opcode()); |
681 StoreNamedParameters const p = StoreNamedParametersOf(node->op()); | 681 NamedAccess const& p = NamedAccessOf(node->op()); |
682 Handle<Name> name = p.name(); | 682 Handle<Name> name = p.name(); |
683 Node* receiver = NodeProperties::GetValueInput(node, 0); | 683 Node* receiver = NodeProperties::GetValueInput(node, 0); |
684 Node* value = NodeProperties::GetValueInput(node, 1); | 684 Node* value = NodeProperties::GetValueInput(node, 1); |
685 Node* frame_state = NodeProperties::GetFrameStateInput(node, 1); | 685 Node* frame_state = NodeProperties::GetFrameStateInput(node, 1); |
686 Node* effect = NodeProperties::GetEffectInput(node); | 686 Node* effect = NodeProperties::GetEffectInput(node); |
687 Node* control = NodeProperties::GetControlInput(node); | 687 Node* control = NodeProperties::GetControlInput(node); |
688 | 688 |
689 // Not much we can do if deoptimization support is disabled. | 689 // Not much we can do if deoptimization support is disabled. |
690 if (!(flags() & kDeoptimizationEnabled)) return NoChange(); | 690 if (!(flags() & kDeoptimizationEnabled)) return NoChange(); |
691 | 691 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 } | 972 } |
973 | 973 |
974 | 974 |
975 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { | 975 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { |
976 return jsgraph()->simplified(); | 976 return jsgraph()->simplified(); |
977 } | 977 } |
978 | 978 |
979 } // namespace compiler | 979 } // namespace compiler |
980 } // namespace internal | 980 } // namespace internal |
981 } // namespace v8 | 981 } // namespace v8 |
OLD | NEW |