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

Unified Diff: runtime/vm/allocation.cc

Issue 944783002: Save top StackResource in entry frame. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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 | « runtime/vm/allocation.h ('k') | runtime/vm/base_isolate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/allocation.cc
===================================================================
--- runtime/vm/allocation.cc (revision 43896)
+++ runtime/vm/allocation.cc (working copy)
@@ -36,23 +36,7 @@
}
-void StackResource::Unwind(Isolate* isolate, uword stack_pointer) {
- while (isolate->top_resource() != NULL &&
- (reinterpret_cast<uword>(isolate->top_resource()) < stack_pointer)) {
- isolate->top_resource()->~StackResource();
- }
-#if defined(DEBUG)
- // All remaining stack resources should be below stack_pointer.
- StackResource* current = isolate->top_resource();
- while (current != NULL) {
- ASSERT(reinterpret_cast<uword>(current) >= stack_pointer);
- current = current->previous_;
- }
-#endif // DEBUG
-}
-
-
-void StackResource::Unwind(Isolate* isolate, StackResource* new_top) {
+void StackResource::UnwindAbove(Isolate* isolate, StackResource* new_top) {
StackResource* current_resource = isolate->top_resource();
while (current_resource != new_top) {
current_resource->~StackResource();
« no previous file with comments | « runtime/vm/allocation.h ('k') | runtime/vm/base_isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698