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

Side by Side Diff: runtime/vm/longjump.cc

Issue 927363004: Verify/document assumption about stack resource addresses. (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 unified diff | Download patch | Annotate | Revision Log
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/longjump.h" 5 #include "vm/longjump.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 #include "vm/dart_api_impl.h" 9 #include "vm/dart_api_impl.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #define CHECK_REUSABLE_HANDLE(name) \ 48 #define CHECK_REUSABLE_HANDLE(name) \
49 ASSERT(!isolate->reusable_##name##_handle_scope_active()); 49 ASSERT(!isolate->reusable_##name##_handle_scope_active());
50 REUSABLE_HANDLE_LIST(CHECK_REUSABLE_HANDLE) 50 REUSABLE_HANDLE_LIST(CHECK_REUSABLE_HANDLE)
51 #undef CHECK_REUSABLE_HANDLE 51 #undef CHECK_REUSABLE_HANDLE
52 #endif // defined(DEBUG) 52 #endif // defined(DEBUG)
53 53
54 // Remember the error in the sticky error of this isolate. 54 // Remember the error in the sticky error of this isolate.
55 isolate->object_store()->set_sticky_error(error); 55 isolate->object_store()->set_sticky_error(error);
56 56
57 // Destruct all the active StackResource objects. 57 // Destruct all the active StackResource objects.
58 StackResource* current_resource = isolate->top_resource(); 58 StackResource::Unwind(isolate, top_);
59 while (current_resource != top_) {
60 current_resource->~StackResource();
61 current_resource = isolate->top_resource();
62 }
63 longjmp(environment_, value); 59 longjmp(environment_, value);
64 UNREACHABLE(); 60 UNREACHABLE();
65 } 61 }
66 62
67 } // namespace dart 63 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698