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

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

Issue 10871005: Make ClassFinalizer indifferent on whether we are generating a snapshot or not. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/class_finalizer_test.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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 Zone zone(__temp_isolate__); \ 58 Zone 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 Zone 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 bool generating_snapshot = false);
70 69
71 void SetupErrorResult(Dart_Handle* handle); 70 void SetupErrorResult(Dart_Handle* handle);
72 71
73 72
74 class Api : AllStatic { 73 class Api : AllStatic {
75 public: 74 public:
76 // Creates a new local handle. 75 // Creates a new local handle.
77 static Dart_Handle NewHandle(Isolate* isolate, RawObject* raw); 76 static Dart_Handle NewHandle(Isolate* isolate, RawObject* raw);
78 77
79 // Unwraps the raw object from the handle. 78 // Unwraps the raw object from the handle.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 } 167 }
169 private: 168 private:
170 Isolate* saved_isolate_; 169 Isolate* saved_isolate_;
171 170
172 DISALLOW_COPY_AND_ASSIGN(IsolateSaver); 171 DISALLOW_COPY_AND_ASSIGN(IsolateSaver);
173 }; 172 };
174 173
175 } // namespace dart. 174 } // namespace dart.
176 175
177 #endif // VM_DART_API_IMPL_H_ 176 #endif // VM_DART_API_IMPL_H_
OLDNEW
« no previous file with comments | « runtime/vm/class_finalizer_test.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698