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

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

Issue 22607005: Remove race(s) in vmservice tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
OLDNEW
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 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CHECK_ISOLATE(isolate);
830 DARTSCOPE(isolate);
Ivan Posva 2013/08/07 23:33:38 DARTSCOPE does include CHECK_ISOLATE, so you can d
Cutch 2013/08/08 14:26:39 Done.
830 return Api::NewHandle(isolate, String::New(isolate->name())); 831 return Api::NewHandle(isolate, String::New(isolate->name()));
831 } 832 }
832 833
833 834
834 835
835 DART_EXPORT void Dart_EnterIsolate(Dart_Isolate dart_isolate) { 836 DART_EXPORT void Dart_EnterIsolate(Dart_Isolate dart_isolate) {
836 CHECK_NO_ISOLATE(Isolate::Current()); 837 CHECK_NO_ISOLATE(Isolate::Current());
837 Isolate* isolate = reinterpret_cast<Isolate*>(dart_isolate); 838 Isolate* isolate = reinterpret_cast<Isolate*>(dart_isolate);
838 Isolate::SetCurrent(isolate); 839 Isolate::SetCurrent(isolate);
839 } 840 }
(...skipping 3326 matching lines...) Expand 10 before | Expand all | Expand 10 after
4166 } 4167 }
4167 { 4168 {
4168 NoGCScope no_gc; 4169 NoGCScope no_gc;
4169 RawObject* raw_obj = obj.raw(); 4170 RawObject* raw_obj = obj.raw();
4170 isolate->heap()->SetPeer(raw_obj, peer); 4171 isolate->heap()->SetPeer(raw_obj, peer);
4171 } 4172 }
4172 return Api::Success(); 4173 return Api::Success();
4173 } 4174 }
4174 4175
4175 } // namespace dart 4176 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698