| 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 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 559 Node* Float64InsertLowWord32(Node* a, Node* b) { | 559 Node* Float64InsertLowWord32(Node* a, Node* b) { |
| 560 return AddNode(machine()->Float64InsertLowWord32(), a, b); | 560 return AddNode(machine()->Float64InsertLowWord32(), a, b); |
| 561 } | 561 } |
| 562 Node* Float64InsertHighWord32(Node* a, Node* b) { | 562 Node* Float64InsertHighWord32(Node* a, Node* b) { |
| 563 return AddNode(machine()->Float64InsertHighWord32(), a, b); | 563 return AddNode(machine()->Float64InsertHighWord32(), a, b); |
| 564 } | 564 } |
| 565 | 565 |
| 566 // Stack operations. | 566 // Stack operations. |
| 567 Node* LoadStackPointer() { return AddNode(machine()->LoadStackPointer()); } | 567 Node* LoadStackPointer() { return AddNode(machine()->LoadStackPointer()); } |
| 568 Node* LoadFramePointer() { return AddNode(machine()->LoadFramePointer()); } | 568 Node* LoadFramePointer() { return AddNode(machine()->LoadFramePointer()); } |
| 569 Node* LoadParentFramePointer() { |
| 570 return AddNode(machine()->LoadParentFramePointer()); |
| 571 } |
| 569 | 572 |
| 570 // Parameters. | 573 // Parameters. |
| 571 Node* Parameter(size_t index); | 574 Node* Parameter(size_t index); |
| 572 | 575 |
| 573 // Pointer utilities. | 576 // Pointer utilities. |
| 574 Node* LoadFromPointer(void* address, MachineType rep, int32_t offset = 0) { | 577 Node* LoadFromPointer(void* address, MachineType rep, int32_t offset = 0) { |
| 575 return Load(rep, PointerConstant(address), Int32Constant(offset)); | 578 return Load(rep, PointerConstant(address), Int32Constant(offset)); |
| 576 } | 579 } |
| 577 Node* StoreToPointer(void* address, MachineRepresentation rep, Node* node) { | 580 Node* StoreToPointer(void* address, MachineRepresentation rep, Node* node) { |
| 578 return Store(rep, PointerConstant(address), node, kNoWriteBarrier); | 581 return Store(rep, PointerConstant(address), node, kNoWriteBarrier); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 bool bound_; | 717 bool bound_; |
| 715 friend class RawMachineAssembler; | 718 friend class RawMachineAssembler; |
| 716 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); | 719 DISALLOW_COPY_AND_ASSIGN(RawMachineLabel); |
| 717 }; | 720 }; |
| 718 | 721 |
| 719 } // namespace compiler | 722 } // namespace compiler |
| 720 } // namespace internal | 723 } // namespace internal |
| 721 } // namespace v8 | 724 } // namespace v8 |
| 722 | 725 |
| 723 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 726 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |