| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |