Chromium Code Reviews| Index: src/isolate.h |
| diff --git a/src/isolate.h b/src/isolate.h |
| index 2753373e29b0e7372889eebc3892dae5e5a27648..7280d8a76c661a6895cbb781859a3e0242aff006 100644 |
| --- a/src/isolate.h |
| +++ b/src/isolate.h |
| @@ -126,6 +126,16 @@ typedef ZoneList<Handle<Object> > ZoneObjectList; |
| #define RETURN_EXCEPTION_IF_SCHEDULED_EXCEPTION(isolate, T) \ |
| RETURN_VALUE_IF_SCHEDULED_EXCEPTION(isolate, MaybeHandle<T>()) |
| +#define RETURN_RESULT(isolate, call, T) \ |
| + do { \ |
| + Handle<T> __result__; \ |
| + if (!(call).ToHandle(&__result__)) { \ |
| + DCHECK((isolate)->has_pending_exception()); \ |
| + return MaybeHandle<T>(); \ |
| + } \ |
| + return __result__; \ |
| + } while (false) |
| + |
| #define RETURN_RESULT_OR_FAILURE(isolate, call) \ |
| do { \ |
| Handle<Object> __result__; \ |
| @@ -676,6 +686,9 @@ class Isolate { |
| Handle<Object> pending_exception_; |
| }; |
| + void set_formatting_stack_trace(bool val) { formatting_stack_trace_ = val; } |
| + bool formatting_stack_trace() const { return formatting_stack_trace_; } |
| + |
| void SetCaptureStackTraceForUncaughtExceptions( |
| bool capture, |
| int frame_limit, |
| @@ -1290,6 +1303,7 @@ class Isolate { |
| bool deoptimizer_lazy_throw_; |
| MaterializedObjectStore* materialized_object_store_; |
| ThreadLocalTop thread_local_top_; |
| + bool formatting_stack_trace_; |
|
Yang
2016/08/01 12:31:20
You can add this to ISOLATE_INIT_LIST
jgruber
2016/08/01 14:01:08
Done.
|
| bool capture_stack_trace_for_uncaught_exceptions_; |
| int stack_trace_for_uncaught_exceptions_frame_limit_; |
| StackTrace::StackTraceOptions stack_trace_for_uncaught_exceptions_options_; |