Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 27a626779cfdd24cb22744967cde1076de9e91a7..70c9600332023e967da037579e391319c2a7507c 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -4901,12 +4901,7 @@ bool JSFunction::IsInRecompileQueue() { |
Code* JSFunction::code() { |
- return Code::cast(unchecked_code()); |
-} |
- |
- |
-Code* JSFunction::unchecked_code() { |
- return reinterpret_cast<Code*>( |
+ return Code::cast( |
Code::GetObjectFromEntryAddress(FIELD_ADDR(this, kCodeEntryOffset))); |
} |
@@ -4951,11 +4946,6 @@ Context* JSFunction::context() { |
} |
-Object* JSFunction::unchecked_context() { |
- return READ_FIELD(this, kContextOffset); |
-} |
- |
- |
void JSFunction::set_context(Object* value) { |
ASSERT(value->IsUndefined() || value->IsContext()); |
WRITE_FIELD(this, kContextOffset, value); |