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 #include "vm/bootstrap_natives.h" | 5 #include "vm/bootstrap_natives.h" |
6 | 6 |
7 #include "lib/invocation_mirror.h" | 7 #include "lib/invocation_mirror.h" |
8 #include "vm/code_patcher.h" | 8 #include "vm/code_patcher.h" |
9 #include "vm/exceptions.h" | 9 #include "vm/exceptions.h" |
10 #include "vm/heap.h" | 10 #include "vm/heap.h" |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
320 } | 320 } |
321 | 321 |
322 | 322 |
323 DEFINE_NATIVE_ENTRY(LibraryPrefix_isLoaded, 1) { | 323 DEFINE_NATIVE_ENTRY(LibraryPrefix_isLoaded, 1) { |
324 const LibraryPrefix& prefix = | 324 const LibraryPrefix& prefix = |
325 LibraryPrefix::CheckedHandle(zone, arguments->NativeArgAt(0)); | 325 LibraryPrefix::CheckedHandle(zone, arguments->NativeArgAt(0)); |
326 return Bool::Get(prefix.is_loaded()).raw(); | 326 return Bool::Get(prefix.is_loaded()).raw(); |
327 } | 327 } |
328 | 328 |
329 | 329 |
330 DEFINE_NATIVE_ENTRY(LibraryPrefix_hasError, 1) { | |
hausner
2016/06/07 23:36:07
This function is no longer used and can be removed
Cutch
2016/06/08 13:19:03
Done.
| |
331 const LibraryPrefix& prefix = | |
332 LibraryPrefix::CheckedHandle(zone, arguments->NativeArgAt(0)); | |
333 return Bool::Get(prefix.has_error()).raw(); | |
334 } | |
335 | |
336 | |
330 DEFINE_NATIVE_ENTRY(Internal_inquireIs64Bit, 0) { | 337 DEFINE_NATIVE_ENTRY(Internal_inquireIs64Bit, 0) { |
331 #if defined(ARCH_IS_64_BIT) | 338 #if defined(ARCH_IS_64_BIT) |
332 return Bool::True().raw(); | 339 return Bool::True().raw(); |
333 #else | 340 #else |
334 return Bool::False().raw(); | 341 return Bool::False().raw(); |
335 #endif // defined(ARCH_IS_64_BIT) | 342 #endif // defined(ARCH_IS_64_BIT) |
336 } | 343 } |
337 | 344 |
338 } // namespace dart | 345 } // namespace dart |
OLD | NEW |