Commit 5c3b4224 authored by ager@chromium.org's avatar ager@chromium.org

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
parent d85ca084
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment