| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index e95ed2625fd570f6de73567704d1fd0a70d57523..e81fc0a4706bb8eb93c063b862acce60277bd416 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -631,6 +631,7 @@ static void SetFunctionInfo(Handle<SharedFunctionInfo> function_info,
|
|
|
|
|
| static bool CompileUnoptimizedCode(CompilationInfo* info) {
|
| + ASSERT(AllowCompilation::IsAllowed(info->isolate()));
|
| ASSERT(info->function() != NULL);
|
| if (!Rewriter::Rewrite(info)) return false;
|
| if (!Scope::Analyze(info)) return false;
|
| @@ -1196,6 +1197,7 @@ MaybeHandle<Code> Compiler::GetOptimizedCode(Handle<JSFunction> function,
|
|
|
| SmartPointer<CompilationInfo> info(new CompilationInfoWithZone(function));
|
| Isolate* isolate = info->isolate();
|
| + ASSERT(AllowCompilation::IsAllowed(isolate));
|
| VMState<COMPILER> state(isolate);
|
| ASSERT(!isolate->has_pending_exception());
|
| PostponeInterruptsScope postpone(isolate);
|
|
|