| 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/compilation-dependencies.h" | 6 #include "src/compilation-dependencies.h" |
| 7 #include "src/compiler/access-builder.h" | 7 #include "src/compiler/access-builder.h" |
| 8 #include "src/compiler/js-graph.h" | 8 #include "src/compiler/js-graph.h" |
| 9 #include "src/compiler/js-typed-lowering.h" | 9 #include "src/compiler/js-typed-lowering.h" |
| 10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
| (...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1489 NodeProperties::ChangeOp( | 1489 NodeProperties::ChangeOp( |
| 1490 node, common()->Call(Linkage::GetStubCallDescriptor( | 1490 node, common()->Call(Linkage::GetStubCallDescriptor( |
| 1491 isolate(), graph()->zone(), callable.descriptor(), 1 + arity, | 1491 isolate(), graph()->zone(), callable.descriptor(), 1 + arity, |
| 1492 flags))); | 1492 flags))); |
| 1493 return Changed(node); | 1493 return Changed(node); |
| 1494 } | 1494 } |
| 1495 | 1495 |
| 1496 // Maybe we did at least learn something about the {receiver}. | 1496 // Maybe we did at least learn something about the {receiver}. |
| 1497 if (p.convert_mode() != convert_mode) { | 1497 if (p.convert_mode() != convert_mode) { |
| 1498 NodeProperties::ChangeOp( | 1498 NodeProperties::ChangeOp( |
| 1499 node, | 1499 node, javascript()->CallFunction(p.arity(), p.feedback(), convert_mode, |
| 1500 javascript()->CallFunction(p.arity(), p.language_mode(), p.feedback(), | 1500 p.tail_call_mode())); |
| 1501 convert_mode, p.tail_call_mode())); | |
| 1502 return Changed(node); | 1501 return Changed(node); |
| 1503 } | 1502 } |
| 1504 | 1503 |
| 1505 return NoChange(); | 1504 return NoChange(); |
| 1506 } | 1505 } |
| 1507 | 1506 |
| 1508 | 1507 |
| 1509 Reduction JSTypedLowering::ReduceJSForInDone(Node* node) { | 1508 Reduction JSTypedLowering::ReduceJSForInDone(Node* node) { |
| 1510 DCHECK_EQ(IrOpcode::kJSForInDone, node->opcode()); | 1509 DCHECK_EQ(IrOpcode::kJSForInDone, node->opcode()); |
| 1511 node->TrimInputCount(2); | 1510 node->TrimInputCount(2); |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1760 } | 1759 } |
| 1761 | 1760 |
| 1762 | 1761 |
| 1763 CompilationDependencies* JSTypedLowering::dependencies() const { | 1762 CompilationDependencies* JSTypedLowering::dependencies() const { |
| 1764 return dependencies_; | 1763 return dependencies_; |
| 1765 } | 1764 } |
| 1766 | 1765 |
| 1767 } // namespace compiler | 1766 } // namespace compiler |
| 1768 } // namespace internal | 1767 } // namespace internal |
| 1769 } // namespace v8 | 1768 } // namespace v8 |
| OLD | NEW |