| 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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 } | 527 } |
| 528 | 528 |
| 529 | 529 |
| 530 void JSGenericLowering::LowerJSCreateArguments(Node* node) { | 530 void JSGenericLowering::LowerJSCreateArguments(Node* node) { |
| 531 CreateArgumentsType const type = CreateArgumentsTypeOf(node->op()); | 531 CreateArgumentsType const type = CreateArgumentsTypeOf(node->op()); |
| 532 switch (type) { | 532 switch (type) { |
| 533 case CreateArgumentsType::kMappedArguments: | 533 case CreateArgumentsType::kMappedArguments: |
| 534 ReplaceWithRuntimeCall(node, Runtime::kNewSloppyArguments_Generic); | 534 ReplaceWithRuntimeCall(node, Runtime::kNewSloppyArguments_Generic); |
| 535 break; | 535 break; |
| 536 case CreateArgumentsType::kUnmappedArguments: | 536 case CreateArgumentsType::kUnmappedArguments: |
| 537 ReplaceWithRuntimeCall(node, Runtime::kNewStrictArguments_Generic); | 537 ReplaceWithRuntimeCall(node, Runtime::kNewStrictArguments); |
| 538 break; | 538 break; |
| 539 case CreateArgumentsType::kRestParameter: | 539 case CreateArgumentsType::kRestParameter: |
| 540 ReplaceWithRuntimeCall(node, Runtime::kNewRestParameter); | 540 ReplaceWithRuntimeCall(node, Runtime::kNewRestParameter); |
| 541 break; | 541 break; |
| 542 } | 542 } |
| 543 } | 543 } |
| 544 | 544 |
| 545 | 545 |
| 546 void JSGenericLowering::LowerJSCreateArray(Node* node) { | 546 void JSGenericLowering::LowerJSCreateArray(Node* node) { |
| 547 CreateArrayParameters const& p = CreateArrayParametersOf(node->op()); | 547 CreateArrayParameters const& p = CreateArrayParametersOf(node->op()); |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 } | 874 } |
| 875 | 875 |
| 876 | 876 |
| 877 MachineOperatorBuilder* JSGenericLowering::machine() const { | 877 MachineOperatorBuilder* JSGenericLowering::machine() const { |
| 878 return jsgraph()->machine(); | 878 return jsgraph()->machine(); |
| 879 } | 879 } |
| 880 | 880 |
| 881 } // namespace compiler | 881 } // namespace compiler |
| 882 } // namespace internal | 882 } // namespace internal |
| 883 } // namespace v8 | 883 } // namespace v8 |
| OLD | NEW |