| 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 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1160 : position_(position), merged_index_(SHARING_ALLOWED), value64_(value) {} | 1160 : position_(position), merged_index_(SHARING_ALLOWED), value64_(value) {} |
| 1161 | 1161 |
| 1162 int position() const { return position_; } | 1162 int position() const { return position_; } |
| 1163 bool sharing_ok() const { return merged_index_ != SHARING_PROHIBITED; } | 1163 bool sharing_ok() const { return merged_index_ != SHARING_PROHIBITED; } |
| 1164 bool is_merged() const { return merged_index_ >= 0; } | 1164 bool is_merged() const { return merged_index_ >= 0; } |
| 1165 int merged_index(void) const { | 1165 int merged_index(void) const { |
| 1166 DCHECK(is_merged()); | 1166 DCHECK(is_merged()); |
| 1167 return merged_index_; | 1167 return merged_index_; |
| 1168 } | 1168 } |
| 1169 void set_merged_index(int index) { | 1169 void set_merged_index(int index) { |
| 1170 DCHECK(sharing_ok()); | |
| 1171 merged_index_ = index; | 1170 merged_index_ = index; |
| 1172 DCHECK(is_merged()); | 1171 DCHECK(is_merged()); |
| 1173 } | 1172 } |
| 1174 int offset(void) const { | 1173 int offset(void) const { |
| 1175 DCHECK(merged_index_ >= 0); | 1174 DCHECK(merged_index_ >= 0); |
| 1176 return merged_index_; | 1175 return merged_index_; |
| 1177 } | 1176 } |
| 1178 void set_offset(int offset) { | 1177 void set_offset(int offset) { |
| 1179 DCHECK(offset >= 0); | 1178 DCHECK(offset >= 0); |
| 1180 merged_index_ = offset; | 1179 merged_index_ = offset; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1262 std::vector<ConstantPoolEntry> shared_entries; | 1261 std::vector<ConstantPoolEntry> shared_entries; |
| 1263 }; | 1262 }; |
| 1264 | 1263 |
| 1265 Label emitted_label_; // Records pc_offset of emitted pool | 1264 Label emitted_label_; // Records pc_offset of emitted pool |
| 1266 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; | 1265 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; |
| 1267 }; | 1266 }; |
| 1268 | 1267 |
| 1269 } // namespace internal | 1268 } // namespace internal |
| 1270 } // namespace v8 | 1269 } // namespace v8 |
| 1271 #endif // V8_ASSEMBLER_H_ | 1270 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |