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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 260 |
261 | 261 |
262 void JSGenericLowering::LowerJSToString(Node* node) { | 262 void JSGenericLowering::LowerJSToString(Node* node) { |
263 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); | 263 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
264 Callable callable = CodeFactory::ToString(isolate()); | 264 Callable callable = CodeFactory::ToString(isolate()); |
265 ReplaceWithStubCall(node, callable, flags); | 265 ReplaceWithStubCall(node, callable, flags); |
266 } | 266 } |
267 | 267 |
268 | 268 |
269 void JSGenericLowering::LowerJSToName(Node* node) { | 269 void JSGenericLowering::LowerJSToName(Node* node) { |
270 ReplaceWithRuntimeCall(node, Runtime::kToName); | 270 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
| 271 Callable callable = CodeFactory::ToName(isolate()); |
| 272 ReplaceWithStubCall(node, callable, flags); |
271 } | 273 } |
272 | 274 |
273 | 275 |
274 void JSGenericLowering::LowerJSToObject(Node* node) { | 276 void JSGenericLowering::LowerJSToObject(Node* node) { |
275 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); | 277 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
276 Callable callable = CodeFactory::ToObject(isolate()); | 278 Callable callable = CodeFactory::ToObject(isolate()); |
277 ReplaceWithStubCall(node, callable, flags); | 279 ReplaceWithStubCall(node, callable, flags); |
278 } | 280 } |
279 | 281 |
280 | 282 |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 } | 873 } |
872 | 874 |
873 | 875 |
874 MachineOperatorBuilder* JSGenericLowering::machine() const { | 876 MachineOperatorBuilder* JSGenericLowering::machine() const { |
875 return jsgraph()->machine(); | 877 return jsgraph()->machine(); |
876 } | 878 } |
877 | 879 |
878 } // namespace compiler | 880 } // namespace compiler |
879 } // namespace internal | 881 } // namespace internal |
880 } // namespace v8 | 882 } // namespace v8 |
OLD | NEW |