Add missing PostponeInterruptsScope.

R=ulan@chromium.org

Review URL: https://codereview.chromium.org/119763005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18411 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
yangguo@chromium.org 2013-12-23 15:41:44 +00:00
parent 6ba6d0b4fe
commit d662f8abf7

View File

@ -726,6 +726,7 @@ Handle<Code> Compiler::GetCodeForDebugging(Handle<JSFunction> function) {
void Compiler::CompileForLiveEdit(Handle<Script> script) {
// TODO(635): support extensions.
CompilationInfoWithZone info(script);
PostponeInterruptsScope postpone(info.isolate());
VMState<COMPILER> state(info.isolate());
info.MarkAsGlobal();
@ -754,6 +755,7 @@ static bool DebuggerWantsEagerCompilation(CompilationInfo* info,
static Handle<SharedFunctionInfo> CompileToplevel(CompilationInfo* info) {
Isolate* isolate = info->isolate();
PostponeInterruptsScope postpone(isolate);
ASSERT(!isolate->native_context().is_null());
Handle<Script> script = info->script();