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 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 6 #define V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/compiler/common-operator.h" | 9 #include "src/compiler/common-operator.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
560 } | 560 } |
561 Node* StringConstant(const char* string) { | 561 Node* StringConstant(const char* string) { |
562 return HeapConstant(isolate()->factory()->InternalizeUtf8String(string)); | 562 return HeapConstant(isolate()->factory()->InternalizeUtf8String(string)); |
563 } | 563 } |
564 | 564 |
565 // Call a given call descriptor and the given arguments. | 565 // Call a given call descriptor and the given arguments. |
566 Node* CallN(CallDescriptor* desc, Node* function, Node** args); | 566 Node* CallN(CallDescriptor* desc, Node* function, Node** args); |
567 // Call a given call descriptor and the given arguments and frame-state. | 567 // Call a given call descriptor and the given arguments and frame-state. |
568 Node* CallNWithFrameState(CallDescriptor* desc, Node* function, Node** args, | 568 Node* CallNWithFrameState(CallDescriptor* desc, Node* function, Node** args, |
569 Node* frame_state); | 569 Node* frame_state); |
| 570 // Call to a runtime function with zero arguments. |
| 571 Node* CallRuntime0(Runtime::FunctionId function, Node* context); |
570 // Call to a runtime function with one arguments. | 572 // Call to a runtime function with one arguments. |
571 Node* CallRuntime1(Runtime::FunctionId function, Node* arg0, Node* context); | 573 Node* CallRuntime1(Runtime::FunctionId function, Node* arg0, Node* context); |
572 // Call to a runtime function with two arguments. | 574 // Call to a runtime function with two arguments. |
573 Node* CallRuntime2(Runtime::FunctionId function, Node* arg1, Node* arg2, | 575 Node* CallRuntime2(Runtime::FunctionId function, Node* arg1, Node* arg2, |
574 Node* context); | 576 Node* context); |
575 // Call to a runtime function with three arguments. | 577 // Call to a runtime function with three arguments. |
576 Node* CallRuntime3(Runtime::FunctionId function, Node* arg1, Node* arg2, | 578 Node* CallRuntime3(Runtime::FunctionId function, Node* arg1, Node* arg2, |
577 Node* arg3, Node* context); | 579 Node* arg3, Node* context); |
578 // Call to a runtime function with four arguments. | 580 // Call to a runtime function with four arguments. |
579 Node* CallRuntime4(Runtime::FunctionId function, Node* arg1, Node* arg2, | 581 Node* CallRuntime4(Runtime::FunctionId function, Node* arg1, Node* arg2, |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
693 bool bound_; | 695 bool bound_; |
694 friend class RawMachineAssembler; | 696 friend class RawMachineAssembler; |
695 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 697 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
696 }; | 698 }; |
697 | 699 |
698 } // namespace compiler | 700 } // namespace compiler |
699 } // namespace internal | 701 } // namespace internal |
700 } // namespace v8 | 702 } // namespace v8 |
701 | 703 |
702 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 704 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
OLD | NEW |