| 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/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
| 9 #include "src/compiler/graph-builder.h" | 9 #include "src/compiler/graph-builder.h" |
| 10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 } | 434 } |
| 435 Node* Float64InsertLowWord32(Node* a, Node* b) { | 435 Node* Float64InsertLowWord32(Node* a, Node* b) { |
| 436 return NewNode(machine()->Float64InsertLowWord32(), a, b); | 436 return NewNode(machine()->Float64InsertLowWord32(), a, b); |
| 437 } | 437 } |
| 438 Node* Float64InsertHighWord32(Node* a, Node* b) { | 438 Node* Float64InsertHighWord32(Node* a, Node* b) { |
| 439 return NewNode(machine()->Float64InsertHighWord32(), a, b); | 439 return NewNode(machine()->Float64InsertHighWord32(), a, b); |
| 440 } | 440 } |
| 441 | 441 |
| 442 // Stack operations. | 442 // Stack operations. |
| 443 Node* LoadStackPointer() { return NewNode(machine()->LoadStackPointer()); } | 443 Node* LoadStackPointer() { return NewNode(machine()->LoadStackPointer()); } |
| 444 Node* LoadFramePointer() { return NewNode(machine()->LoadFramePointer()); } |
| 444 | 445 |
| 445 // Parameters. | 446 // Parameters. |
| 446 Node* Parameter(size_t index); | 447 Node* Parameter(size_t index); |
| 447 | 448 |
| 448 // Pointer utilities. | 449 // Pointer utilities. |
| 449 Node* LoadFromPointer(void* address, MachineType rep, int32_t offset = 0) { | 450 Node* LoadFromPointer(void* address, MachineType rep, int32_t offset = 0) { |
| 450 return Load(rep, PointerConstant(address), Int32Constant(offset)); | 451 return Load(rep, PointerConstant(address), Int32Constant(offset)); |
| 451 } | 452 } |
| 452 void StoreToPointer(void* address, MachineType rep, Node* node) { | 453 void StoreToPointer(void* address, MachineType rep, Node* node) { |
| 453 Store(rep, PointerConstant(address), node); | 454 Store(rep, PointerConstant(address), node); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 BasicBlock* current_block_; | 516 BasicBlock* current_block_; |
| 516 | 517 |
| 517 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); | 518 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); |
| 518 }; | 519 }; |
| 519 | 520 |
| 520 } // namespace compiler | 521 } // namespace compiler |
| 521 } // namespace internal | 522 } // namespace internal |
| 522 } // namespace v8 | 523 } // namespace v8 |
| 523 | 524 |
| 524 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 525 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |