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

Unified Diff: runtime/vm/longjump.h

Issue 1299653003: Migrate LongJumpScope to Thread. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Assert current isolate. Created 5 years, 4 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 | « runtime/vm/isolate.cc ('k') | runtime/vm/longjump.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/longjump.h
diff --git a/runtime/vm/longjump.h b/runtime/vm/longjump.h
index adf9449e80323111e500e73a49a5938215a3a6c8..ce4f813f7629954a58ad94c06701de378e38c482 100644
--- a/runtime/vm/longjump.h
+++ b/runtime/vm/longjump.h
@@ -17,14 +17,14 @@ class Error;
class LongJumpScope : public StackResource {
public:
LongJumpScope()
- : StackResource(Isolate::Current()),
+ : StackResource(Thread::Current()),
top_(NULL),
- base_(Isolate::Current()->long_jump_base()) {
- Isolate::Current()->set_long_jump_base(this);
+ base_(Thread::Current()->long_jump_base()) {
+ Thread::Current()->set_long_jump_base(this);
}
~LongJumpScope() {
- Isolate::Current()->set_long_jump_base(base_);
+ Thread::Current()->set_long_jump_base(base_);
}
jmp_buf* Set();
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/longjump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698