Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(516)

Side by Side Diff: src/assembler.h

Issue 2869683004: [arm] Share constant pool entries in snapshot. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 : position_(position), merged_index_(SHARING_ALLOWED), value64_(value) {} 1159 : position_(position), merged_index_(SHARING_ALLOWED), value64_(value) {}
1160 1160
1161 int position() const { return position_; } 1161 int position() const { return position_; }
1162 bool sharing_ok() const { return merged_index_ != SHARING_PROHIBITED; } 1162 bool sharing_ok() const { return merged_index_ != SHARING_PROHIBITED; }
1163 bool is_merged() const { return merged_index_ >= 0; } 1163 bool is_merged() const { return merged_index_ >= 0; }
1164 int merged_index(void) const { 1164 int merged_index(void) const {
1165 DCHECK(is_merged()); 1165 DCHECK(is_merged());
1166 return merged_index_; 1166 return merged_index_;
1167 } 1167 }
1168 void set_merged_index(int index) { 1168 void set_merged_index(int index) {
1169 DCHECK(sharing_ok());
1169 merged_index_ = index; 1170 merged_index_ = index;
1170 DCHECK(is_merged()); 1171 DCHECK(is_merged());
1171 } 1172 }
1172 int offset(void) const { 1173 int offset(void) const {
1173 DCHECK(merged_index_ >= 0); 1174 DCHECK(merged_index_ >= 0);
1174 return merged_index_; 1175 return merged_index_;
1175 } 1176 }
1176 void set_offset(int offset) { 1177 void set_offset(int offset) {
1177 DCHECK(offset >= 0); 1178 DCHECK(offset >= 0);
1178 merged_index_ = offset; 1179 merged_index_ = offset;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1260 std::vector<ConstantPoolEntry> shared_entries; 1261 std::vector<ConstantPoolEntry> shared_entries;
1261 }; 1262 };
1262 1263
1263 Label emitted_label_; // Records pc_offset of emitted pool 1264 Label emitted_label_; // Records pc_offset of emitted pool
1264 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; 1265 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES];
1265 }; 1266 };
1266 1267
1267 } // namespace internal 1268 } // namespace internal
1268 } // namespace v8 1269 } // namespace v8
1269 #endif // V8_ASSEMBLER_H_ 1270 #endif // V8_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698