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

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

Issue 13351002: First step for fixing Issue 9416. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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/lib/isolate.cc ('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 #include "vm/object.h" 9 #include "vm/object.h"
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 "Dart_EnterScope?", CURRENT_FUNC); \ 51 "Dart_EnterScope?", CURRENT_FUNC); \
52 } \ 52 } \
53 } while (0) 53 } while (0)
54 54
55 #define DARTSCOPE(isolate) \ 55 #define DARTSCOPE(isolate) \
56 Isolate* __temp_isolate__ = (isolate); \ 56 Isolate* __temp_isolate__ = (isolate); \
57 CHECK_ISOLATE_SCOPE(__temp_isolate__); \ 57 CHECK_ISOLATE_SCOPE(__temp_isolate__); \
58 HANDLESCOPE(__temp_isolate__); 58 HANDLESCOPE(__temp_isolate__);
59 59
60 60
61 void SetupErrorResult(Dart_Handle* handle);
62
63
64 class Api : AllStatic { 61 class Api : AllStatic {
65 public: 62 public:
66 // Creates a new local handle. 63 // Creates a new local handle.
67 static Dart_Handle NewHandle(Isolate* isolate, RawObject* raw); 64 static Dart_Handle NewHandle(Isolate* isolate, RawObject* raw);
68 65
69 // Unwraps the raw object from the handle. 66 // Unwraps the raw object from the handle.
70 static RawObject* UnwrapHandle(Dart_Handle object); 67 static RawObject* UnwrapHandle(Dart_Handle object);
71 68
72 // Unwraps a raw Type from the handle. The handle will be null if 69 // Unwraps a raw Type from the handle. The handle will be null if
73 // the object was not of the requested Type. 70 // the object was not of the requested Type.
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 isolate->DecrementNoCallbackScopeDepth() 188 isolate->DecrementNoCallbackScopeDepth()
192 189
193 #define CHECK_CALLBACK_STATE(isolate) \ 190 #define CHECK_CALLBACK_STATE(isolate) \
194 if (isolate->no_callback_scope_depth() != 0) { \ 191 if (isolate->no_callback_scope_depth() != 0) { \
195 return reinterpret_cast<Dart_Handle>(Api::AcquiredError(isolate)); \ 192 return reinterpret_cast<Dart_Handle>(Api::AcquiredError(isolate)); \
196 } \ 193 } \
197 194
198 } // namespace dart. 195 } // namespace dart.
199 196
200 #endif // VM_DART_API_IMPL_H_ 197 #endif // VM_DART_API_IMPL_H_
OLDNEW
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698