| 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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 } | 443 } |
| 444 Node* Float64InsertLowWord32(Node* a, Node* b) { | 444 Node* Float64InsertLowWord32(Node* a, Node* b) { |
| 445 return NewNode(machine()->Float64InsertLowWord32(), a, b); | 445 return NewNode(machine()->Float64InsertLowWord32(), a, b); |
| 446 } | 446 } |
| 447 Node* Float64InsertHighWord32(Node* a, Node* b) { | 447 Node* Float64InsertHighWord32(Node* a, Node* b) { |
| 448 return NewNode(machine()->Float64InsertHighWord32(), a, b); | 448 return NewNode(machine()->Float64InsertHighWord32(), a, b); |
| 449 } | 449 } |
| 450 | 450 |
| 451 // Stack operations. | 451 // Stack operations. |
| 452 Node* LoadStackPointer() { return NewNode(machine()->LoadStackPointer()); } | 452 Node* LoadStackPointer() { return NewNode(machine()->LoadStackPointer()); } |
| 453 Node* LoadFramePointer() { return NewNode(machine()->LoadFramePointer()); } |
| 453 | 454 |
| 454 // Parameters. | 455 // Parameters. |
| 455 Node* Parameter(size_t index); | 456 Node* Parameter(size_t index); |
| 456 | 457 |
| 457 // Control flow. | 458 // Control flow. |
| 458 Label* Exit(); | 459 Label* Exit(); |
| 459 void Goto(Label* label); | 460 void Goto(Label* label); |
| 460 void Branch(Node* condition, Label* true_val, Label* false_val); | 461 void Branch(Node* condition, Label* true_val, Label* false_val); |
| 461 void Switch(Node* index, Label* default_label, int32_t* case_values, | 462 void Switch(Node* index, Label* default_label, int32_t* case_values, |
| 462 Label** case_labels, size_t case_count); | 463 Label** case_labels, size_t case_count); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 BasicBlock* current_block_; | 514 BasicBlock* current_block_; |
| 514 | 515 |
| 515 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); | 516 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); |
| 516 }; | 517 }; |
| 517 | 518 |
| 518 } // namespace compiler | 519 } // namespace compiler |
| 519 } // namespace internal | 520 } // namespace internal |
| 520 } // namespace v8 | 521 } // namespace v8 |
| 521 | 522 |
| 522 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 523 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |