| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // the assembler could clean up internal data structures. | 103 // the assembler could clean up internal data structures. |
| 104 virtual void AbortedCodeGeneration() { } | 104 virtual void AbortedCodeGeneration() { } |
| 105 | 105 |
| 106 // Debugging | 106 // Debugging |
| 107 void Print(); | 107 void Print(); |
| 108 | 108 |
| 109 static const int kMinimalBufferSize = 4*KB; | 109 static const int kMinimalBufferSize = 4*KB; |
| 110 | 110 |
| 111 static void FlushICache(Isolate* isolate, void* start, size_t size); | 111 static void FlushICache(Isolate* isolate, void* start, size_t size); |
| 112 | 112 |
| 113 // TODO(all): Help get rid of this one. | |
| 114 static void FlushICacheWithoutIsolate(void* start, size_t size); | |
| 115 | |
| 116 protected: | 113 protected: |
| 117 // The buffer into which code and relocation info are generated. It could | 114 // The buffer into which code and relocation info are generated. It could |
| 118 // either be owned by the assembler or be provided externally. | 115 // either be owned by the assembler or be provided externally. |
| 119 byte* buffer_; | 116 byte* buffer_; |
| 120 int buffer_size_; | 117 int buffer_size_; |
| 121 bool own_buffer_; | 118 bool own_buffer_; |
| 122 | 119 |
| 123 void set_constant_pool_available(bool available) { | 120 void set_constant_pool_available(bool available) { |
| 124 if (FLAG_enable_embedded_constant_pool) { | 121 if (FLAG_enable_embedded_constant_pool) { |
| 125 constant_pool_available_ = available; | 122 constant_pool_available_ = available; |
| (...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1295 std::vector<ConstantPoolEntry> shared_entries; | 1292 std::vector<ConstantPoolEntry> shared_entries; |
| 1296 }; | 1293 }; |
| 1297 | 1294 |
| 1298 Label emitted_label_; // Records pc_offset of emitted pool | 1295 Label emitted_label_; // Records pc_offset of emitted pool |
| 1299 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; | 1296 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; |
| 1300 }; | 1297 }; |
| 1301 | 1298 |
| 1302 } // namespace internal | 1299 } // namespace internal |
| 1303 } // namespace v8 | 1300 } // namespace v8 |
| 1304 #endif // V8_ASSEMBLER_H_ | 1301 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |