Lines Matching refs:Node
7 #include "src/compiler/node-properties.h"
32 // Add an extra input for the JSFunction parameter to the start node.
45 Node* RawMachineAssembler::NullConstant() {
49 Node* RawMachineAssembler::UndefinedConstant() {
53 Node* RawMachineAssembler::RelocatableIntPtrConstant(intptr_t value,
80 Node* RawMachineAssembler::TargetParameter() {
85 Node* RawMachineAssembler::Parameter(size_t index) {
98 void RawMachineAssembler::Branch(Node* condition, RawMachineLabel* true_val,
101 Node* branch = MakeNode(
108 void RawMachineAssembler::Continuations(Node* call, RawMachineLabel* if_success,
116 void RawMachineAssembler::Switch(Node* index, RawMachineLabel* default_label,
122 Node* switch_node = AddNode(common()->Switch(succ_count), index);
127 Node* case_node =
134 Node* default_node = graph()->NewNode(common()->IfDefault(), switch_node);
142 void RawMachineAssembler::Return(Node* value) {
143 Node* values[] = {Int32Constant(0), value};
144 Node* ret = MakeNode(common()->Return(1), 2, values);
149 void RawMachineAssembler::Return(Node* v1, Node* v2) {
150 Node* values[] = {Int32Constant(0), v1, v2};
151 Node* ret = MakeNode(common()->Return(2), 3, values);
156 void RawMachineAssembler::Return(Node* v1, Node* v2, Node* v3) {
157 Node* values[] = {Int32Constant(0), v1, v2, v3};
158 Node* ret = MakeNode(common()->Return(3), 4, values);
163 void RawMachineAssembler::Return(Node* v1, Node* v2, Node* v3, Node* v4) {
164 Node* values[] = {Int32Constant(0), v1, v2, v3, v4};
165 Node* ret = MakeNode(common()->Return(4), 5, values);
170 void RawMachineAssembler::Return(int count, Node* vs[]) {
171 typedef Node* Node_ptr;
172 Node** values = new Node_ptr[count + 1];
175 Node* ret = MakeNode(common()->Return(count), count + 1, values);
181 void RawMachineAssembler::PopAndReturn(Node* pop, Node* value) {
182 Node* values[] = {pop, value};
183 Node* ret = MakeNode(common()->Return(1), 2, values);
188 void RawMachineAssembler::PopAndReturn(Node* pop, Node* v1, Node* v2) {
189 Node* values[] = {pop, v1, v2};
190 Node* ret = MakeNode(common()->Return(2), 3, values);
195 void RawMachineAssembler::PopAndReturn(Node* pop, Node* v1, Node* v2,
196 Node* v3) {
197 Node* values[] = {pop, v1, v2, v3};
198 Node* ret = MakeNode(common()->Return(3), 4, values);
203 void RawMachineAssembler::PopAndReturn(Node* pop, Node* v1, Node* v2, Node* v3,
204 Node* v4) {
205 Node* values[] = {pop, v1, v2, v3, v4};
206 Node* ret = MakeNode(common()->Return(4), 5, values);
211 void RawMachineAssembler::DebugAbort(Node* message) {
218 Node* ret = MakeNode(common()->Throw(), 0, nullptr);
227 Node* RawMachineAssembler::CallN(CallDescriptor* call_descriptor,
228 int input_count, Node* const* inputs) {
235 Node* RawMachineAssembler::CallNWithFrameState(CallDescriptor* call_descriptor,
237 Node* const* inputs) {
244 Node* RawMachineAssembler::TailCallN(CallDescriptor* call_descriptor,
245 int input_count, Node* const* inputs) {
248 Node* tail_call =
255 Node* RawMachineAssembler::CallCFunction0(MachineType return_type,
256 Node* function) {
266 Node* RawMachineAssembler::CallCFunction1(MachineType return_type,
267 MachineType arg0_type, Node* function,
268 Node* arg0) {
278 Node* RawMachineAssembler::CallCFunction1WithCallerSavedRegisters(
279 MachineType return_type, MachineType arg0_type, Node* function, Node* arg0,
293 Node* RawMachineAssembler::CallCFunction2(MachineType return_type,
295 MachineType arg1_type, Node* function,
296 Node* arg0, Node* arg1) {
307 Node* RawMachineAssembler::CallCFunction3(MachineType return_type,
310 MachineType arg2_type, Node* function,
311 Node* arg0, Node* arg1, Node* arg2) {
323 Node* RawMachineAssembler::CallCFunction3WithCallerSavedRegisters(
325 MachineType arg2_type, Node* function, Node* arg0, Node* arg1, Node* arg2,
341 Node* RawMachineAssembler::CallCFunction4(
343 MachineType arg2_type, MachineType arg3_type, Node* function, Node* arg0,
344 Node* arg1, Node* arg2, Node* arg3) {
358 Node* RawMachineAssembler::CallCFunction5(
361 Node* function, Node* arg0, Node* arg1, Node* arg2, Node* arg3,
362 Node* arg4) {
377 Node* RawMachineAssembler::CallCFunction6(
380 MachineType arg5_type, Node* function, Node* arg0, Node* arg1, Node* arg2,
381 Node* arg3, Node* arg4, Node* arg5) {
397 Node* RawMachineAssembler::CallCFunction8(
401 Node* function, Node* arg0, Node* arg1, Node* arg2, Node* arg3, Node* arg4,
402 Node* arg5, Node* arg6, Node* arg7) {
413 Node* args[] = {function, arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7};
419 Node* RawMachineAssembler::CallCFunction9(
423 MachineType arg8_type, Node* function, Node* arg0, Node* arg1, Node* arg2,
424 Node* arg3, Node* arg4, Node* arg5, Node* arg6, Node* arg7, Node* arg8) {
436 Node* args[] = {function, arg0, arg1, arg2, arg3,
494 Node* RawMachineAssembler::Phi(MachineRepresentation rep, int input_count,
495 Node* const* inputs) {
496 Node** buffer = new (zone()->New(sizeof(Node*) * (input_count + 1)))
497 Node*[input_count + 1];
503 void RawMachineAssembler::AppendPhiInput(Node* phi, Node* new_input) {
510 Node* RawMachineAssembler::AddNode(const Operator* op, int input_count,
511 Node* const* inputs) {
514 Node* node = MakeNode(op, input_count, inputs);
515 schedule()->AddNode(CurrentBlock(), node);
516 return node;
519 Node* RawMachineAssembler::MakeNode(const Operator* op, int input_count,
520 Node* const* inputs) {