Index: src/x64/assembler-x64-inl.h |
diff --git a/src/x64/assembler-x64-inl.h b/src/x64/assembler-x64-inl.h |
index 91bc528f310aa537290dde522d09129a2cbe0822..d1d6278c6687104b5df0bac7ef347cf9d9a686c4 100644 |
--- a/src/x64/assembler-x64-inl.h |
+++ b/src/x64/assembler-x64-inl.h |
@@ -332,24 +332,22 @@ void RelocInfo::set_target_runtime_entry(Address target, |
} |
-Handle<JSGlobalPropertyCell> RelocInfo::target_cell_handle() { |
- ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); |
+Handle<Cell> RelocInfo::target_cell_handle() { |
+ ASSERT(rmode_ == RelocInfo::CELL); |
Address address = Memory::Address_at(pc_); |
- return Handle<JSGlobalPropertyCell>( |
- reinterpret_cast<JSGlobalPropertyCell**>(address)); |
+ return Handle<Cell>(reinterpret_cast<Cell**>(address)); |
} |
-JSGlobalPropertyCell* RelocInfo::target_cell() { |
- ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); |
- return JSGlobalPropertyCell::FromValueAddress(Memory::Address_at(pc_)); |
+Cell* RelocInfo::target_cell() { |
+ ASSERT(rmode_ == RelocInfo::CELL); |
+ return Cell::FromValueAddress(Memory::Address_at(pc_)); |
} |
-void RelocInfo::set_target_cell(JSGlobalPropertyCell* cell, |
- WriteBarrierMode mode) { |
- ASSERT(rmode_ == RelocInfo::GLOBAL_PROPERTY_CELL); |
- Address address = cell->address() + JSGlobalPropertyCell::kValueOffset; |
+void RelocInfo::set_target_cell(Cell* cell, WriteBarrierMode mode) { |
+ ASSERT(rmode_ == RelocInfo::CELL); |
+ Address address = cell->address() + Cell::kValueOffset; |
Memory::Address_at(pc_) = address; |
CPU::FlushICache(pc_, sizeof(Address)); |
if (mode == UPDATE_WRITE_BARRIER && |
@@ -445,8 +443,8 @@ void RelocInfo::Visit(ObjectVisitor* visitor) { |
CPU::FlushICache(pc_, sizeof(Address)); |
} else if (RelocInfo::IsCodeTarget(mode)) { |
visitor->VisitCodeTarget(this); |
- } else if (mode == RelocInfo::GLOBAL_PROPERTY_CELL) { |
- visitor->VisitGlobalPropertyCell(this); |
+ } else if (mode == RelocInfo::CELL) { |
+ visitor->VisitCell(this); |
} else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
visitor->VisitExternalReference(this); |
CPU::FlushICache(pc_, sizeof(Address)); |
@@ -475,8 +473,8 @@ void RelocInfo::Visit(Heap* heap) { |
CPU::FlushICache(pc_, sizeof(Address)); |
} else if (RelocInfo::IsCodeTarget(mode)) { |
StaticVisitor::VisitCodeTarget(heap, this); |
- } else if (mode == RelocInfo::GLOBAL_PROPERTY_CELL) { |
- StaticVisitor::VisitGlobalPropertyCell(heap, this); |
+ } else if (mode == RelocInfo::CELL) { |
+ StaticVisitor::VisitCell(heap, this); |
} else if (mode == RelocInfo::EXTERNAL_REFERENCE) { |
StaticVisitor::VisitExternalReference(this); |
CPU::FlushICache(pc_, sizeof(Address)); |