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/compiler/access-builder.h" | 5 #include "src/compiler/access-builder.h" |
6 #include "src/compiler/graph-inl.h" | 6 #include "src/compiler/graph-inl.h" |
| 7 #include "src/compiler/js-builtin-reducer.h" |
7 #include "src/compiler/js-typed-lowering.h" | 8 #include "src/compiler/js-typed-lowering.h" |
8 #include "src/compiler/node-aux-data-inl.h" | 9 #include "src/compiler/node-aux-data-inl.h" |
9 #include "src/compiler/node-properties-inl.h" | 10 #include "src/compiler/node-properties-inl.h" |
10 #include "src/types.h" | 11 #include "src/types.h" |
11 | 12 |
12 namespace v8 { | 13 namespace v8 { |
13 namespace internal { | 14 namespace internal { |
14 namespace compiler { | 15 namespace compiler { |
15 | 16 |
16 // TODO(turbofan): js-typed-lowering improvements possible | 17 // TODO(turbofan): js-typed-lowering improvements possible |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 case IrOpcode::kJSToNumber: | 672 case IrOpcode::kJSToNumber: |
672 return ReplaceWithReduction(node, | 673 return ReplaceWithReduction(node, |
673 ReduceJSToNumberInput(node->InputAt(0))); | 674 ReduceJSToNumberInput(node->InputAt(0))); |
674 case IrOpcode::kJSToString: | 675 case IrOpcode::kJSToString: |
675 return ReplaceWithReduction(node, | 676 return ReplaceWithReduction(node, |
676 ReduceJSToStringInput(node->InputAt(0))); | 677 ReduceJSToStringInput(node->InputAt(0))); |
677 case IrOpcode::kJSLoadProperty: | 678 case IrOpcode::kJSLoadProperty: |
678 return ReduceJSLoadProperty(node); | 679 return ReduceJSLoadProperty(node); |
679 case IrOpcode::kJSStoreProperty: | 680 case IrOpcode::kJSStoreProperty: |
680 return ReduceJSStoreProperty(node); | 681 return ReduceJSStoreProperty(node); |
| 682 case IrOpcode::kJSCallFunction: |
| 683 return JSBuiltinReducer(jsgraph()).Reduce(node); |
681 default: | 684 default: |
682 break; | 685 break; |
683 } | 686 } |
684 return NoChange(); | 687 return NoChange(); |
685 } | 688 } |
686 | 689 |
687 } // namespace compiler | 690 } // namespace compiler |
688 } // namespace internal | 691 } // namespace internal |
689 } // namespace v8 | 692 } // namespace v8 |
OLD | NEW |