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

Unified Diff: src/arm/assembler-arm.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 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/disassembler.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 a6284937235dcfb54defad7cf9b659db7ca884eb..b9f022a5ab7aec40e2017e85fddcebb78d6377f1 100644
--- a/src/arm/assembler-arm.h
+++ b/src/arm/assembler-arm.h
@@ -1726,6 +1726,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;
@@ -1784,10 +1787,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/disassembler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698