| 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 | 406 |
| 407 CodeAssemblerState* state_; | 407 CodeAssemblerState* state_; |
| 408 | 408 |
| 409 DISALLOW_COPY_AND_ASSIGN(CodeAssembler); | 409 DISALLOW_COPY_AND_ASSIGN(CodeAssembler); |
| 410 }; | 410 }; |
| 411 | 411 |
| 412 class CodeAssemblerVariable { | 412 class CodeAssemblerVariable { |
| 413 public: | 413 public: |
| 414 explicit CodeAssemblerVariable(CodeAssembler* assembler, | 414 explicit CodeAssemblerVariable(CodeAssembler* assembler, |
| 415 MachineRepresentation rep); | 415 MachineRepresentation rep); |
| 416 explicit CodeAssemblerVariable(CodeAssembler* assembler, |
| 417 MachineRepresentation rep, |
| 418 Node* initial_value); |
| 416 ~CodeAssemblerVariable(); | 419 ~CodeAssemblerVariable(); |
| 417 void Bind(Node* value); | 420 void Bind(Node* value); |
| 418 Node* value() const; | 421 Node* value() const; |
| 419 MachineRepresentation rep() const; | 422 MachineRepresentation rep() const; |
| 420 bool IsBound() const; | 423 bool IsBound() const; |
| 421 | 424 |
| 422 private: | 425 private: |
| 423 friend class CodeAssemblerLabel; | 426 friend class CodeAssemblerLabel; |
| 424 friend class CodeAssemblerState; | 427 friend class CodeAssemblerState; |
| 425 class Impl; | 428 class Impl; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 CodeAssemblerCallback call_epilogue_; | 508 CodeAssemblerCallback call_epilogue_; |
| 506 | 509 |
| 507 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); | 510 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); |
| 508 }; | 511 }; |
| 509 | 512 |
| 510 } // namespace compiler | 513 } // namespace compiler |
| 511 } // namespace internal | 514 } // namespace internal |
| 512 } // namespace v8 | 515 } // namespace v8 |
| 513 | 516 |
| 514 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 517 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
| OLD | NEW |