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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 CodeAssemblerLabel::Type type = CodeAssemblerLabel::kNonDeferred) | 437 CodeAssemblerLabel::Type type = CodeAssemblerLabel::kNonDeferred) |
438 : CodeAssemblerLabel(assembler, merged_variables.length(), | 438 : CodeAssemblerLabel(assembler, merged_variables.length(), |
439 &(merged_variables[0]), type) {} | 439 &(merged_variables[0]), type) {} |
440 CodeAssemblerLabel( | 440 CodeAssemblerLabel( |
441 CodeAssembler* assembler, size_t count, CodeAssemblerVariable** vars, | 441 CodeAssembler* assembler, size_t count, CodeAssemblerVariable** vars, |
442 CodeAssemblerLabel::Type type = CodeAssemblerLabel::kNonDeferred); | 442 CodeAssemblerLabel::Type type = CodeAssemblerLabel::kNonDeferred); |
443 CodeAssemblerLabel( | 443 CodeAssemblerLabel( |
444 CodeAssembler* assembler, CodeAssemblerVariable* merged_variable, | 444 CodeAssembler* assembler, CodeAssemblerVariable* merged_variable, |
445 CodeAssemblerLabel::Type type = CodeAssemblerLabel::kNonDeferred) | 445 CodeAssemblerLabel::Type type = CodeAssemblerLabel::kNonDeferred) |
446 : CodeAssemblerLabel(assembler, 1, &merged_variable, type) {} | 446 : CodeAssemblerLabel(assembler, 1, &merged_variable, type) {} |
447 ~CodeAssemblerLabel() {} | 447 ~CodeAssemblerLabel(); |
448 | 448 |
449 private: | 449 private: |
450 friend class CodeAssembler; | 450 friend class CodeAssembler; |
451 | 451 |
452 void Bind(); | 452 void Bind(); |
453 void MergeVariables(); | 453 void MergeVariables(); |
454 | 454 |
455 bool bound_; | 455 bool bound_; |
456 size_t merge_count_; | 456 size_t merge_count_; |
457 CodeAssemblerState* state_; | 457 CodeAssemblerState* state_; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
501 CodeAssemblerCallback call_epilogue_; | 501 CodeAssemblerCallback call_epilogue_; |
502 | 502 |
503 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); | 503 DISALLOW_COPY_AND_ASSIGN(CodeAssemblerState); |
504 }; | 504 }; |
505 | 505 |
506 } // namespace compiler | 506 } // namespace compiler |
507 } // namespace internal | 507 } // namespace internal |
508 } // namespace v8 | 508 } // namespace v8 |
509 | 509 |
510 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ | 510 #endif // V8_COMPILER_CODE_ASSEMBLER_H_ |
OLD | NEW |