Reviewers: Michael Starzinger,

Message:
PTAL

Description:
Fixed SEGV that could happen if an exception is thrown during bootstrapping.

BUG=chromium:487974
LOG=N

Please review this at https://codereview.chromium.org/1145703002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+1, -0 lines):
  M src/bootstrapper.cc


Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 55b5b3141e1b723f72ce1c5fad5c7ebfd1b38b62..87bad1fe4bd66be02e1444bcbbf9f36f08e4316f 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -1490,6 +1490,7 @@ bool Genesis::CompileNative(Isolate* isolate, Vector<const char> name,
   Handle<SharedFunctionInfo> function_info = Compiler::CompileScript(
source, script_name, 0, 0, false, false, Handle<Object>(), context, NULL,
       NULL, ScriptCompiler::kNoCompileOptions, NATIVES_CODE, false);
+  if (function_info.is_null()) return false;

   DCHECK(context->IsNativeContext());



--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to