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/ast-graph-builder.h" | 5 #include "src/compiler/ast-graph-builder.h" |
6 | 6 |
7 #include "src/compiler.h" | 7 #include "src/compiler.h" |
8 #include "src/compiler/control-builders.h" | 8 #include "src/compiler/control-builders.h" |
9 #include "src/compiler/machine-operator.h" | 9 #include "src/compiler/machine-operator.h" |
10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
(...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1710 ast_context()->ReplaceValue(); | 1710 ast_context()->ReplaceValue(); |
1711 } | 1711 } |
1712 | 1712 |
1713 | 1713 |
1714 StrictMode AstGraphBuilder::strict_mode() const { | 1714 StrictMode AstGraphBuilder::strict_mode() const { |
1715 return info()->strict_mode(); | 1715 return info()->strict_mode(); |
1716 } | 1716 } |
1717 | 1717 |
1718 | 1718 |
1719 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( | 1719 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( |
1720 FeedbackVectorSlot slot) const { | 1720 FeedbackVectorICSlot slot) const { |
1721 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); | 1721 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); |
1722 } | 1722 } |
1723 | 1723 |
1724 | 1724 |
1725 Node* AstGraphBuilder::ProcessArguments(const Operator* op, int arity) { | 1725 Node* AstGraphBuilder::ProcessArguments(const Operator* op, int arity) { |
1726 DCHECK(environment()->stack_height() >= arity); | 1726 DCHECK(environment()->stack_height() >= arity); |
1727 Node** all = info()->zone()->NewArray<Node*>(arity); | 1727 Node** all = info()->zone()->NewArray<Node*>(arity); |
1728 for (int i = arity - 1; i >= 0; --i) { | 1728 for (int i = arity - 1; i >= 0; --i) { |
1729 all[i] = environment()->Pop(); | 1729 all[i] = environment()->Pop(); |
1730 } | 1730 } |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2116 DCHECK(NodeProperties::GetFrameStateInput(node)->opcode() == | 2116 DCHECK(NodeProperties::GetFrameStateInput(node)->opcode() == |
2117 IrOpcode::kDead); | 2117 IrOpcode::kDead); |
2118 NodeProperties::ReplaceFrameStateInput( | 2118 NodeProperties::ReplaceFrameStateInput( |
2119 node, environment()->Checkpoint(ast_id, combine)); | 2119 node, environment()->Checkpoint(ast_id, combine)); |
2120 } | 2120 } |
2121 } | 2121 } |
2122 | 2122 |
2123 } | 2123 } |
2124 } | 2124 } |
2125 } // namespace v8::internal::compiler | 2125 } // namespace v8::internal::compiler |
OLD | NEW |