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

Unified Diff: src/arm/assembler-arm.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/arm/assembler-arm.cc » ('j') | src/interpreter/setup-interpreter-internal.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/assembler-arm.h
diff --git a/src/arm/assembler-arm.h b/src/arm/assembler-arm.h
index 9f5d007ba6c7468b525dfbb88320b262ff0f5709..c73e1b8ab93b3424e4966849eeae4b596a8d479a 100644
--- a/src/arm/assembler-arm.h
+++ b/src/arm/assembler-arm.h
@@ -1722,6 +1722,9 @@ class Assembler : public AssemblerBase {
std::vector<ConstantPoolEntry> pending_32_bit_constants_;
std::vector<ConstantPoolEntry> pending_64_bit_constants_;
+ // Map of address of handle to index in pending_32_bit_constants_.
+ std::map<Address, int> handle_to_index_map_;
+
private:
// Avoid overflows for displacements etc.
static const int kMaximalBufferSize = 512 * MB;
@@ -1780,10 +1783,9 @@ class Assembler : public AssemblerBase {
// Record reloc info for current pc_
void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0);
- ConstantPoolEntry::Access ConstantPoolAddEntry(int position,
- RelocInfo::Mode rmode,
- intptr_t value);
- ConstantPoolEntry::Access ConstantPoolAddEntry(int position, double value);
+ void ConstantPoolAddEntry(int position, RelocInfo::Mode rmode,
+ intptr_t value);
+ void ConstantPoolAddEntry(int position, double value);
friend class RelocInfo;
friend class CodePatcher;
« no previous file with comments | « no previous file | src/arm/assembler-arm.cc » ('j') | src/interpreter/setup-interpreter-internal.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698