Revision: 19251
Author: [email protected]
Date: Tue Feb 11 07:28:05 2014 UTC
Log: Add flag to print stack trace on illegal exception.
This would help a lot with native Javascript code.
[email protected]
Review URL: https://codereview.chromium.org/156373003
http://code.google.com/p/v8/source/detail?r=19251
Modified:
/branches/bleeding_edge/src/flag-definitions.h
/branches/bleeding_edge/src/isolate.cc
=======================================
--- /branches/bleeding_edge/src/flag-definitions.h Fri Feb 7 07:36:30 2014
UTC
+++ /branches/bleeding_edge/src/flag-definitions.h Tue Feb 11 07:28:05 2014
UTC
@@ -591,6 +591,8 @@
"Stack alingment in bytes in simulator (4 or 8, 8 is default)")
// isolate.cc
+DEFINE_bool(stack_trace_on_illegal, false,
+ "print stack trace when an illegal exception is thrown")
DEFINE_bool(abort_on_uncaught_exception, false,
"abort program (dump core) when an uncaught exception is
thrown")
DEFINE_bool(trace_exception, false,
=======================================
--- /branches/bleeding_edge/src/isolate.cc Fri Jan 31 16:52:17 2014 UTC
+++ /branches/bleeding_edge/src/isolate.cc Tue Feb 11 07:28:05 2014 UTC
@@ -946,6 +946,7 @@
Failure* Isolate::ThrowIllegalOperation() {
+ if (FLAG_stack_trace_on_illegal) PrintStack(stdout);
return Throw(heap_.illegal_access_string());
}
--
--
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/groups/opt_out.