| 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 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1804 private: | 1804 private: |
| 1805 Assembler* assem_; | 1805 Assembler* assem_; |
| 1806 | 1806 |
| 1807 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockConstPoolScope); | 1807 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockConstPoolScope); |
| 1808 }; | 1808 }; |
| 1809 | 1809 |
| 1810 // Check if is time to emit a constant pool. | 1810 // Check if is time to emit a constant pool. |
| 1811 void CheckConstPool(bool force_emit, bool require_jump); | 1811 void CheckConstPool(bool force_emit, bool require_jump); |
| 1812 | 1812 |
| 1813 // Allocate a constant pool of the correct size for the generated code. | 1813 // Allocate a constant pool of the correct size for the generated code. |
| 1814 MaybeObject* AllocateConstantPool(Heap* heap); | 1814 Handle<ConstantPoolArray> NewConstantPool(Isolate* isolate); |
| 1815 | 1815 |
| 1816 // Generate the constant pool for the generated code. | 1816 // Generate the constant pool for the generated code. |
| 1817 void PopulateConstantPool(ConstantPoolArray* constant_pool); | 1817 void PopulateConstantPool(ConstantPoolArray* constant_pool); |
| 1818 | 1818 |
| 1819 // Returns true if we should emit a veneer as soon as possible for a branch | 1819 // Returns true if we should emit a veneer as soon as possible for a branch |
| 1820 // which can at most reach to specified pc. | 1820 // which can at most reach to specified pc. |
| 1821 bool ShouldEmitVeneer(int max_reachable_pc, | 1821 bool ShouldEmitVeneer(int max_reachable_pc, |
| 1822 int margin = kVeneerDistanceMargin); | 1822 int margin = kVeneerDistanceMargin); |
| 1823 bool ShouldEmitVeneers(int margin = kVeneerDistanceMargin) { | 1823 bool ShouldEmitVeneers(int margin = kVeneerDistanceMargin) { |
| 1824 return ShouldEmitVeneer(unresolved_branches_first_limit(), margin); | 1824 return ShouldEmitVeneer(unresolved_branches_first_limit(), margin); |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2238 class EnsureSpace BASE_EMBEDDED { | 2238 class EnsureSpace BASE_EMBEDDED { |
| 2239 public: | 2239 public: |
| 2240 explicit EnsureSpace(Assembler* assembler) { | 2240 explicit EnsureSpace(Assembler* assembler) { |
| 2241 assembler->CheckBuffer(); | 2241 assembler->CheckBuffer(); |
| 2242 } | 2242 } |
| 2243 }; | 2243 }; |
| 2244 | 2244 |
| 2245 } } // namespace v8::internal | 2245 } } // namespace v8::internal |
| 2246 | 2246 |
| 2247 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ | 2247 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ |
| OLD | NEW |