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 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1152 // when this happens. | 1152 // when this happens. |
1153 ASSERT(0); | 1153 ASSERT(0); |
1154 // Internal exception will be caught. | 1154 // Internal exception will be caught. |
1155 } else { | 1155 } else { |
1156 trampoline_slot = next_slot_; | 1156 trampoline_slot = next_slot_; |
1157 free_slot_count_--; | 1157 free_slot_count_--; |
1158 next_slot_ += kTrampolineSlotsSize; | 1158 next_slot_ += kTrampolineSlotsSize; |
1159 } | 1159 } |
1160 return trampoline_slot; | 1160 return trampoline_slot; |
1161 } | 1161 } |
| 1162 |
1162 private: | 1163 private: |
1163 int start_; | 1164 int start_; |
1164 int end_; | 1165 int end_; |
1165 int next_slot_; | 1166 int next_slot_; |
1166 int free_slot_count_; | 1167 int free_slot_count_; |
1167 }; | 1168 }; |
1168 | 1169 |
1169 int32_t get_trampoline_entry(int32_t pos); | 1170 int32_t get_trampoline_entry(int32_t pos); |
1170 int unbound_labels_count_; | 1171 int unbound_labels_count_; |
1171 // If trampoline is emitted, generated code is becoming large. As this is | 1172 // If trampoline is emitted, generated code is becoming large. As this is |
(...skipping 24 matching lines...) Expand all Loading... |
1196 class EnsureSpace BASE_EMBEDDED { | 1197 class EnsureSpace BASE_EMBEDDED { |
1197 public: | 1198 public: |
1198 explicit EnsureSpace(Assembler* assembler) { | 1199 explicit EnsureSpace(Assembler* assembler) { |
1199 assembler->CheckBuffer(); | 1200 assembler->CheckBuffer(); |
1200 } | 1201 } |
1201 }; | 1202 }; |
1202 | 1203 |
1203 } } // namespace v8::internal | 1204 } } // namespace v8::internal |
1204 | 1205 |
1205 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1206 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
OLD | NEW |