Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index 6d74c4a4a45de73ae9e1fd514f2d4d7945208a85..510852341772b55cb0184c8300f3b7885af88b84 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -818,9 +818,9 @@ Handle<JSArray> Isolate::CaptureCurrentStackTrace( |
} |
if (options & StackTrace::kIsEval) { |
- int type = Smi::cast(script->compilation_type())->value(); |
- Handle<Object> is_eval = (type == Script::COMPILATION_TYPE_EVAL) ? |
- factory()->true_value() : factory()->false_value(); |
+ Handle<Object> is_eval = |
+ script->compilation_type() == Script::COMPILATION_TYPE_EVAL ? |
+ factory()->true_value() : factory()->false_value(); |
CHECK_NOT_EMPTY_HANDLE(this, |
JSObject::SetLocalPropertyIgnoreAttributes( |
stack_frame, eval_key, is_eval, NONE)); |
@@ -846,6 +846,11 @@ Handle<JSArray> Isolate::CaptureCurrentStackTrace( |
} |
+void Isolate::PrintStack() { |
+ PrintStack(stdout); |
+} |
+ |
+ |
void Isolate::PrintStack(FILE* out) { |
if (stack_trace_nesting_level_ == 0) { |
stack_trace_nesting_level_++; |
@@ -1781,6 +1786,7 @@ Isolate::Isolate() |
regexp_stack_(NULL), |
date_cache_(NULL), |
code_stub_interface_descriptors_(NULL), |
+ context_exit_happened_(false), |
initialized_from_snapshot_(false), |
cpu_profiler_(NULL), |
heap_profiler_(NULL), |