| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 Operator::kEliminatable); | 127 Operator::kEliminatable); |
| 128 } | 128 } |
| 129 | 129 |
| 130 void JSGenericLowering::LowerJSStrictNotEqual(Node* node) { | 130 void JSGenericLowering::LowerJSStrictNotEqual(Node* node) { |
| 131 Callable callable = CodeFactory::StrictNotEqual(isolate()); | 131 Callable callable = CodeFactory::StrictNotEqual(isolate()); |
| 132 node->AppendInput(zone(), graph()->start()); | 132 node->AppendInput(zone(), graph()->start()); |
| 133 ReplaceWithStubCall(node, callable, CallDescriptor::kNoFlags, | 133 ReplaceWithStubCall(node, callable, CallDescriptor::kNoFlags, |
| 134 Operator::kEliminatable); | 134 Operator::kEliminatable); |
| 135 } | 135 } |
| 136 | 136 |
| 137 void JSGenericLowering::LowerJSSameValueZero(Node* node) { |
| 138 Callable callable = CodeFactory::SameValueZero(isolate()); |
| 139 node->AppendInput(zone(), graph()->start()); |
| 140 ReplaceWithStubCall(node, callable, CallDescriptor::kNoFlags, |
| 141 Operator::kEliminatable); |
| 142 } |
| 143 |
| 137 void JSGenericLowering::LowerJSToBoolean(Node* node) { | 144 void JSGenericLowering::LowerJSToBoolean(Node* node) { |
| 138 Callable callable = CodeFactory::ToBoolean(isolate()); | 145 Callable callable = CodeFactory::ToBoolean(isolate()); |
| 139 node->AppendInput(zone(), graph()->start()); | 146 node->AppendInput(zone(), graph()->start()); |
| 140 ReplaceWithStubCall(node, callable, CallDescriptor::kNoAllocate, | 147 ReplaceWithStubCall(node, callable, CallDescriptor::kNoAllocate, |
| 141 Operator::kEliminatable); | 148 Operator::kEliminatable); |
| 142 } | 149 } |
| 143 | 150 |
| 144 void JSGenericLowering::LowerJSTypeOf(Node* node) { | 151 void JSGenericLowering::LowerJSTypeOf(Node* node) { |
| 145 Callable callable = CodeFactory::Typeof(isolate()); | 152 Callable callable = CodeFactory::Typeof(isolate()); |
| 146 node->AppendInput(zone(), graph()->start()); | 153 node->AppendInput(zone(), graph()->start()); |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 } | 678 } |
| 672 | 679 |
| 673 | 680 |
| 674 MachineOperatorBuilder* JSGenericLowering::machine() const { | 681 MachineOperatorBuilder* JSGenericLowering::machine() const { |
| 675 return jsgraph()->machine(); | 682 return jsgraph()->machine(); |
| 676 } | 683 } |
| 677 | 684 |
| 678 } // namespace compiler | 685 } // namespace compiler |
| 679 } // namespace internal | 686 } // namespace internal |
| 680 } // namespace v8 | 687 } // namespace v8 |
| OLD | NEW |