| 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 #ifdef USE_SIMULATOR | 8 #ifdef USE_SIMULATOR |
| 9 #define MACHINE_ASSEMBLER_SUPPORTS_CALL_C 0 | 9 #define MACHINE_ASSEMBLER_SUPPORTS_CALL_C 0 |
| 10 #else | 10 #else |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 416 return NewNode(common()->Phi(type, 3), n1, n2, n3); | 416 return NewNode(common()->Phi(type, 3), n1, n2, n3); |
| 417 } | 417 } |
| 418 Node* Phi(MachineType type, Node* n1, Node* n2, Node* n3, Node* n4) { | 418 Node* Phi(MachineType type, Node* n1, Node* n2, Node* n3, Node* n4) { |
| 419 return NewNode(common()->Phi(type, 4), n1, n2, n3, n4); | 419 return NewNode(common()->Phi(type, 4), n1, n2, n3, n4); |
| 420 } | 420 } |
| 421 | 421 |
| 422 // MachineAssembler is invalid after export. | 422 // MachineAssembler is invalid after export. |
| 423 Schedule* Export(); | 423 Schedule* Export(); |
| 424 | 424 |
| 425 protected: | 425 protected: |
| 426 virtual Node* MakeNode(Operator* op, int input_count, Node** inputs); | 426 virtual Node* MakeNode(const Operator* op, int input_count, |
| 427 Node** inputs) FINAL; |
| 427 | 428 |
| 428 bool ScheduleValid() { return schedule_ != NULL; } | 429 bool ScheduleValid() { return schedule_ != NULL; } |
| 429 | 430 |
| 430 Schedule* schedule() { | 431 Schedule* schedule() { |
| 431 DCHECK(ScheduleValid()); | 432 DCHECK(ScheduleValid()); |
| 432 return schedule_; | 433 return schedule_; |
| 433 } | 434 } |
| 434 | 435 |
| 435 private: | 436 private: |
| 436 BasicBlock* Use(Label* label); | 437 BasicBlock* Use(Label* label); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 447 BasicBlock* current_block_; | 448 BasicBlock* current_block_; |
| 448 | 449 |
| 449 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); | 450 DISALLOW_COPY_AND_ASSIGN(RawMachineAssembler); |
| 450 }; | 451 }; |
| 451 | 452 |
| 452 } // namespace compiler | 453 } // namespace compiler |
| 453 } // namespace internal | 454 } // namespace internal |
| 454 } // namespace v8 | 455 } // namespace v8 |
| 455 | 456 |
| 456 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ | 457 #endif // V8_COMPILER_RAW_MACHINE_ASSEMBLER_H_ |
| OLD | NEW |