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

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

Issue 9314053: Revert Dart_PropagateError until I can track down the problems in (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/longjump.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 #ifndef VM_LONGJUMP_H_ 5 #ifndef VM_LONGJUMP_H_
6 #define VM_LONGJUMP_H_ 6 #define VM_LONGJUMP_H_
7 7
8 #include <setjmp.h> 8 #include <setjmp.h>
9 9
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
11 11
12 namespace dart { 12 namespace dart {
13 13
14 class Error; 14 class Error;
15 15
16 class LongJump : public ValueObject { 16 class LongJump : public ValueObject {
17 public: 17 public:
18 LongJump() : top_(NULL) { } 18 LongJump() : top_(NULL) { }
19 19
20 jmp_buf* Set(); 20 jmp_buf* Set();
21 void Jump(int value, const Error& error); 21 void Jump(int value, const Error& error);
22 22
23 // Would it be safe to use this longjump?
24 //
25 // Checks to make sure that the jump would not cross Dart frames.
26 bool IsSafeToJump();
27
28 private: 23 private:
29 jmp_buf environment_; 24 jmp_buf environment_;
30 StackResource* top_; 25 StackResource* top_;
31 26
32 DISALLOW_COPY_AND_ASSIGN(LongJump); 27 DISALLOW_COPY_AND_ASSIGN(LongJump);
33 }; 28 };
34 29
35 } // namespace dart 30 } // namespace dart
36 31
37 #endif // VM_LONGJUMP_H_ 32 #endif // VM_LONGJUMP_H_
OLDNEW
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/longjump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698