From 5c3b4224233fb96312c5d1f4cfa437d412aeee27 Mon Sep 17 00:00:00 2001 From: "ager@chromium.org" Date: Wed, 30 Mar 2011 08:43:02 +0000 Subject: [PATCH] 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 --- src/mark-compact.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) { -- 2.7.4