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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 ReplaceWithBuiltinCall(node, Context::TO_STRING_BUILTIN_INDEX, 1); |
300 } | 300 } |
301 | 301 |
302 | 302 |
303 void JSGenericLowering::LowerJSToName(Node* node) { | 303 void JSGenericLowering::LowerJSToName(Node* node) { |
304 ReplaceWithBuiltinCall(node, Context::TO_NAME_BUILTIN_INDEX, 1); | 304 ReplaceWithRuntimeCall(node, Runtime::kToName); |
305 } | 305 } |
306 | 306 |
307 | 307 |
308 void JSGenericLowering::LowerJSToObject(Node* node) { | 308 void JSGenericLowering::LowerJSToObject(Node* node) { |
309 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); | 309 CallDescriptor::Flags flags = AdjustFrameStatesForCall(node); |
310 Callable callable = CodeFactory::ToObject(isolate()); | 310 Callable callable = CodeFactory::ToObject(isolate()); |
311 ReplaceWithStubCall(node, callable, flags); | 311 ReplaceWithStubCall(node, callable, flags); |
312 } | 312 } |
313 | 313 |
314 | 314 |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 } | 845 } |
846 | 846 |
847 | 847 |
848 MachineOperatorBuilder* JSGenericLowering::machine() const { | 848 MachineOperatorBuilder* JSGenericLowering::machine() const { |
849 return jsgraph()->machine(); | 849 return jsgraph()->machine(); |
850 } | 850 } |
851 | 851 |
852 } // namespace compiler | 852 } // namespace compiler |
853 } // namespace internal | 853 } // namespace internal |
854 } // namespace v8 | 854 } // namespace v8 |
OLD | NEW |