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

Side by Side Diff: runtime/vm/heap.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/heap.h ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/heap.h" 5 #include "vm/heap.h"
6 6
7 #include "vm/assert.h" 7 #include "vm/assert.h"
8 #include "vm/compiler_stats.h" 8 #include "vm/compiler_stats.h"
9 #include "vm/flags.h" 9 #include "vm/flags.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 return reinterpret_cast<uword>(new_space_->TopAddress()); 130 return reinterpret_cast<uword>(new_space_->TopAddress());
131 } 131 }
132 132
133 133
134 uword Heap::EndAddress() { 134 uword Heap::EndAddress() {
135 return reinterpret_cast<uword>(new_space_->EndAddress()); 135 return reinterpret_cast<uword>(new_space_->EndAddress());
136 } 136 }
137 137
138 138
139 #if defined(DEBUG) 139 #if defined(DEBUG)
140 NoGCScope::NoGCScope() : StackResource(), isolate_(Isolate::Current()) { 140 NoGCScope::NoGCScope() : StackResource(Isolate::Current()) {
141 isolate_->IncrementNoGCScopeDepth(); 141 isolate()->IncrementNoGCScopeDepth();
142 } 142 }
143 143
144 144
145 NoGCScope::~NoGCScope() { 145 NoGCScope::~NoGCScope() {
146 isolate_->DecrementNoGCScopeDepth(); 146 isolate()->DecrementNoGCScopeDepth();
147 } 147 }
148 #endif // defined(DEBUG) 148 #endif // defined(DEBUG)
149 149
150 } // namespace dart 150 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/heap.h ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698