Deprecate obsolete JSFunction::unchecked_shared accessor.
R=hpayer@chromium.org BUG=v8:1490 Review URL: https://codereview.chromium.org/16813005 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15086 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
a11d33967f
commit
643350c5d2
@ -2418,7 +2418,7 @@ void MarkCompactCollector::ClearNonLiveReferences() {
|
||||
// This map is used for inobject slack tracking and has been detached
|
||||
// from SharedFunctionInfo during the mark phase.
|
||||
// Since it survived the GC, reattach it now.
|
||||
map->unchecked_constructor()->unchecked_shared()->AttachInitialMap(map);
|
||||
map->unchecked_constructor()->shared()->AttachInitialMap(map);
|
||||
}
|
||||
|
||||
ClearNonLivePrototypeTransitions(map);
|
||||
|
@ -4969,12 +4969,6 @@ Object* JSFunction::unchecked_context() {
|
||||
}
|
||||
|
||||
|
||||
SharedFunctionInfo* JSFunction::unchecked_shared() {
|
||||
return reinterpret_cast<SharedFunctionInfo*>(
|
||||
READ_FIELD(this, kSharedFunctionInfoOffset));
|
||||
}
|
||||
|
||||
|
||||
void JSFunction::set_context(Object* value) {
|
||||
ASSERT(value->IsUndefined() || value->IsContext());
|
||||
WRITE_FIELD(this, kContextOffset, value);
|
||||
|
@ -414,7 +414,7 @@ void StaticMarkingVisitor<StaticVisitor>::VisitJSFunction(
|
||||
// Visit shared function info immediately to avoid double checking
|
||||
// of its flushability later. This is just an optimization because
|
||||
// the shared function info would eventually be visited.
|
||||
SharedFunctionInfo* shared = function->unchecked_shared();
|
||||
SharedFunctionInfo* shared = function->shared();
|
||||
if (StaticVisitor::MarkObjectWithoutPush(heap, shared)) {
|
||||
StaticVisitor::MarkObject(heap, shared->map());
|
||||
VisitSharedFunctionInfoWeakCode(heap, shared);
|
||||
@ -595,7 +595,7 @@ inline static bool HasSourceCode(Heap* heap, SharedFunctionInfo* info) {
|
||||
template<typename StaticVisitor>
|
||||
bool StaticMarkingVisitor<StaticVisitor>::IsFlushable(
|
||||
Heap* heap, JSFunction* function) {
|
||||
SharedFunctionInfo* shared_info = function->unchecked_shared();
|
||||
SharedFunctionInfo* shared_info = function->shared();
|
||||
|
||||
// Code is either on stack, in compilation cache or referenced
|
||||
// by optimized version of function.
|
||||
|
@ -6581,8 +6581,6 @@ class JSFunction: public JSObject {
|
||||
// can be shared by instances.
|
||||
DECL_ACCESSORS(shared, SharedFunctionInfo)
|
||||
|
||||
inline SharedFunctionInfo* unchecked_shared();
|
||||
|
||||
// [context]: The context for this function.
|
||||
inline Context* context();
|
||||
inline Object* unchecked_context();
|
||||
|
Loading…
Reference in New Issue
Block a user