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

Unified Diff: vm/isolate.cc

Issue 10008030: Inline the StackResource constructor/destructor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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 | « vm/isolate.h ('k') | vm/vm_sources.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/isolate.cc
===================================================================
--- vm/isolate.cc (revision 6287)
+++ vm/isolate.cc (working copy)
@@ -83,6 +83,14 @@
#endif
+#if defined(DEBUG)
+// static
+void BaseIsolate::AssertCurrent(BaseIsolate* isolate) {
+ ASSERT(isolate == Isolate::Current());
+}
+#endif
+
+
Isolate::Isolate()
: store_buffer_(),
message_notify_callback_(NULL),
@@ -90,14 +98,7 @@
main_port_(0),
heap_(NULL),
object_store_(NULL),
- top_resource_(NULL),
top_context_(Context::null()),
- current_zone_(NULL),
-#if defined(DEBUG)
- no_gc_scope_depth_(0),
- no_handle_scope_depth_(0),
- top_handle_scope_(NULL),
-#endif
random_seed_(Random::kDefaultRandomSeed),
top_exit_frame_info_(0),
init_callback_data_(NULL),
@@ -119,7 +120,6 @@
delete [] name_;
delete heap_;
delete object_store_;
- // Do not delete stack resources: top_resource_ and current_zone_.
delete api_state_;
delete stub_code_;
delete code_index_table_;
@@ -308,7 +308,7 @@
void Isolate::Shutdown() {
ASSERT(this == Isolate::Current());
- ASSERT(top_resource_ == NULL);
+ ASSERT(top_resource() == NULL);
ASSERT((heap_ == NULL) || heap_->Verify());
// Clean up debugger resources. Shutting down the debugger
« no previous file with comments | « vm/isolate.h ('k') | vm/vm_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698