| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "include/dart_api.h" | 5 #include "include/dart_api.h" |
| 6 #include "include/dart_mirrors_api.h" | 6 #include "include/dart_mirrors_api.h" |
| 7 #include "include/dart_native_api.h" | 7 #include "include/dart_native_api.h" |
| 8 | 8 |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "vm/bigint_operations.h" | 10 #include "vm/bigint_operations.h" |
| (...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 | 819 |
| 820 DART_EXPORT void* Dart_CurrentIsolateData() { | 820 DART_EXPORT void* Dart_CurrentIsolateData() { |
| 821 Isolate* isolate = Isolate::Current(); | 821 Isolate* isolate = Isolate::Current(); |
| 822 CHECK_ISOLATE(isolate); | 822 CHECK_ISOLATE(isolate); |
| 823 return isolate->init_callback_data(); | 823 return isolate->init_callback_data(); |
| 824 } | 824 } |
| 825 | 825 |
| 826 | 826 |
| 827 DART_EXPORT Dart_Handle Dart_DebugName() { | 827 DART_EXPORT Dart_Handle Dart_DebugName() { |
| 828 Isolate* isolate = Isolate::Current(); | 828 Isolate* isolate = Isolate::Current(); |
| 829 CHECK_ISOLATE(isolate); | 829 DARTSCOPE(isolate); |
| 830 return Api::NewHandle(isolate, String::New(isolate->name())); | 830 return Api::NewHandle(isolate, String::New(isolate->name())); |
| 831 } | 831 } |
| 832 | 832 |
| 833 | 833 |
| 834 | 834 |
| 835 DART_EXPORT void Dart_EnterIsolate(Dart_Isolate dart_isolate) { | 835 DART_EXPORT void Dart_EnterIsolate(Dart_Isolate dart_isolate) { |
| 836 CHECK_NO_ISOLATE(Isolate::Current()); | 836 CHECK_NO_ISOLATE(Isolate::Current()); |
| 837 Isolate* isolate = reinterpret_cast<Isolate*>(dart_isolate); | 837 Isolate* isolate = reinterpret_cast<Isolate*>(dart_isolate); |
| 838 Isolate::SetCurrent(isolate); | 838 Isolate::SetCurrent(isolate); |
| 839 } | 839 } |
| (...skipping 3326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4166 } | 4166 } |
| 4167 { | 4167 { |
| 4168 NoGCScope no_gc; | 4168 NoGCScope no_gc; |
| 4169 RawObject* raw_obj = obj.raw(); | 4169 RawObject* raw_obj = obj.raw(); |
| 4170 isolate->heap()->SetPeer(raw_obj, peer); | 4170 isolate->heap()->SetPeer(raw_obj, peer); |
| 4171 } | 4171 } |
| 4172 return Api::Success(); | 4172 return Api::Success(); |
| 4173 } | 4173 } |
| 4174 | 4174 |
| 4175 } // namespace dart | 4175 } // namespace dart |
| OLD | NEW |