Index: src/isolate-inl.h |
diff --git a/src/isolate-inl.h b/src/isolate-inl.h |
index aa6b5372ca4755880990c8fe55c6c9906eff41e2..d6e613176d7a71be593d9f796a3ca2716d9fe119 100644 |
--- a/src/isolate-inl.h |
+++ b/src/isolate-inl.h |
@@ -36,6 +36,21 @@ namespace v8 { |
namespace internal { |
+SaveContext::SaveContext(Isolate* isolate) : prev_(isolate->save_context()) { |
+ if (isolate->context() != NULL) { |
+ context_ = Handle<Context>(isolate->context()); |
+#if __GNUC_VERSION__ >= 40100 && __GNUC_VERSION__ < 40300 |
+ dummy_ = Handle<Context>(isolate->context()); |
+#endif |
+ } |
+ isolate->set_save_context(this); |
+ |
+ // If there is no JS frame under the current C frame, use the value 0. |
+ JavaScriptFrameIterator it(isolate); |
+ js_sp_ = it.done() ? 0 : it.frame()->sp(); |
+} |
+ |
+ |
bool Isolate::DebuggerHasBreakPoints() { |
#ifdef ENABLE_DEBUGGER_SUPPORT |
return debug()->has_break_points(); |