| Index: runtime/vm/allocation.cc
|
| ===================================================================
|
| --- runtime/vm/allocation.cc (revision 1496)
|
| +++ runtime/vm/allocation.cc (working copy)
|
| @@ -10,17 +10,16 @@
|
|
|
| namespace dart {
|
|
|
| -StackResource::StackResource() {
|
| - isolate_ = Isolate::Current();
|
| - previous_ = isolate_->top_resource();
|
| - isolate_->set_top_resource(this);
|
| +StackResource::StackResource(Isolate* isolate) : isolate_(isolate) {
|
| + previous_ = isolate->top_resource();
|
| + isolate->set_top_resource(this);
|
| }
|
|
|
|
|
| StackResource::~StackResource() {
|
| - StackResource* top = isolate_->top_resource();
|
| + StackResource* top = isolate()->top_resource();
|
| ASSERT(top == this);
|
| - isolate_->set_top_resource(previous_);
|
| + isolate()->set_top_resource(previous_);
|
| }
|
|
|
| ZoneAllocated::~ZoneAllocated() {
|
|
|