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 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1808 private: | 1808 private: |
1809 Assembler* assem_; | 1809 Assembler* assem_; |
1810 | 1810 |
1811 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockConstPoolScope); | 1811 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockConstPoolScope); |
1812 }; | 1812 }; |
1813 | 1813 |
1814 // Check if is time to emit a constant pool. | 1814 // Check if is time to emit a constant pool. |
1815 void CheckConstPool(bool force_emit, bool require_jump); | 1815 void CheckConstPool(bool force_emit, bool require_jump); |
1816 | 1816 |
1817 // Allocate a constant pool of the correct size for the generated code. | 1817 // Allocate a constant pool of the correct size for the generated code. |
1818 MaybeObject* AllocateConstantPool(Heap* heap); | 1818 Handle<ConstantPoolArray> NewConstantPool(Isolate* isolate); |
1819 | 1819 |
1820 // Generate the constant pool for the generated code. | 1820 // Generate the constant pool for the generated code. |
1821 void PopulateConstantPool(ConstantPoolArray* constant_pool); | 1821 void PopulateConstantPool(ConstantPoolArray* constant_pool); |
1822 | 1822 |
1823 // Returns true if we should emit a veneer as soon as possible for a branch | 1823 // Returns true if we should emit a veneer as soon as possible for a branch |
1824 // which can at most reach to specified pc. | 1824 // which can at most reach to specified pc. |
1825 bool ShouldEmitVeneer(int max_reachable_pc, | 1825 bool ShouldEmitVeneer(int max_reachable_pc, |
1826 int margin = kVeneerDistanceMargin); | 1826 int margin = kVeneerDistanceMargin); |
1827 bool ShouldEmitVeneers(int margin = kVeneerDistanceMargin) { | 1827 bool ShouldEmitVeneers(int margin = kVeneerDistanceMargin) { |
1828 return ShouldEmitVeneer(unresolved_branches_first_limit(), margin); | 1828 return ShouldEmitVeneer(unresolved_branches_first_limit(), margin); |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2248 class EnsureSpace BASE_EMBEDDED { | 2248 class EnsureSpace BASE_EMBEDDED { |
2249 public: | 2249 public: |
2250 explicit EnsureSpace(Assembler* assembler) { | 2250 explicit EnsureSpace(Assembler* assembler) { |
2251 assembler->CheckBufferSpace(); | 2251 assembler->CheckBufferSpace(); |
2252 } | 2252 } |
2253 }; | 2253 }; |
2254 | 2254 |
2255 } } // namespace v8::internal | 2255 } } // namespace v8::internal |
2256 | 2256 |
2257 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ | 2257 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ |
OLD | NEW |