| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/js-intrinsic-lowering.h" | 5 #include "src/compiler/js-intrinsic-lowering.h" |
| 6 | 6 |
| 7 #include <stack> | 7 #include <stack> |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/compiler/access-builder.h" | 10 #include "src/compiler/access-builder.h" |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 | 492 |
| 493 | 493 |
| 494 Reduction JSIntrinsicLowering::ReduceToString(Node* node) { | 494 Reduction JSIntrinsicLowering::ReduceToString(Node* node) { |
| 495 NodeProperties::ChangeOp(node, javascript()->ToString()); | 495 NodeProperties::ChangeOp(node, javascript()->ToString()); |
| 496 return Changed(node); | 496 return Changed(node); |
| 497 } | 497 } |
| 498 | 498 |
| 499 | 499 |
| 500 Reduction JSIntrinsicLowering::ReduceCall(Node* node) { | 500 Reduction JSIntrinsicLowering::ReduceCall(Node* node) { |
| 501 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); | 501 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); |
| 502 NodeProperties::ChangeOp( | 502 NodeProperties::ChangeOp(node, |
| 503 node, javascript()->CallFunction(arity, STRICT, VectorSlotPair(), | 503 javascript()->CallFunction(arity, VectorSlotPair(), |
| 504 ConvertReceiverMode::kAny, | 504 ConvertReceiverMode::kAny, |
| 505 TailCallMode::kDisallow)); | 505 TailCallMode::kDisallow)); |
| 506 return Changed(node); | 506 return Changed(node); |
| 507 } | 507 } |
| 508 | 508 |
| 509 | 509 |
| 510 Reduction JSIntrinsicLowering::ReduceTailCall(Node* node) { | 510 Reduction JSIntrinsicLowering::ReduceTailCall(Node* node) { |
| 511 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); | 511 size_t const arity = CallRuntimeParametersOf(node->op()).arity(); |
| 512 NodeProperties::ChangeOp( | 512 NodeProperties::ChangeOp(node, |
| 513 node, javascript()->CallFunction(arity, STRICT, VectorSlotPair(), | 513 javascript()->CallFunction(arity, VectorSlotPair(), |
| 514 ConvertReceiverMode::kAny, | 514 ConvertReceiverMode::kAny, |
| 515 TailCallMode::kAllow)); | 515 TailCallMode::kAllow)); |
| 516 return Changed(node); | 516 return Changed(node); |
| 517 } | 517 } |
| 518 | 518 |
| 519 | 519 |
| 520 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) { | 520 Reduction JSIntrinsicLowering::ReduceGetSuperConstructor(Node* node) { |
| 521 Node* active_function = NodeProperties::GetValueInput(node, 0); | 521 Node* active_function = NodeProperties::GetValueInput(node, 0); |
| 522 Node* effect = NodeProperties::GetEffectInput(node); | 522 Node* effect = NodeProperties::GetEffectInput(node); |
| 523 Node* control = NodeProperties::GetControlInput(node); | 523 Node* control = NodeProperties::GetControlInput(node); |
| 524 Node* active_function_map = effect = | 524 Node* active_function_map = effect = |
| 525 graph()->NewNode(simplified()->LoadField(AccessBuilder::ForMap()), | 525 graph()->NewNode(simplified()->LoadField(AccessBuilder::ForMap()), |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 603 } | 603 } |
| 604 | 604 |
| 605 | 605 |
| 606 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { | 606 SimplifiedOperatorBuilder* JSIntrinsicLowering::simplified() const { |
| 607 return jsgraph()->simplified(); | 607 return jsgraph()->simplified(); |
| 608 } | 608 } |
| 609 | 609 |
| 610 } // namespace compiler | 610 } // namespace compiler |
| 611 } // namespace internal | 611 } // namespace internal |
| 612 } // namespace v8 | 612 } // namespace v8 |
| OLD | NEW |