| 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   // Generate the constant pool for the generated code. | 
|  | 1794   void PopulateConstantPool(ConstantPoolArray* constant_pool); | 
| 1793 | 1795 | 
| 1794   // Returns true if we should emit a veneer as soon as possible for a branch | 1796   // Returns true if we should emit a veneer as soon as possible for a branch | 
| 1795   // which can at most reach to specified pc. | 1797   // which can at most reach to specified pc. | 
| 1796   bool ShouldEmitVeneer(int max_reachable_pc, | 1798   bool ShouldEmitVeneer(int max_reachable_pc, | 
| 1797                         int margin = kVeneerDistanceMargin); | 1799                         int margin = kVeneerDistanceMargin); | 
| 1798   bool ShouldEmitVeneers(int margin = kVeneerDistanceMargin) { | 1800   bool ShouldEmitVeneers(int margin = kVeneerDistanceMargin) { | 
| 1799     return ShouldEmitVeneer(unresolved_branches_first_limit(), margin); | 1801     return ShouldEmitVeneer(unresolved_branches_first_limit(), margin); | 
| 1800   } | 1802   } | 
| 1801 | 1803 | 
| 1802   // The maximum code size generated for a veneer. Currently one branch | 1804   // The maximum code size generated for a veneer. Currently one branch | 
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2202 class EnsureSpace BASE_EMBEDDED { | 2204 class EnsureSpace BASE_EMBEDDED { | 
| 2203  public: | 2205  public: | 
| 2204   explicit EnsureSpace(Assembler* assembler) { | 2206   explicit EnsureSpace(Assembler* assembler) { | 
| 2205     assembler->CheckBuffer(); | 2207     assembler->CheckBuffer(); | 
| 2206   } | 2208   } | 
| 2207 }; | 2209 }; | 
| 2208 | 2210 | 
| 2209 } }  // namespace v8::internal | 2211 } }  // namespace v8::internal | 
| 2210 | 2212 | 
| 2211 #endif  // V8_A64_ASSEMBLER_A64_H_ | 2213 #endif  // V8_A64_ASSEMBLER_A64_H_ | 
| OLD | NEW | 
|---|