OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1783 | 1783 |
1784 private: | 1784 private: |
1785 Assembler* assem_; | 1785 Assembler* assem_; |
1786 | 1786 |
1787 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockConstPoolScope); | 1787 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockConstPoolScope); |
1788 }; | 1788 }; |
1789 | 1789 |
1790 // Check if is time to emit a constant pool. | 1790 // Check if is time to emit a constant pool. |
1791 void CheckConstPool(bool force_emit, bool require_jump); | 1791 void CheckConstPool(bool force_emit, bool require_jump); |
1792 | 1792 |
| 1793 // Allocate a constant pool of the correct size for the generated code. |
| 1794 MaybeObject* AllocateConstantPool(Heap* heap); |
| 1795 |
| 1796 // Generate the constant pool for the generated code. |
| 1797 void PopulateConstantPool(ConstantPoolArray* constant_pool); |
1793 | 1798 |
1794 // Returns true if we should emit a veneer as soon as possible for a branch | 1799 // Returns true if we should emit a veneer as soon as possible for a branch |
1795 // which can at most reach to specified pc. | 1800 // which can at most reach to specified pc. |
1796 bool ShouldEmitVeneer(int max_reachable_pc, | 1801 bool ShouldEmitVeneer(int max_reachable_pc, |
1797 int margin = kVeneerDistanceMargin); | 1802 int margin = kVeneerDistanceMargin); |
1798 bool ShouldEmitVeneers(int margin = kVeneerDistanceMargin) { | 1803 bool ShouldEmitVeneers(int margin = kVeneerDistanceMargin) { |
1799 return ShouldEmitVeneer(unresolved_branches_first_limit(), margin); | 1804 return ShouldEmitVeneer(unresolved_branches_first_limit(), margin); |
1800 } | 1805 } |
1801 | 1806 |
1802 // The maximum code size generated for a veneer. Currently one branch | 1807 // The maximum code size generated for a veneer. Currently one branch |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2205 class EnsureSpace BASE_EMBEDDED { | 2210 class EnsureSpace BASE_EMBEDDED { |
2206 public: | 2211 public: |
2207 explicit EnsureSpace(Assembler* assembler) { | 2212 explicit EnsureSpace(Assembler* assembler) { |
2208 assembler->CheckBuffer(); | 2213 assembler->CheckBuffer(); |
2209 } | 2214 } |
2210 }; | 2215 }; |
2211 | 2216 |
2212 } } // namespace v8::internal | 2217 } } // namespace v8::internal |
2213 | 2218 |
2214 #endif // V8_A64_ASSEMBLER_A64_H_ | 2219 #endif // V8_A64_ASSEMBLER_A64_H_ |
OLD | NEW |