Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 947eb66961517570e81e8c9f2d7bed03995e6a64..49fd9d4816af83fbc6d364f872e83ca8ca2f7a3b 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -1392,11 +1392,6 @@ void HeapObject::IteratePointer(ObjectVisitor* v, int offset) { |
} |
-void HeapObject::IterateNextCodeLink(ObjectVisitor* v, int offset) { |
- v->VisitNextCodeLink(reinterpret_cast<Object**>(FIELD_ADDR(this, offset))); |
-} |
- |
- |
double HeapNumber::value() { |
return READ_DOUBLE_FIELD(this, kValueOffset); |
} |
@@ -5690,7 +5685,6 @@ ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) |
ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) |
ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) |
ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset) |
-ACCESSORS(Code, next_code_link, Object, kNextCodeLinkOffset) |
void Code::WipeOutHeader() { |
@@ -5719,6 +5713,20 @@ void Code::set_type_feedback_info(Object* value, WriteBarrierMode mode) { |
} |
+Object* Code::next_code_link() { |
+ CHECK(kind() == OPTIMIZED_FUNCTION); |
+ return raw_type_feedback_info(); |
+} |
+ |
+ |
+void Code::set_next_code_link(Object* value, WriteBarrierMode mode) { |
+ CHECK(kind() == OPTIMIZED_FUNCTION); |
+ set_raw_type_feedback_info(value); |
+ CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kTypeFeedbackInfoOffset, |
+ value, mode); |
+} |
+ |
+ |
int Code::stub_info() { |
ASSERT(kind() == COMPARE_IC || kind() == COMPARE_NIL_IC || |
kind() == BINARY_OP_IC || kind() == LOAD_IC); |