| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 | 289 |
| 290 | 290 |
| 291 void JSGenericLowering::LowerJSToNumber(Node* node) { | 291 void JSGenericLowering::LowerJSToNumber(Node* node) { |
| 292 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); | 292 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
| 293 Callable callable = CodeFactory::ToNumber(isolate()); | 293 Callable callable = CodeFactory::ToNumber(isolate()); |
| 294 ReplaceWithStubCall(node, callable, flags); | 294 ReplaceWithStubCall(node, callable, flags); |
| 295 } | 295 } |
| 296 | 296 |
| 297 | 297 |
| 298 void JSGenericLowering::LowerJSToString(Node* node) { | 298 void JSGenericLowering::LowerJSToString(Node* node) { |
| 299 ReplaceWithBuiltinCall(node, Context::TO_STRING_BUILTIN_INDEX, 1); | 299 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
| 300 Callable callable = CodeFactory::ToString(isolate()); |
| 301 ReplaceWithStubCall(node, callable, flags); |
| 300 } | 302 } |
| 301 | 303 |
| 302 | 304 |
| 303 void JSGenericLowering::LowerJSToName(Node* node) { | 305 void JSGenericLowering::LowerJSToName(Node* node) { |
| 304 ReplaceWithRuntimeCall(node, Runtime::kToName); | 306 ReplaceWithRuntimeCall(node, Runtime::kToName); |
| 305 } | 307 } |
| 306 | 308 |
| 307 | 309 |
| 308 void JSGenericLowering::LowerJSToObject(Node* node) { | 310 void JSGenericLowering::LowerJSToObject(Node* node) { |
| 309 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); | 311 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
| (...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 845 } | 847 } |
| 846 | 848 |
| 847 | 849 |
| 848 MachineOperatorBuilder* JSGenericLowering::machine() const { | 850 MachineOperatorBuilder* JSGenericLowering::machine() const { |
| 849 return jsgraph()->machine(); | 851 return jsgraph()->machine(); |
| 850 } | 852 } |
| 851 | 853 |
| 852 } // namespace compiler | 854 } // namespace compiler |
| 853 } // namespace internal | 855 } // namespace internal |
| 854 } // namespace v8 | 856 } // namespace v8 |
| OLD | NEW |