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

Unified Diff: runtime/vm/allocation.h

Issue 8523013: Cache isolate in the StackTrace object to that we don't call (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 | « no previous file | runtime/vm/allocation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/allocation.h
===================================================================
--- runtime/vm/allocation.h (revision 1423)
+++ runtime/vm/allocation.h (working copy)
@@ -9,6 +9,9 @@
namespace dart {
+// Forward declarations.
+class Isolate;
+
// Stack allocated objects subclass from this base class. Objects of this type
// cannot be allocated on either the C or object heaps. Destructors for objects
// of this type will not be run unless the stack is unwound through normal
@@ -35,11 +38,14 @@
StackResource();
virtual ~StackResource();
+ Isolate* isolate() const { return isolate_; }
+
// The delete operator should be private instead of public, but unfortunately
// the compiler complains when compiling the destructors for subclasses.
void operator delete(void* pointer) { UNREACHABLE(); }
private:
+ Isolate* isolate_; // Current isolate for this stack resource.
StackResource* previous_;
void* operator new(uword size);
« no previous file with comments | « no previous file | runtime/vm/allocation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698