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 1694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1705 ast_context()->ReplaceValue(); | 1705 ast_context()->ReplaceValue(); |
1706 } | 1706 } |
1707 | 1707 |
1708 | 1708 |
1709 StrictMode AstGraphBuilder::strict_mode() const { | 1709 StrictMode AstGraphBuilder::strict_mode() const { |
1710 return info()->strict_mode(); | 1710 return info()->strict_mode(); |
1711 } | 1711 } |
1712 | 1712 |
1713 | 1713 |
1714 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( | 1714 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( |
1715 FeedbackVectorSlot slot) const { | 1715 FeedbackVectorICSlot slot) const { |
1716 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); | 1716 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); |
1717 } | 1717 } |
1718 | 1718 |
1719 | 1719 |
1720 Node* AstGraphBuilder::ProcessArguments(const Operator* op, int arity) { | 1720 Node* AstGraphBuilder::ProcessArguments(const Operator* op, int arity) { |
1721 DCHECK(environment()->stack_height() >= arity); | 1721 DCHECK(environment()->stack_height() >= arity); |
1722 Node** all = info()->zone()->NewArray<Node*>(arity); | 1722 Node** all = info()->zone()->NewArray<Node*>(arity); |
1723 for (int i = arity - 1; i >= 0; --i) { | 1723 for (int i = arity - 1; i >= 0; --i) { |
1724 all[i] = environment()->Pop(); | 1724 all[i] = environment()->Pop(); |
1725 } | 1725 } |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2111 DCHECK(NodeProperties::GetFrameStateInput(node)->opcode() == | 2111 DCHECK(NodeProperties::GetFrameStateInput(node)->opcode() == |
2112 IrOpcode::kDead); | 2112 IrOpcode::kDead); |
2113 NodeProperties::ReplaceFrameStateInput( | 2113 NodeProperties::ReplaceFrameStateInput( |
2114 node, environment()->Checkpoint(ast_id, combine)); | 2114 node, environment()->Checkpoint(ast_id, combine)); |
2115 } | 2115 } |
2116 } | 2116 } |
2117 | 2117 |
2118 } | 2118 } |
2119 } | 2119 } |
2120 } // namespace v8::internal::compiler | 2120 } // namespace v8::internal::compiler |
OLD | NEW |