From: ager@chromium.org Date: Wed, 30 Mar 2011 08:43:02 +0000 (+0000) Subject: Fix a couple of TLS isolate accesses in mark-compact. X-Git-Tag: upstream/4.7.83~19764 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c3b4224233fb96312c5d1f4cfa437d412aeee27;p=platform%2Fupstream%2Fv8.git Fix a couple of TLS isolate accesses in mark-compact. R=erik.corry@gmail.com Review URL: http://codereview.chromium.org/6765023 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7426 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/mark-compact.cc b/src/mark-compact.cc index 1f73388..6e0dbf1 100644 --- a/src/mark-compact.cc +++ b/src/mark-compact.cc @@ -161,7 +161,7 @@ void MarkCompactCollector::Finish() { // force lazy re-initialization of it. This must be done after the // GC, because it relies on the new address of certain old space // objects (empty string, illegal builtin). - Isolate::Current()->stub_cache()->Clear(); + heap_->isolate()->stub_cache()->Clear(); heap_->external_string_table_.CleanUp(); @@ -570,12 +570,12 @@ class StaticMarkingVisitor : public StaticVisitorBase { inline static bool IsCompiled(JSFunction* function) { return function->unchecked_code() != - Isolate::Current()->builtins()->builtin(Builtins::kLazyCompile); + function->GetIsolate()->builtins()->builtin(Builtins::kLazyCompile); } inline static bool IsCompiled(SharedFunctionInfo* function) { return function->unchecked_code() != - Isolate::Current()->builtins()->builtin(Builtins::kLazyCompile); + function->GetIsolate()->builtins()->builtin(Builtins::kLazyCompile); } inline static bool IsFlushable(JSFunction* function) {