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-stubs.h" | 5 #include "src/code-stubs.h" |
6 #include "src/compiler/common-operator.h" | 6 #include "src/compiler/common-operator.h" |
7 #include "src/compiler/graph-inl.h" | 7 #include "src/compiler/graph-inl.h" |
8 #include "src/compiler/js-generic-lowering.h" | 8 #include "src/compiler/js-generic-lowering.h" |
9 #include "src/compiler/machine-operator.h" | 9 #include "src/compiler/machine-operator.h" |
10 #include "src/compiler/node-aux-data-inl.h" | 10 #include "src/compiler/node-aux-data-inl.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 | 114 |
115 JSGenericLowering::JSGenericLowering(CompilationInfo* info, JSGraph* jsgraph, | 115 JSGenericLowering::JSGenericLowering(CompilationInfo* info, JSGraph* jsgraph, |
116 MachineOperatorBuilder* machine) | 116 MachineOperatorBuilder* machine) |
117 : info_(info), | 117 : info_(info), |
118 jsgraph_(jsgraph), | 118 jsgraph_(jsgraph), |
119 linkage_(new (jsgraph->zone()) Linkage(info)), | 119 linkage_(new (jsgraph->zone()) Linkage(info)), |
120 machine_(machine) {} | 120 machine_(machine) {} |
121 | 121 |
122 | 122 |
123 void JSGenericLowering::PatchOperator(Node* node, Operator* op) { | 123 void JSGenericLowering::PatchOperator(Node* node, const Operator* op) { |
124 node->set_op(op); | 124 node->set_op(op); |
125 } | 125 } |
126 | 126 |
127 | 127 |
128 void JSGenericLowering::PatchInsertInput(Node* node, int index, Node* input) { | 128 void JSGenericLowering::PatchInsertInput(Node* node, int index, Node* input) { |
129 node->InsertInput(zone(), index, input); | 129 node->InsertInput(zone(), index, input); |
130 } | 130 } |
131 | 131 |
132 | 132 |
133 Node* JSGenericLowering::SmiConstant(int32_t immediate) { | 133 Node* JSGenericLowering::SmiConstant(int32_t immediate) { |
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 Node* JSGenericLowering::LowerJSCallRuntime(Node* node) { | 528 Node* JSGenericLowering::LowerJSCallRuntime(Node* node) { |
529 Runtime::FunctionId function = OpParameter<Runtime::FunctionId>(node); | 529 Runtime::FunctionId function = OpParameter<Runtime::FunctionId>(node); |
530 int arity = OperatorProperties::GetValueInputCount(node->op()); | 530 int arity = OperatorProperties::GetValueInputCount(node->op()); |
531 ReplaceWithRuntimeCall(node, function, arity); | 531 ReplaceWithRuntimeCall(node, function, arity); |
532 return node; | 532 return node; |
533 } | 533 } |
534 | 534 |
535 } // namespace compiler | 535 } // namespace compiler |
536 } // namespace internal | 536 } // namespace internal |
537 } // namespace v8 | 537 } // namespace v8 |
OLD | NEW |