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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 void JSGenericLowering::LowerJSTypeOf(Node* node) { | 132 void JSGenericLowering::LowerJSTypeOf(Node* node) { |
133 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); | 133 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
134 Callable callable = CodeFactory::Typeof(isolate()); | 134 Callable callable = CodeFactory::Typeof(isolate()); |
135 ReplaceWithStubCall(node, callable, flags); | 135 ReplaceWithStubCall(node, callable, flags); |
136 } | 136 } |
137 | 137 |
138 | 138 |
139 void JSGenericLowering::LowerJSToBoolean(Node* node) { | 139 void JSGenericLowering::LowerJSToBoolean(Node* node) { |
140 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); | 140 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
141 Callable callable = CodeFactory::ToBoolean(isolate()); | 141 Callable callable = CodeFactory::ToBoolean(isolate()); |
142 ReplaceWithStubCall(node, callable, | 142 ReplaceWithStubCall(node, callable, flags); |
143 CallDescriptor::kPatchableCallSite | flags); | |
144 } | 143 } |
145 | 144 |
146 | 145 |
147 void JSGenericLowering::LowerJSToNumber(Node* node) { | 146 void JSGenericLowering::LowerJSToNumber(Node* node) { |
148 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); | 147 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
149 Callable callable = CodeFactory::ToNumber(isolate()); | 148 Callable callable = CodeFactory::ToNumber(isolate()); |
150 ReplaceWithStubCall(node, callable, flags); | 149 ReplaceWithStubCall(node, callable, flags); |
151 } | 150 } |
152 | 151 |
153 | 152 |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 } | 768 } |
770 | 769 |
771 | 770 |
772 MachineOperatorBuilder* JSGenericLowering::machine() const { | 771 MachineOperatorBuilder* JSGenericLowering::machine() const { |
773 return jsgraph()->machine(); | 772 return jsgraph()->machine(); |
774 } | 773 } |
775 | 774 |
776 } // namespace compiler | 775 } // namespace compiler |
777 } // namespace internal | 776 } // namespace internal |
778 } // namespace v8 | 777 } // namespace v8 |
OLD | NEW |