Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 4830fafe35c323598e0bd6a49ed6f7a7ef6569ca..174fbdd7e6ebcd3834de0bc8b2c954694999b973 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -8346,7 +8346,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_InstallRecompiledCode) { |
HandleScope handle_scope(isolate); |
ASSERT(args.length() == 1); |
CONVERT_ARG_HANDLE_CHECKED(JSFunction, function, 0); |
- ASSERT(V8::UseCrankshaft() && FLAG_concurrent_recompilation); |
+ ASSERT(isolate->use_crankshaft() && FLAG_concurrent_recompilation); |
isolate->optimizing_compiler_thread()->InstallOptimizedFunctions(); |
return function->code(); |
} |
@@ -8532,7 +8532,7 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_NeverOptimizeFunction) { |
RUNTIME_FUNCTION(MaybeObject*, Runtime_GetOptimizationStatus) { |
HandleScope scope(isolate); |
RUNTIME_ASSERT(args.length() == 1 || args.length() == 2); |
- if (!V8::UseCrankshaft()) { |
+ if (!isolate->use_crankshaft()) { |
return Smi::FromInt(4); // 4 == "never". |
} |
bool sync_with_compiler_thread = true; |