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 "include/dart_api.h" | 5 #include "include/dart_api.h" |
6 | 6 |
7 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
8 #include "vm/class_finalizer.h" | 8 #include "vm/class_finalizer.h" |
9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
10 #include "vm/dart.h" | 10 #include "vm/dart.h" |
(...skipping 2420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2431 *buffer = NULL; | 2431 *buffer = NULL; |
2432 } | 2432 } |
2433 delete debug_region; | 2433 delete debug_region; |
2434 } else { | 2434 } else { |
2435 *buffer = NULL; | 2435 *buffer = NULL; |
2436 *buffer_size = 0; | 2436 *buffer_size = 0; |
2437 } | 2437 } |
2438 } | 2438 } |
2439 | 2439 |
2440 | 2440 |
2441 ThreadLocalKey ApiNativeScope::api_native_key_ = Thread::kUnsetThreadLocalKey; | |
2442 | |
2443 | |
2444 void ApiNativeScope::InitOnce() { | |
siva
2012/02/09 00:45:29
Api::InitOnce() {
....
}
Søren Gjesse
2012/02/09 08:44:01
Done.
| |
2445 ASSERT(api_native_key_ == Thread::kUnsetThreadLocalKey); | |
2446 api_native_key_ = Thread::CreateThreadLocal(); | |
2447 ASSERT(api_native_key_ != Thread::kUnsetThreadLocalKey); | |
2448 } | |
2449 | |
2441 } // namespace dart | 2450 } // namespace dart |
OLD | NEW |