| 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/code-factory.h" | 5 #include "src/code-factory.h" |
| 6 #include "src/code-stubs.h" | 6 #include "src/code-stubs.h" |
| 7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
| 8 #include "src/compiler/js-generic-lowering.h" | 8 #include "src/compiler/js-generic-lowering.h" |
| 9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
| 10 #include "src/compiler/machine-operator.h" | 10 #include "src/compiler/machine-operator.h" |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 672 ExternalReference message_address = | 672 ExternalReference message_address = |
| 673 ExternalReference::address_of_pending_message_obj(isolate()); | 673 ExternalReference::address_of_pending_message_obj(isolate()); |
| 674 node->RemoveInput(NodeProperties::FirstContextIndex(node)); | 674 node->RemoveInput(NodeProperties::FirstContextIndex(node)); |
| 675 node->InsertInput(zone(), 0, jsgraph()->ExternalConstant(message_address)); | 675 node->InsertInput(zone(), 0, jsgraph()->ExternalConstant(message_address)); |
| 676 node->InsertInput(zone(), 1, jsgraph()->IntPtrConstant(0)); | 676 node->InsertInput(zone(), 1, jsgraph()->IntPtrConstant(0)); |
| 677 StoreRepresentation representation(MachineRepresentation::kTagged, | 677 StoreRepresentation representation(MachineRepresentation::kTagged, |
| 678 kNoWriteBarrier); | 678 kNoWriteBarrier); |
| 679 NodeProperties::ChangeOp(node, machine()->Store(representation)); | 679 NodeProperties::ChangeOp(node, machine()->Store(representation)); |
| 680 } | 680 } |
| 681 | 681 |
| 682 void JSGenericLowering::LowerJSGeneratorStore(Node* node) { |
| 683 UNREACHABLE(); // Eliminated in typed lowering. |
| 684 } |
| 685 |
| 686 void JSGenericLowering::LowerJSGeneratorRestoreContinuation(Node* node) { |
| 687 UNREACHABLE(); // Eliminated in typed lowering. |
| 688 } |
| 689 |
| 690 void JSGenericLowering::LowerJSGeneratorRestoreRegister(Node* node) { |
| 691 UNREACHABLE(); // Eliminated in typed lowering. |
| 692 } |
| 682 | 693 |
| 683 void JSGenericLowering::LowerJSStackCheck(Node* node) { | 694 void JSGenericLowering::LowerJSStackCheck(Node* node) { |
| 684 Node* effect = NodeProperties::GetEffectInput(node); | 695 Node* effect = NodeProperties::GetEffectInput(node); |
| 685 Node* control = NodeProperties::GetControlInput(node); | 696 Node* control = NodeProperties::GetControlInput(node); |
| 686 | 697 |
| 687 Node* limit = graph()->NewNode( | 698 Node* limit = graph()->NewNode( |
| 688 machine()->Load(MachineType::Pointer()), | 699 machine()->Load(MachineType::Pointer()), |
| 689 jsgraph()->ExternalConstant( | 700 jsgraph()->ExternalConstant( |
| 690 ExternalReference::address_of_stack_limit(isolate())), | 701 ExternalReference::address_of_stack_limit(isolate())), |
| 691 jsgraph()->IntPtrConstant(0), effect, control); | 702 jsgraph()->IntPtrConstant(0), effect, control); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 737 } | 748 } |
| 738 | 749 |
| 739 | 750 |
| 740 MachineOperatorBuilder* JSGenericLowering::machine() const { | 751 MachineOperatorBuilder* JSGenericLowering::machine() const { |
| 741 return jsgraph()->machine(); | 752 return jsgraph()->machine(); |
| 742 } | 753 } |
| 743 | 754 |
| 744 } // namespace compiler | 755 } // namespace compiler |
| 745 } // namespace internal | 756 } // namespace internal |
| 746 } // namespace v8 | 757 } // namespace v8 |
| OLD | NEW |