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

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

Issue 11040062: Renamed Zone->StackZone, BaseZone->Zone, in preparation for changing isolate->get_zone() to return … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 #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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 ASSERT(state); \ 48 ASSERT(state); \
49 if (state->top_scope() == NULL) { \ 49 if (state->top_scope() == NULL) { \
50 FATAL1("%s expects to find a current scope. Did you forget to call " \ 50 FATAL1("%s expects to find a current scope. Did you forget to call " \
51 "Dart_EnterScope?", CURRENT_FUNC); \ 51 "Dart_EnterScope?", CURRENT_FUNC); \
52 } \ 52 } \
53 } while (0) 53 } while (0)
54 54
55 #define DARTSCOPE_NOCHECKS(isolate) \ 55 #define DARTSCOPE_NOCHECKS(isolate) \
56 Isolate* __temp_isolate__ = (isolate); \ 56 Isolate* __temp_isolate__ = (isolate); \
57 ASSERT(__temp_isolate__ != NULL); \ 57 ASSERT(__temp_isolate__ != NULL); \
58 Zone zone(__temp_isolate__); \ 58 StackZone zone(__temp_isolate__); \
59 HANDLESCOPE(__temp_isolate__); 59 HANDLESCOPE(__temp_isolate__);
60 60
61 #define DARTSCOPE(isolate) \ 61 #define DARTSCOPE(isolate) \
62 Isolate* __temp_isolate__ = (isolate); \ 62 Isolate* __temp_isolate__ = (isolate); \
63 CHECK_ISOLATE_SCOPE(__temp_isolate__); \ 63 CHECK_ISOLATE_SCOPE(__temp_isolate__); \
64 Zone zone(__temp_isolate__); \ 64 StackZone zone(__temp_isolate__); \
65 HANDLESCOPE(__temp_isolate__); 65 HANDLESCOPE(__temp_isolate__);
66 66
67 67
68 const char* CheckIsolateState(Isolate *isolate); 68 const char* CheckIsolateState(Isolate *isolate);
69 69
70 void SetupErrorResult(Dart_Handle* handle); 70 void SetupErrorResult(Dart_Handle* handle);
71 71
72 72
73 class Api : AllStatic { 73 class Api : AllStatic {
74 public: 74 public:
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 } 173 }
174 private: 174 private:
175 Isolate* saved_isolate_; 175 Isolate* saved_isolate_;
176 176
177 DISALLOW_COPY_AND_ASSIGN(IsolateSaver); 177 DISALLOW_COPY_AND_ASSIGN(IsolateSaver);
178 }; 178 };
179 179
180 } // namespace dart. 180 } // namespace dart.
181 181
182 #endif // VM_DART_API_IMPL_H_ 182 #endif // VM_DART_API_IMPL_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/dart_api_state.h » ('j') | runtime/vm/dart_api_state.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698