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

Unified Diff: runtime/vm/longjump_test.cc

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/longjump.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/longjump_test.cc
diff --git a/runtime/vm/longjump_test.cc b/runtime/vm/longjump_test.cc
index f23956b606983ecd0c069450c133573045d6d69e..4f48050d62e39d626169228f54b92dd53f59e18b 100644
--- a/runtime/vm/longjump_test.cc
+++ b/runtime/vm/longjump_test.cc
@@ -2,8 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-#include "vm/isolate.h"
#include "vm/longjump.h"
+#include "vm/thread.h"
#include "vm/unit_test.h"
namespace dart {
@@ -18,7 +18,7 @@ static void LongJumpHelper(LongJumpScope* jump) {
TEST_CASE(LongJump) {
- LongJumpScope* base = Isolate::Current()->long_jump_base();
+ LongJumpScope* base = Thread::Current()->long_jump_base();
{
LongJumpScope jump;
if (setjmp(*jump.Set()) == 0) {
@@ -26,7 +26,7 @@ TEST_CASE(LongJump) {
UNREACHABLE();
}
}
- ASSERT(base == Isolate::Current()->long_jump_base());
+ ASSERT(base == Thread::Current()->long_jump_base());
}
} // namespace dart
« no previous file with comments | « runtime/vm/longjump.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698