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

Side by Side Diff: src/assembler.h

Issue 2869683004: [arm] Share constant pool entries in snapshot. (Closed)
Patch Set: Update tools/v8heapconst.py 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 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
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());
1170 merged_index_ = index; 1171 merged_index_ = index;
1171 DCHECK(is_merged()); 1172 DCHECK(is_merged());
1172 } 1173 }
1173 int offset(void) const { 1174 int offset(void) const {
1174 DCHECK(merged_index_ >= 0); 1175 DCHECK(merged_index_ >= 0);
1175 return merged_index_; 1176 return merged_index_;
1176 } 1177 }
1177 void set_offset(int offset) { 1178 void set_offset(int offset) {
1178 DCHECK(offset >= 0); 1179 DCHECK(offset >= 0);
1179 merged_index_ = offset; 1180 merged_index_ = offset;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 std::vector<ConstantPoolEntry> shared_entries; 1262 std::vector<ConstantPoolEntry> shared_entries;
1262 }; 1263 };
1263 1264
1264 Label emitted_label_; // Records pc_offset of emitted pool 1265 Label emitted_label_; // Records pc_offset of emitted pool
1265 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES]; 1266 PerTypeEntryInfo info_[ConstantPoolEntry::NUMBER_OF_TYPES];
1266 }; 1267 };
1267 1268
1268 } // namespace internal 1269 } // namespace internal
1269 } // namespace v8 1270 } // namespace v8
1270 #endif // V8_ASSEMBLER_H_ 1271 #endif // V8_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698