Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(950)

Unified Diff: src/isolate.h

Issue 6665063: [Isolates] Fix the crash in AssertNoContextChange ctor when current context i... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/isolate.h
===================================================================
--- src/isolate.h (revision 7210)
+++ src/isolate.h (working copy)
@@ -1180,7 +1180,9 @@
#ifdef DEBUG
public:
AssertNoContextChange() :
- context_(Isolate::Current()->context()) {
+ isolate_(Isolate::Current()),
Vitaly Repeshko 2011/03/17 18:13:43 Convert tabs to spaces.
+ scope_(isolate_),
+ context_(isolate_->context(), isolate_) {
Vitaly Repeshko 2011/03/17 18:13:43 Just pass Isolate::Current(). No need to save it i
}
~AssertNoContextChange() {
@@ -1188,6 +1190,7 @@
}
private:
+ Isolate* isolate_;
HandleScope scope_;
Handle<Context> context_;
#else
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698