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

Unified Diff: runtime/vm/allocation_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 | « no previous file | runtime/vm/dart_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/allocation_test.cc
diff --git a/runtime/vm/allocation_test.cc b/runtime/vm/allocation_test.cc
index 04b4b809b31df3e1c864627f3a0cd32078a7efb7..f8fe5a04fcbc7fae0badf7918f026fd193f8a687 100644
--- a/runtime/vm/allocation_test.cc
+++ b/runtime/vm/allocation_test.cc
@@ -153,7 +153,7 @@ static void StackResourceLongJumpHelper(int* ptr, LongJumpScope* jump) {
TEST_CASE(StackResourceLongJump) {
- LongJumpScope* base = Isolate::Current()->long_jump_base();
+ LongJumpScope* base = Thread::Current()->long_jump_base();
{
LongJumpScope jump;
int data = 1;
@@ -163,7 +163,7 @@ TEST_CASE(StackResourceLongJump) {
}
EXPECT_EQ(7, data);
}
- ASSERT(base == Isolate::Current()->long_jump_base());
+ ASSERT(base == Thread::Current()->long_jump_base());
}
} // namespace dart
« no previous file with comments | « no previous file | runtime/vm/dart_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698