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