| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_CODE_ASSEMBLER_H_ | 5 #ifndef V8_COMPILER_CODE_ASSEMBLER_H_ |
| 6 #define V8_COMPILER_CODE_ASSEMBLER_H_ | 6 #define V8_COMPILER_CODE_ASSEMBLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 | 413 |
| 414 // Helpers which delegate to RawMachineAssembler. | 414 // Helpers which delegate to RawMachineAssembler. |
| 415 Factory* factory() const; | 415 Factory* factory() const; |
| 416 Isolate* isolate() const; | 416 Isolate* isolate() const; |
| 417 Zone* zone() const; | 417 Zone* zone() const; |
| 418 | 418 |
| 419 CodeAssemblerState* state() { return state_; } | 419 CodeAssemblerState* state() { return state_; } |
| 420 | 420 |
| 421 void BreakOnNode(int node_id); | 421 void BreakOnNode(int node_id); |
| 422 | 422 |
| 423 bool UnalignedLoadSupported(const MachineType& machineType, |
| 424 uint8_t alignment) const; |
| 425 bool UnalignedStoreSupported(const MachineType& machineType, |
| 426 uint8_t alignment) const; |
| 427 |
| 423 protected: | 428 protected: |
| 424 void RegisterCallGenerationCallbacks( | 429 void RegisterCallGenerationCallbacks( |
| 425 const CodeAssemblerCallback& call_prologue, | 430 const CodeAssemblerCallback& call_prologue, |
| 426 const CodeAssemblerCallback& call_epilogue); | 431 const CodeAssemblerCallback& call_epilogue); |
| 427 void UnregisterCallGenerationCallbacks(); | 432 void UnregisterCallGenerationCallbacks(); |
| 428 | 433 |
| 429 private: | 434 private: |
| 430 RawMachineAssembler* raw_assembler() const; | 435 RawMachineAssembler* raw_assembler() const; |
| 431 | 436 |
| 432 // Calls respective callback registered in the state. | 437 // Calls respective callback registered in the state. |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 CodeAssemblerCallback call_epilogue_; | 570 CodeAssemblerCallback call_epilogue_; |
| 566 | 571 |
| 567 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); | 572 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); |
| 568 }; | 573 }; |
| 569 | 574 |
| 570 } // namespace compiler | 575 } // namespace compiler |
| 571 } // namespace internal | 576 } // namespace internal |
| 572 } // namespace v8 | 577 } // namespace v8 |
| 573 | 578 |
| 574 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 579 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
| OLD | NEW |