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

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

Issue 8501034: Deal with unhandled exceptions the same way in all Dart api functions. (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/dart_api_impl.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_DART_API_IMPL_H_ 5 #ifndef VM_DART_API_IMPL_H_
6 #define VM_DART_API_IMPL_H_ 6 #define VM_DART_API_IMPL_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 19 matching lines...) Expand all
30 // Validates and converts the passed in handle as a persistent handle. 30 // Validates and converts the passed in handle as a persistent handle.
31 static PersistentHandle* UnwrapAsPersistentHandle(const ApiState& state, 31 static PersistentHandle* UnwrapAsPersistentHandle(const ApiState& state,
32 Dart_Handle object); 32 Dart_Handle object);
33 33
34 // Gets the handle used to designate successful return. 34 // Gets the handle used to designate successful return.
35 static Dart_Handle Success(); 35 static Dart_Handle Success();
36 36
37 // Generates a handle used to designate an error return. 37 // Generates a handle used to designate an error return.
38 static Dart_Handle Error(const char* format, ...); 38 static Dart_Handle Error(const char* format, ...);
39 39
40 // Generates an error handle from an unhandled exception.
41 static Dart_Handle ErrorFromException(const Object& obj);
42
40 // Gets a handle to Null. 43 // Gets a handle to Null.
41 static Dart_Handle Null(); 44 static Dart_Handle Null();
42 45
43 // Gets a handle to True. 46 // Gets a handle to True.
44 static Dart_Handle True(); 47 static Dart_Handle True();
45 48
46 // Gets a handle to False 49 // Gets a handle to False
47 static Dart_Handle False(); 50 static Dart_Handle False();
48 51
49 // Allocates space in the local zone. 52 // Allocates space in the local zone.
50 static uword Allocate(intptr_t size); 53 static uword Allocate(intptr_t size);
51 54
52 // Reallocates space in the local zone. 55 // Reallocates space in the local zone.
53 static uword Reallocate(uword ptr, intptr_t old_size, intptr_t new_size); 56 static uword Reallocate(uword ptr, intptr_t old_size, intptr_t new_size);
54 }; 57 };
55 58
56 } // namespace dart. 59 } // namespace dart.
57 60
58 #endif // VM_DART_API_IMPL_H_ 61 #endif // VM_DART_API_IMPL_H_
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698