| 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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 } | 474 } |
| 475 Node* StoreToPointer(void* address, MachineType rep, Node* node) { | 475 Node* StoreToPointer(void* address, MachineType rep, Node* node) { |
| 476 return Store(rep, PointerConstant(address), node); | 476 return Store(rep, PointerConstant(address), node); |
| 477 } | 477 } |
| 478 Node* StringConstant(const char* string) { | 478 Node* StringConstant(const char* string) { |
| 479 return HeapConstant(isolate()->factory()->InternalizeUtf8String(string)); | 479 return HeapConstant(isolate()->factory()->InternalizeUtf8String(string)); |
| 480 } | 480 } |
| 481 | 481 |
| 482 // Call a given call descriptor and the given arguments. | 482 // Call a given call descriptor and the given arguments. |
| 483 Node* CallN(CallDescriptor* desc, Node* function, Node** args); | 483 Node* CallN(CallDescriptor* desc, Node* function, Node** args); |
| 484 | |
| 485 // Call through CallFunctionStub with lazy deopt and frame-state. | 484 // Call through CallFunctionStub with lazy deopt and frame-state. |
| 486 Node* CallFunctionStub0(Node* function, Node* receiver, Node* context, | 485 Node* CallFunctionStub0(Node* function, Node* receiver, Node* context, |
| 487 Node* frame_state, CallFunctionFlags flags); | 486 Node* frame_state, CallFunctionFlags flags); |
| 488 // Call to a JS function with zero arguments. | 487 // Call to a JS function. |
| 489 Node* CallJS0(Node* function, Node* receiver, Node* context, | 488 Node* CallJS(Node* function, Node* receiver, Node* context, Node** args, |
| 490 Node* frame_state); | 489 int arg_count); |
| 490 // Call to a JS function with zero arguments and a frame state. |
| 491 Node* CallJS0WithFrameState(Node* function, Node* receiver, Node* context, |
| 492 Node* frame_state); |
| 491 // Call to a runtime function with zero arguments. | 493 // Call to a runtime function with zero arguments. |
| 492 Node* CallRuntime1(Runtime::FunctionId function, Node* arg0, Node* context, | 494 Node* CallRuntime1(Runtime::FunctionId function, Node* arg0, Node* context, |
| 493 Node* frame_state); | 495 Node* frame_state); |
| 494 // Call to a C function with zero arguments. | 496 // Call to a C function with zero arguments. |
| 495 Node* CallCFunction0(MachineType return_type, Node* function); | 497 Node* CallCFunction0(MachineType return_type, Node* function); |
| 496 // Call to a C function with one parameter. | 498 // Call to a C function with one parameter. |
| 497 Node* CallCFunction1(MachineType return_type, MachineType arg0_type, | 499 Node* CallCFunction1(MachineType return_type, MachineType arg0_type, |
| 498 Node* function, Node* arg0); | 500 Node* function, Node* arg0); |
| 499 // Call to a C function with two arguments. | 501 // Call to a C function with two arguments. |
| 500 Node* CallCFunction2(MachineType return_type, MachineType arg0_type, | 502 Node* CallCFunction2(MachineType return_type, MachineType arg0_type, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 BasicBlock* current_block_; | 597 BasicBlock* current_block_; |
| 596 | 598 |
| 597 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); | 599 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); |
| 598 }; | 600 }; |
| 599 | 601 |
| 600 } // namespace compiler | 602 } // namespace compiler |
| 601 } // namespace internal | 603 } // namespace internal |
| 602 } // namespace v8 | 604 } // namespace v8 |
| 603 | 605 |
| 604 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 606 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |