Index: src/isolate.h |
diff --git a/src/isolate.h b/src/isolate.h |
index 8eace1268481c1011607548a610c37f1a31625f6..65ed83817926d8a11a10cd9afe90e49cc3771779 100644 |
--- a/src/isolate.h |
+++ b/src/isolate.h |
@@ -1386,14 +1386,11 @@ class SaveContext BASE_EMBEDDED { |
~SaveContext() { |
if (context_.is_null()) { |
Sven Panne
2013/09/03 10:42:08
Slightly clearer:
isolate_->set_context(contex
dcarney
2013/09/03 11:12:21
Done.
|
- Isolate* isolate = Isolate::Current(); |
- isolate->set_context(NULL); |
- isolate->set_save_context(prev_); |
+ isolate_->set_context(NULL); |
} else { |
- Isolate* isolate = context_->GetIsolate(); |
- isolate->set_context(*context_); |
- isolate->set_save_context(prev_); |
+ isolate_->set_context(*context_); |
} |
+ isolate_->set_save_context(prev_); |
} |
Handle<Context> context() { return context_; } |
@@ -1405,6 +1402,7 @@ class SaveContext BASE_EMBEDDED { |
} |
private: |
+ Isolate* isolate_; |
Handle<Context> context_; |
SaveContext* prev_; |
Address c_entry_fp_; |