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

Unified Diff: runtime/vm/allocation_test.cc

Issue 8528010: Changes to pass the current isolate to all runtime and native calls. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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/allocation.cc ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/allocation_test.cc
===================================================================
--- runtime/vm/allocation_test.cc (revision 1496)
+++ runtime/vm/allocation_test.cc (working copy)
@@ -31,7 +31,8 @@
class TestStackResource : public StackResource {
public:
- explicit TestStackResource(int* ptr) : ptr_(ptr) {
+ explicit TestStackResource(int* ptr)
+ : StackResource(Isolate::Current()), ptr_(ptr) {
EXPECT_EQ(1, *ptr_);
*ptr_ = 2;
}
@@ -51,7 +52,8 @@
class TestStackedStackResource : public StackResource {
public:
- explicit TestStackedStackResource(int* ptr) : ptr_(ptr) {
+ explicit TestStackedStackResource(int* ptr)
+ : StackResource(Isolate::Current()), ptr_(ptr) {
EXPECT_EQ(3, *ptr_);
*ptr_ = 4;
}
« no previous file with comments | « runtime/vm/allocation.cc ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698