Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 83d4f3d3b0742a9bc363a3494c72b4caea3943b9..5975d80fad0c01dc6cfa29e6334f314604ca5906 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -4175,6 +4175,18 @@ bool Code::is_debug_stub() { |
} |
+ConstantPoolArray* Code::constant_pool() { |
+ return ConstantPoolArray::cast(READ_FIELD(this, kConstantPoolOffset)); |
+} |
+ |
+ |
+void Code::set_constant_pool(Object* value) { |
+ ASSERT(value->IsConstantPoolArray()); |
+ WRITE_FIELD(this, kConstantPoolOffset, value); |
+ WRITE_BARRIER(GetHeap(), this, kConstantPoolOffset, value); |
+} |
+ |
+ |
Code::Flags Code::ComputeFlags(Kind kind, |
InlineCacheState ic_state, |
ExtraICState extra_ic_state, |