| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #include "vm/snapshot.h" | 5 #include "vm/snapshot.h" |
| 6 | 6 |
| 7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
| 8 #include "vm/bootstrap.h" | 8 #include "vm/bootstrap.h" |
| 9 #include "vm/class_finalizer.h" | 9 #include "vm/class_finalizer.h" |
| 10 #include "vm/dart.h" | 10 #include "vm/dart.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 | 144 |
| 145 const char* Snapshot::KindToCString(Kind kind) { | 145 const char* Snapshot::KindToCString(Kind kind) { |
| 146 switch (kind) { | 146 switch (kind) { |
| 147 case kCore: | 147 case kCore: |
| 148 return "core"; | 148 return "core"; |
| 149 case kScript: | 149 case kScript: |
| 150 return "script"; | 150 return "script"; |
| 151 case kMessage: | 151 case kMessage: |
| 152 return "message"; | 152 return "message"; |
| 153 case kAppWithJIT: | 153 case kAppJIT: |
| 154 return "app-jit"; | 154 return "app-jit"; |
| 155 case kAppNoJIT: | 155 case kAppAOT: |
| 156 return "app-aot"; | 156 return "app-aot"; |
| 157 case kNone: | 157 case kNone: |
| 158 return "none"; | 158 return "none"; |
| 159 case kInvalid: | 159 case kInvalid: |
| 160 default: | 160 default: |
| 161 return "invalid"; | 161 return "invalid"; |
| 162 } | 162 } |
| 163 } | 163 } |
| 164 | 164 |
| 165 | 165 |
| (...skipping 1790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1956 if (setjmp(*jump.Set()) == 0) { | 1956 if (setjmp(*jump.Set()) == 0) { |
| 1957 NoSafepointScope no_safepoint; | 1957 NoSafepointScope no_safepoint; |
| 1958 WriteObject(obj.raw()); | 1958 WriteObject(obj.raw()); |
| 1959 } else { | 1959 } else { |
| 1960 ThrowException(exception_type(), exception_msg()); | 1960 ThrowException(exception_type(), exception_msg()); |
| 1961 } | 1961 } |
| 1962 } | 1962 } |
| 1963 | 1963 |
| 1964 | 1964 |
| 1965 } // namespace dart | 1965 } // namespace dart |
| OLD | NEW |